public static enum Robot.GridObject extends java.lang.Enum<Robot.GridObject>
| Enum Constant and Description |
|---|
ALLY |
BLOCKED |
CAPSULE |
EMPTY |
ENEMY |
FORT |
SELF |
WALL |
| Modifier and Type | Method and Description |
|---|---|
static Robot.GridObject |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Robot.GridObject[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Robot.GridObject EMPTY
public static final Robot.GridObject BLOCKED
public static final Robot.GridObject SELF
public static final Robot.GridObject ALLY
public static final Robot.GridObject ENEMY
public static final Robot.GridObject WALL
public static final Robot.GridObject FORT
public static final Robot.GridObject CAPSULE
public static Robot.GridObject[] values()
for (Robot.GridObject c : Robot.GridObject.values()) System.out.println(c);
public static Robot.GridObject 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