public class StateMachine extends java.lang.Object implements IUpdateable
Modifier | Constructor and Description |
---|---|
protected |
StateMachine() |
Modifier and Type | Method and Description |
---|---|
State |
getCurrentState() |
void |
setState(State newState) |
void |
update()
This method is called by the game loop on all objects that need to update
their attributes.
|
public State getCurrentState()
public void setState(State newState)
public void update()
IUpdateable
update
in interface IUpdateable