|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.adventure.structure.StateManager
public class StateManager
This is a class that reflects the current game state. It implements the singleton pattern.
Method Summary | |
---|---|
boolean |
equals(State state)
Determins whether the current gamestate is equal to the specified one |
static StateManager |
getInstance()
Returns the singleton instance of the state manager |
State |
getState()
Returns the current game state |
void |
setState(State state)
Sets the current game state to the specified state from the State enumeration |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static StateManager getInstance()
public void setState(State state)
state
- new game statepublic State getState()
public boolean equals(State state)
state
- the state to compare for equality
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |