public static enum MoveAction.Direction extends java.lang.Enum<MoveAction.Direction>
| Enum Constant and Description |
|---|
DOWN
Move down
|
LEFT
Move left
|
RIGHT
Move right
|
UP
Move up
|
| Modifier and Type | Method and Description |
|---|---|
static MoveAction.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MoveAction.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MoveAction.Direction UP
public static final MoveAction.Direction LEFT
public static final MoveAction.Direction RIGHT
public static final MoveAction.Direction DOWN
public static MoveAction.Direction[] values()
for (MoveAction.Direction c : MoveAction.Direction.values()) System.out.println(c);
public static MoveAction.Direction 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