| Enum Constant and Description | 
|---|
| BACK_UPThe action of moving a robot one tile backward | 
| MOVE_1The action of moving a robot one tile forward | 
| MOVE_2The action of moving a robot two tiles forward | 
| MOVE_3The action of moving a robot three tiles forward | 
| ROTATE_LEFTThe action of rotating a robot counterclockwise | 
| ROTATE_RIGHTThe action of rotating a robot clockwise | 
| U_TURNThe 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