|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<SOCGame.SeatLockState> soc.game.SOCGame.SeatLockState
public static enum SOCGame.SeatLockState
Seat lock states for lock/unlock.
Note different meanings while game is forming
(gameState NEW
) versus already active.
Enum Constant Summary | |
---|---|
CLEAR_ON_RESET
If this active game is reset, a robot will not take this seat, it will be left vacant. |
|
LOCKED
Seat is locked. |
|
UNLOCKED
Seat not locked. |
Method Summary | |
---|---|
static SOCGame.SeatLockState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SOCGame.SeatLockState[] |
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 SOCGame.SeatLockState UNLOCKED
public static final SOCGame.SeatLockState LOCKED
public static final SOCGame.SeatLockState CLEAR_ON_RESET
This feature was added in v2.0.00; before that version, the seat lock state was boolean (UNLOCKED or LOCKED). Game resets included all robots unless their seat was LOCKED at the time of reset.
Method Detail |
---|
public static SOCGame.SeatLockState[] values()
for (SOCGame.SeatLockState c : SOCGame.SeatLockState.values()) System.out.println(c);
public static SOCGame.SeatLockState 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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |