edu.trinity.cs.gamecore
Enum Player.GameStatus
java.lang.Object
java.lang.Enum<Player.GameStatus>
edu.trinity.cs.gamecore.Player.GameStatus
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Player.GameStatus>
- Enclosing interface:
- Player<B extends Block<B,E>,E extends GameEntity<B,E>>
public static enum Player.GameStatus
- extends java.lang.Enum<Player.GameStatus>
This enum is used by the gameStatus method. You should return one of the
elements in it for your game status.
Method Summary |
static Player.GameStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Player.GameStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
GAME_RUNNING
public static final Player.GameStatus GAME_RUNNING
PLAYER_DEAD
public static final Player.GameStatus PLAYER_DEAD
GAME_SUCCESS
public static final Player.GameStatus GAME_SUCCESS
values
public static final Player.GameStatus[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Player.GameStatus c : Player.GameStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Player.GameStatus valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name