Class StateController<T extends IEntity>

java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.StateMachine
de.gurkenlabs.litiengine.entities.behavior.StateController<T>
Type Parameters:
T - the type of entity
All Implemented Interfaces:
IBehaviorController, IEntityController, IUpdateable

public class StateController<T extends IEntity> extends StateMachine implements IBehaviorController
Controls the state of an entity.
  • Constructor Details

    • StateController

      protected StateController(T entity)
      Initializes a new instance of the StateController class with the specified entity.
      Parameters:
      entity - the entity associated with this state controller
  • Method Details

    • getEntity

      public T getEntity()
      Gets the entity associated with this state controller.
      Specified by:
      getEntity in interface IEntityController
      Returns:
      the entity associated with this state controller