Class StateMachine
java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.StateMachine
- All Implemented Interfaces:
IUpdateable
- Direct Known Subclasses:
StateController
public class StateMachine
extends java.lang.Object
implements IUpdateable
Constructor Summary
Constructors Modifier Constructor Description protected
StateMachine()
Method Summary
Modifier and Type Method Description State
getCurrentState()
void
setState(State newState)
void
update()
This method is called by the game loop on all objects that are attached to the loop.
Constructor Details
StateMachine
protected StateMachine()
Method Details
getCurrentState
setState
update
public void update()Description copied from interface:IUpdateable
This method is called by the game loop on all objects that are attached to the loop. It's called on every tick of the loop and the frequency can be configured using theClientConfiguration
.- Specified by:
update
in interfaceIUpdateable
- See Also:
ClientConfiguration.setMaxFps(int)