|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmako5.ctrl.GameState
public class GameState
A game state that is capable of rendering and handling input.
| Constructor Summary | |
|---|---|
GameState()
Makes a new blank game state. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Cleans up after this state. |
void |
exit()
Exits the program. |
GameStateMachine |
getMachine()
Returns the calling machine. |
void |
refresh()
Refreshes this state from the current stored game data in its calling machine. |
void |
render()
Renders this state. |
void |
setMachine(GameStateMachine m)
Sets the calling machine |
void |
store()
Stores information in the game data map. |
void |
update(float t)
Updates this state. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameState()
| Method Detail |
|---|
public GameStateMachine getMachine()
public void setMachine(GameStateMachine m)
public void render()
render in interface Renderpublic void refresh()
public void store()
public void update(float t)
update in interface RealTimet - the elapsed timepublic void cleanup()
public void exit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||