public static enum Types.ACTIONS extends java.lang.Enum<Types.ACTIONS>
Enum Constant and Description |
---|
ACTION_DOWN |
ACTION_ESCAPE |
ACTION_LEFT |
ACTION_NIL |
ACTION_RIGHT |
ACTION_UP |
ACTION_USE |
Modifier and Type | Method and Description |
---|---|
static Types.ACTIONS |
fromString(java.lang.String strKey) |
static Types.ACTIONS |
fromVector(Direction move) |
static Types.ACTIONS |
fromVector(Vector2d move) |
int[] |
getKey() |
static boolean |
isMoving(Types.ACTIONS value) |
static Types.ACTIONS |
reverseACTION(Types.ACTIONS value) |
static Types.ACTIONS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Types.ACTIONS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Types.ACTIONS ACTION_NIL
public static final Types.ACTIONS ACTION_UP
public static final Types.ACTIONS ACTION_LEFT
public static final Types.ACTIONS ACTION_DOWN
public static final Types.ACTIONS ACTION_RIGHT
public static final Types.ACTIONS ACTION_USE
public static final Types.ACTIONS ACTION_ESCAPE
public static Types.ACTIONS[] values()
for (Types.ACTIONS c : Types.ACTIONS.values()) System.out.println(c);
public static Types.ACTIONS 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 nullpublic int[] getKey()
public static Types.ACTIONS fromString(java.lang.String strKey)
public static Types.ACTIONS fromVector(Vector2d move)
public static boolean isMoving(Types.ACTIONS value)
public static Types.ACTIONS reverseACTION(Types.ACTIONS value)
public static Types.ACTIONS fromVector(Direction move)