public enum PacketRegistry extends java.lang.Enum<PacketRegistry>
Enum Constant and Description |
---|
GAME_END
Sent when the game ends.
|
GAME_INIT
Sent when a game is started.
|
PLAYER_JOIN
Sent when a player wants to join a game.
|
PLAYER_JOIN_ACCEPT
Sent when a player is accepted into a game.
|
PLAYER_JOIN_REJECT
Sent when a player is not allowed to join a game.
|
PLAYER_MOVE
Sent when a player make a move.
|
Modifier and Type | Method and Description |
---|---|
static PacketRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PacketRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketRegistry GAME_INIT
public static final PacketRegistry PLAYER_JOIN
public static final PacketRegistry PLAYER_JOIN_ACCEPT
public static final PacketRegistry PLAYER_MOVE
public static final PacketRegistry PLAYER_JOIN_REJECT
public static final PacketRegistry GAME_END
public static PacketRegistry[] values()
for (PacketRegistry c : PacketRegistry.values()) System.out.println(c);
public static PacketRegistry 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