Enum Constant and Description |
---|
GAME_END
Game has ended
|
NORMAL
Game is in normal play
|
TITLE_SCREEN
Game is displaying the Title Screen
|
TUTORIAL
Game is showing the tutorial
|
Modifier and Type | Field and Description |
---|---|
private boolean |
playable
Whether the game can be played normally during this phase.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isPlayable()
Returns whether the game is playable during this phase.
|
static GamePhase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GamePhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GamePhase TITLE_SCREEN
public static final GamePhase TUTORIAL
public static final GamePhase NORMAL
public static final GamePhase GAME_END
private boolean playable
public static GamePhase[] values()
for (GamePhase c : GamePhase.values()) System.out.println(c);
public static GamePhase 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 namejava.lang.NullPointerException
- if the argument is nullpublic boolean isPlayable()