private static enum DCTP.Command extends java.lang.Enum<DCTP.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 DCTP.Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DCTP.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DCTP.Command protocol_version
public static final DCTP.Command name
public static final DCTP.Command version
public static final DCTP.Command known_command
public static final DCTP.Command list_commands
public static final DCTP.Command quit
public static final DCTP.Command boardsize
public static final DCTP.Command reset_board
public static final DCTP.Command num_repetition
public static final DCTP.Command num_moves_to_draw
public static final DCTP.Command move
public static final DCTP.Command flip
public static final DCTP.Command genmove
public static final DCTP.Command game_over
public static final DCTP.Command ready
public static final DCTP.Command time_setting
public static final DCTP.Command time_left
public static final DCTP.Command showboard
public static DCTP.Command[] values()
for (DCTP.Command c : DCTP.Command.values()) System.out.println(c);
public static DCTP.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