net.mazewar
Enum GamePacket.MessageType
java.lang.Object
java.lang.Enum<GamePacket.MessageType>
net.mazewar.GamePacket.MessageType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<GamePacket.MessageType>
- Enclosing class:
- GamePacket
public static enum GamePacket.MessageType
- extends java.lang.Enum<GamePacket.MessageType>
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
REQUEST_PEER_LIST
public static final GamePacket.MessageType REQUEST_PEER_LIST
PEER_LIST_ACK
public static final GamePacket.MessageType PEER_LIST_ACK
REGISTER
public static final GamePacket.MessageType REGISTER
REGISTER_ACK
public static final GamePacket.MessageType REGISTER_ACK
UPDATE
public static final GamePacket.MessageType UPDATE
BIRTH
public static final GamePacket.MessageType BIRTH
KILLED
public static final GamePacket.MessageType KILLED
FIRE
public static final GamePacket.MessageType FIRE
MISSED_ACK
public static final GamePacket.MessageType MISSED_ACK
KILLED_ACK
public static final GamePacket.MessageType KILLED_ACK
BYE
public static final GamePacket.MessageType BYE
values
public static GamePacket.MessageType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (GamePacket.MessageType c : GamePacket.MessageType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GamePacket.MessageType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null