|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MineState>
robocode.control.snapshot.MineState
public enum MineState
Enum Constant Summary | |
---|---|
EXPLODING
The mine currently represents a ship explosion, i.e. a ship death. |
|
FLOATING
|
|
HIT_MINE
|
|
HIT_VICTIM
|
|
INACTIVE
The mine is currently inactive. |
|
PLACED
The bullet has just been placed this turn and hence just been created. |
Method Summary | |
---|---|
int |
getValue()
Returns the state as an integer value. |
boolean |
isActive()
|
static MineState |
toState(int value)
Returns a BulletState based on an integer value that represents a BulletState. |
static MineState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MineState[] |
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 MineState PLACED
public static final MineState FLOATING
public static final MineState HIT_VICTIM
public static final MineState EXPLODING
public static final MineState HIT_MINE
public static final MineState INACTIVE
Method Detail |
---|
public static MineState[] values()
for (MineState c : MineState.values()) System.out.println(c);
public static MineState 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 nullpublic int getValue()
toState(int)
public static MineState toState(int value)
value
- the integer value that represents a specific BulletState.
IllegalArgumentException
- if the specified value does not correspond
to a BulletState and hence is invalid.getValue()
public boolean isActive()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |