public enum GameActionExceptionType extends java.lang.Enum<GameActionExceptionType>
| Enum Constant and Description |
|---|
CANT_DO_THAT
Indicates when a robot tries to perform an action it can't.
|
CANT_MOVE_THERE
Indicates when a robot tries to move into a non-empty location.
|
CANT_SENSE_THAT
Indicates when a robot tries to sense a robot, bullet, or tree that no longer exists or is no longer
in this robot's sensor range.
|
INTERNAL_ERROR
Internal error in the GameWorld engine.
|
NO_ROBOT_THERE
Indicates when a robot tries to perform an action on another robot, but there is
no suitable robot there.
|
NO_TREE_THERE
Indicates when a robot tries to perform an action on a tree, but there is
no suitable tree there.
|
NOT_ACTIVE
Indicates when a robot tries to execute an action, but is not currently idle.
|
NOT_ENOUGH_RESOURCE
Indicates when a robot tries to perform an action for which it does not have enough resources.
|
OUT_OF_RANGE
Indicates when a robot tries to perform an action on a location that is outside
its range.
|
| Modifier and Type | Method and Description |
|---|---|
static GameActionExceptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GameActionExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameActionExceptionType INTERNAL_ERROR
public static final GameActionExceptionType NOT_ENOUGH_RESOURCE
public static final GameActionExceptionType CANT_MOVE_THERE
public static final GameActionExceptionType NOT_ACTIVE
public static final GameActionExceptionType CANT_SENSE_THAT
public static final GameActionExceptionType OUT_OF_RANGE
public static final GameActionExceptionType CANT_DO_THAT
public static final GameActionExceptionType NO_ROBOT_THERE
public static final GameActionExceptionType NO_TREE_THERE
public static GameActionExceptionType[] values()
for (GameActionExceptionType c : GameActionExceptionType.values()) System.out.println(c);
public static GameActionExceptionType 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