|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstate.GameState
public class GameState
This class manages various game states of the game
| Field Summary | |
|---|---|
static int |
CUTSCENE
game state to signal running of cutscene |
static int |
DIALOG
game state when running a dialog |
static int |
DIALOG_SELECTION
state when showing the question selection area |
static int |
NO_INPUT_PROCESSING
game state to signal that no user will be processed |
static int |
NORMAL
the normal game mode |
static int |
TRANSITION_FROM_CUTSCENE
game state to describe that a cutscene will start the next frame. |
static int |
WALKING_TO_DIALOG
state to signal the player is walking to a dialog |
| Constructor Summary | |
|---|---|
GameState()
|
|
| Method Summary | |
|---|---|
static boolean |
equals(int state)
Determins whether the current gamestate is equal to the specified one |
static int |
getState()
Returns the current set game state |
static void |
setState(int state)
Sets the current game state to the specified parameter, for example GameState.DIALOG |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NORMAL
public static final int WALKING_TO_DIALOG
public static final int DIALOG_SELECTION
public static final int DIALOG
public static final int NO_INPUT_PROCESSING
public static final int CUTSCENE
public static final int TRANSITION_FROM_CUTSCENE
| Constructor Detail |
|---|
public GameState()
| Method Detail |
|---|
public static void setState(int state)
state - new game statepublic static int getState()
public static boolean equals(int state)
state - the state to compare for equality
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||