cz.cuni.pogamut.MessageObjects
Enum CommandTypes
java.lang.Object
java.lang.Enum<CommandTypes>
cz.cuni.pogamut.MessageObjects.CommandTypes
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CommandTypes>
public enum CommandTypes
- extends java.lang.Enum<CommandTypes>
enum of all available commands (command types)
Method Summary |
static CommandTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CommandTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
INIT
public static final CommandTypes INIT
DODGE
public static final CommandTypes DODGE
SET_WALK
public static final CommandTypes SET_WALK
STOP
public static final CommandTypes STOP
JUMP
public static final CommandTypes JUMP
RUN_TO
public static final CommandTypes RUN_TO
STRAFE
public static final CommandTypes STRAFE
TURN_TO
public static final CommandTypes TURN_TO
ROTATE
public static final CommandTypes ROTATE
SHOOT
public static final CommandTypes SHOOT
CHANGE_WEAPON
public static final CommandTypes CHANGE_WEAPON
STOP_SHOOT
public static final CommandTypes STOP_SHOOT
CHECK_REACH
public static final CommandTypes CHECK_REACH
GET_PATH
public static final CommandTypes GET_PATH
MESSAGE
public static final CommandTypes MESSAGE
PING
public static final CommandTypes PING
READY
public static final CommandTypes READY
THROW
public static final CommandTypes THROW
REC
public static final CommandTypes REC
STOP_REC
public static final CommandTypes STOP_REC
TRACE
public static final CommandTypes TRACE
FAST_TRACE
public static final CommandTypes FAST_TRACE
RESPAWN
public static final CommandTypes RESPAWN
MOVE
public static final CommandTypes MOVE
SET_CROUCH
public static final CommandTypes SET_CROUCH
ADD_RAY
public static final CommandTypes ADD_RAY
REMOVE_RAY
public static final CommandTypes REMOVE_RAY
CONF
public static final CommandTypes CONF
ADD_INV
public static final CommandTypes ADD_INV
INCH
public static final CommandTypes INCH
CMOVE
public static final CommandTypes CMOVE
PAUSE
public static final CommandTypes PAUSE
QUIT
public static final CommandTypes QUIT
SETSKIN
public static final CommandTypes SETSKIN
values
public static CommandTypes[] 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 (CommandTypes c : CommandTypes.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CommandTypes 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