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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStateController(T entity) Initializes a new instance of the StateController class with the specified entity. -
Method Summary
Methods inherited from class de.gurkenlabs.litiengine.entities.behavior.StateMachine
getCurrentState, setState, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gurkenlabs.litiengine.entities.behavior.IBehaviorController
attach, detachMethods inherited from interface de.gurkenlabs.litiengine.IUpdateable
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
-