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>

public abstract class EntityTransition<T extends IEntity> extends Transition
Represents a transition for an entity.
  • Constructor Details

    • EntityTransition

      protected EntityTransition(T entity, int priority, State state)
      Initializes a new instance of the EntityTransition class with the specified entity, priority, and state.
      Parameters:
      entity - the entity associated with this transition
      priority - the priority of the transition
      state - the state of the transition
    • EntityTransition

      protected EntityTransition(T entity, int priority)
      Initializes a new instance of the EntityTransition class with the specified entity and priority.
      Parameters:
      entity - the entity associated with this transition
      priority - the priority of the transition
  • Method Details

    • getEntity

      public T getEntity()
      Gets the entity associated with this transition.
      Returns:
      the entity associated with this transition