forked from JavaBWAPI/JBWAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandType.java
More file actions
40 lines (34 loc) · 734 Bytes
/
Copy pathCommandType.java
File metadata and controls
40 lines (34 loc) · 734 Bytes
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
package bwapi;
import java.util.Arrays;
/**
* Used in {@link UnitCommand}.
*/
public enum CommandType {
None(0),
SetScreenPosition(1),
PingMinimap(2),
EnableFlag(3),
Printf(4),
SendText(5),
PauseGame(6),
ResumeGame(7),
LeaveGame(8),
RestartGame(9),
SetLocalSpeed(10),
SetLatCom(11),
SetGui(12),
SetFrameSkip(13),
SetMap(14),
SetAllies(15),
SetVision(16),
SetCommandOptimizerLevel(17),
SetRevealAll(18);
static final CommandType[] idToEnum = new CommandType[19];
static {
Arrays.stream(CommandType.values()).forEach(v -> idToEnum[v.id] = v);
}
public final int id;
CommandType(final int id) {
this.id = id;
}
}