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 IUpdateableConstructor Summary
Constructors Modifier Constructor Description protectedStateMachine()Method Summary
Modifier and Type Method Description StategetCurrentState()voidsetState(State newState)voidupdate()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:IUpdateableThis 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:
updatein interfaceIUpdateable- See Also:
ClientConfiguration.setMaxFps(int)
