|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GameActionExceptionType>
battlecode.common.GameActionExceptionType
public enum GameActionExceptionType
Enumerates the possible errors in GameWorld interactions that cause a GameActionException to be thrown.
Enum Constant Summary | |
---|---|
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 (e.g. |
|
OUT_OF_RANGE
Indicates when a robot tries to perform an action on a location that is outside its range. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- if the argument is null
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |