Class EntityTransition<T extends IEntity>
java.lang.Object
de.gurkenlabs.litiengine.entities.behavior.Transition
de.gurkenlabs.litiengine.entities.behavior.EntityTransition<T>
- Type Parameters:
T- the type of entity
- All Implemented Interfaces:
Comparable<Transition>
Represents a transition for an entity.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityTransition(T entity, int priority) Initializes a new instance of the EntityTransition class with the specified entity and priority.protectedEntityTransition(T entity, int priority, State state) Initializes a new instance of the EntityTransition class with the specified entity, priority, and state. -
Method Summary
Methods inherited from class de.gurkenlabs.litiengine.entities.behavior.Transition
compareTo, conditionsFullfilled, getNextState, getPriority
-
Constructor Details
-
EntityTransition
Initializes a new instance of the EntityTransition class with the specified entity, priority, and state.- Parameters:
entity- the entity associated with this transitionpriority- the priority of the transitionstate- the state of the transition
-
EntityTransition
Initializes a new instance of the EntityTransition class with the specified entity and priority.- Parameters:
entity- the entity associated with this transitionpriority- the priority of the transition
-
-
Method Details
-
getEntity
Gets the entity associated with this transition.- Returns:
- the entity associated with this transition
-