Enum Constant and Description |
---|
BACK_UP
The action of moving a robot one tile backward
|
MOVE_1
The action of moving a robot one tile forward
|
MOVE_2
The action of moving a robot two tiles forward
|
MOVE_3
The action of moving a robot three tiles forward
|
ROTATE_LEFT
The action of rotating a robot counterclockwise
|
ROTATE_RIGHT
The action of rotating a robot clockwise
|
U_TURN
The action of rotating a robot 180 degrees
|
Modifier and Type | Method and Description |
---|---|
static Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action ROTATE_RIGHT
public static final Action ROTATE_LEFT
public static final Action U_TURN
public static final Action MOVE_1
public static final Action MOVE_2
public static final Action MOVE_3
public static final Action BACK_UP
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action 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