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