Class StateMachine

java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.StateMachine
All Implemented Interfaces:
IUpdateable
Direct Known Subclasses:
StateController

public class StateMachine extends Object implements IUpdateable
  • Constructor Details

    • StateMachine

      protected StateMachine()
  • Method Details

    • getCurrentState

      public State getCurrentState()
    • setState

      public void setState(State newState)
    • 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 the ClientConfiguration.
      Specified by:
      update in interface IUpdateable
      See Also: