battlecode.common
public enum GameActionExceptionType extends Enum<GameActionExceptionType>
| Enum Constant and Description |
|---|
CANT_DO_THAT_BRO
Indicates when a robot tries to perform an action it can't.
|
CANT_MOVE_THERE
Indicates when a robot tries to move into non-empty square.
|
CANT_SENSE_THAT
Indicates when a robot tries to sense a
GameObject that is no longer existant or no longer
in this robot's sensor range. |
INTERNAL_ERROR
Internal error in the GameWorld engine.
|
MISSING_UPGRADE
Indicates when a robot tries to perform an action for which it does not have the required upgrade.
|
NO_ROBOT_THERE
Indicates when a robot tries to perform an action on another robot, but there is
no suitable robot 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 resource.
|
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(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 MISSING_UPGRADE
public static final GameActionExceptionType CANT_MOVE_THERE
public static final GameActionExceptionType NOT_ACTIVE
public static final GameActionExceptionType CANT_SENSE_THAT
GameObject that is no longer existant or no longer
in this robot's sensor range.public static final GameActionExceptionType OUT_OF_RANGE
public static final GameActionExceptionType CANT_DO_THAT_BRO
public static final GameActionExceptionType NO_ROBOT_THERE
public static GameActionExceptionType[] values()
for (GameActionExceptionType c : GameActionExceptionType.values()) System.out.println(c);
public static GameActionExceptionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null