-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCatPounce.java
More file actions
47 lines (39 loc) · 1.69 KB
/
CatPounce.java
File metadata and controls
47 lines (39 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// automatically generated by the FlatBuffers compiler, do not modify
package battlecode.schema;
import com.google.flatbuffers.BaseVector;
import com.google.flatbuffers.BooleanVector;
import com.google.flatbuffers.ByteVector;
import com.google.flatbuffers.Constants;
import com.google.flatbuffers.DoubleVector;
import com.google.flatbuffers.FlatBufferBuilder;
import com.google.flatbuffers.FloatVector;
import com.google.flatbuffers.IntVector;
import com.google.flatbuffers.LongVector;
import com.google.flatbuffers.ShortVector;
import com.google.flatbuffers.StringVector;
import com.google.flatbuffers.Struct;
import com.google.flatbuffers.Table;
import com.google.flatbuffers.UnionVector;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**
* Cat jump from start to end
*/
@SuppressWarnings("unused")
public final class CatPounce extends Struct {
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public CatPounce __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public int startLoc() { return bb.getShort(bb_pos + 0) & 0xFFFF; }
public int endLoc() { return bb.getShort(bb_pos + 2) & 0xFFFF; }
public static int createCatPounce(FlatBufferBuilder builder, int startLoc, int endLoc) {
builder.prep(2, 4);
builder.putShort((short) endLoc);
builder.putShort((short) startLoc);
return builder.offset();
}
public static final class Vector extends BaseVector {
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
public CatPounce get(int j) { return get(new CatPounce(), j); }
public CatPounce get(CatPounce obj, int j) { return obj.__assign(__element(j), bb); }
}
}