private static enum MGTP.Command extends java.lang.Enum<MGTP.Command>
Enum Constant and Description |
---|
boardsize |
flip |
game_over |
genmove |
known_command |
list_commands |
move |
name |
num_moves_to_draw |
num_repetition |
protocol_version |
quit |
ready |
reset_board |
showboard |
time_left |
time_setting |
version |
Modifier and Type | Method and Description |
---|---|
static MGTP.Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MGTP.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MGTP.Command protocol_version
public static final MGTP.Command name
public static final MGTP.Command version
public static final MGTP.Command known_command
public static final MGTP.Command list_commands
public static final MGTP.Command quit
public static final MGTP.Command boardsize
public static final MGTP.Command reset_board
public static final MGTP.Command num_repetition
public static final MGTP.Command num_moves_to_draw
public static final MGTP.Command move
public static final MGTP.Command flip
public static final MGTP.Command genmove
public static final MGTP.Command game_over
public static final MGTP.Command ready
public static final MGTP.Command time_setting
public static final MGTP.Command time_left
public static final MGTP.Command showboard
public static MGTP.Command[] values()
for (MGTP.Command c : MGTP.Command.values()) System.out.println(c);
public static MGTP.Command valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null