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
Controls the state of an entity.
-
Field Summary
Fields inherited from interface IUpdateable
DEFAULT_UPDATE_PRIORITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStateController(T entity) Initializes a new instance of the StateController class with the specified entity. -
Method Summary
Methods inherited from class StateMachine
getCurrentState, setState, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IBehaviorController
attach, detachMethods inherited from interface IUpdateable
getUpdatePriority, update
-
Constructor Details
-
StateController
Initializes a new instance of the StateController class with the specified entity.- Parameters:
entity- the entity associated with this state controller
-
-
Method Details
-
getEntity
Gets the entity associated with this state controller.- Specified by:
getEntityin interfaceIEntityController- Returns:
- the entity associated with this state controller
-