Package zombie.gameStates
Class GameStateMachine
java.lang.Object
zombie.gameStates.GameStateMachine
public class GameStateMachine
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GameStateMachine.StateAction
-
Field Summary
Fields Modifier and Type Field Description GameState
current
boolean
firstrun
GameState
forceNext
boolean
Loop
int
LoopToState
int
StateIndex
java.util.ArrayList
States
-
Constructor Summary
Constructors Constructor Description GameStateMachine()
-
Method Summary
Modifier and Type Method Description void
forceNextState(GameState gameState)
void
render()
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
firstrun
public boolean firstrun -
Loop
public boolean Loop -
StateIndex
public int StateIndex -
LoopToState
public int LoopToState -
States
public java.util.ArrayList States -
current
-
forceNext
-
-
Constructor Details
-
GameStateMachine
public GameStateMachine()
-
-
Method Details
-
render
public void render() -
update
public void update() -
forceNextState
-