-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathAction.java
More file actions
77 lines (72 loc) · 2.07 KB
/
Action.java
File metadata and controls
77 lines (72 loc) · 2.07 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// automatically generated by the FlatBuffers compiler, do not modify
package battlecode.schema;
/**
* Actions that can be performed.
* Purely aesthetic; have no actual effect on simulation.
* (Although the simulation may want to track the 'parents' of
* particular robots.)
* Actions may have 'targets', which are the units on which
* the actions were performed.
*/
public final class Action {
private Action() { }
/**
* Politicians self-destruct and affect nearby bodies.
* Target: radius squared
*/
public static final byte EMPOWER = 0;
/**
* Slanderers passively generate influence for the
* Enlightenment Center that created them.
* Target: parent ID
*/
public static final byte EMBEZZLE = 1;
/**
* Slanderers turn into Politicians.
* Target: none
*/
public static final byte CAMOUFLAGE = 2;
/**
* Muckrakers can expose a slanderer.
* Target: an enemy body
*/
public static final byte EXPOSE = 3;
/**
* Units can change their flag.
* Target: new flag value
*/
public static final byte SET_FLAG = 4;
/**
* Builds a unit.
* Target: spawned unit
*/
public static final byte SPAWN_UNIT = 5;
/**
* Places a bid.
* Target: bid value
*/
public static final byte PLACE_BID = 6;
/**
* A robot can change team after being empowered,
* or when a Enlightenment Center is taken over.
* Target: new robotID
*/
public static final byte CHANGE_TEAM = 7;
/**
* A robot's influence changes.
* Target: delta value
*/
public static final byte CHANGE_INFLUENCE = 8;
/**
* A robot's conviction changes.
* Target: delta value, i.e. red 5 -> blue 3 is -2
*/
public static final byte CHANGE_CONVICTION = 9;
/**
* Dies due to an uncaught exception.
* Target: none
*/
public static final byte DIE_EXCEPTION = 10;
public static final String[] names = { "EMPOWER", "EMBEZZLE", "CAMOUFLAGE", "EXPOSE", "SET_FLAG", "SPAWN_UNIT", "PLACE_BID", "CHANGE_TEAM", "CHANGE_INFLUENCE", "CHANGE_CONVICTION", "DIE_EXCEPTION", };
public static String name(int e) { return names[e]; }
}