Class AbilityExecution

java.lang.Object
de.gurkenlabs.litiengine.abilities.AbilityExecution
All Implemented Interfaces:
IUpdateable

public class AbilityExecution extends Object implements IUpdateable
The AbilityExecution class represents the execution of an ability in the game. It contains information about the ability, its effects, and the location and time of its execution.
  • Method Details

    • getAbility

      public Ability getAbility()
      Gets the ability being executed.
      Returns:
      The ability being executed
    • getAppliedEffects

      public List<Effect> getAppliedEffects()
      Gets the effects that have been applied during this execution.
      Returns:
      The effects that have been applied
    • getCastLocation

      public Point2D getCastLocation()
      Gets the location where the ability was cast.
      Returns:
      The location where the ability was cast
    • getExecutionImpactArea

      public Shape getExecutionImpactArea()
      Gets the impact area of the ability execution.
      Returns:
      The impact area of the ability execution
    • getExecutionTicks

      public long getExecutionTicks()
      Gets the time (in ticks) when the ability was executed.
      Returns:
      The time in ticks when the ability was executed
    • update

      public void update()
      Updates the state of this ability execution. This method applies all ability effects after their delay and unregisters this instance after all effects were applied. Effects will apply their follow up effects on their own.
      Specified by:
      update in interface IUpdateable
      See Also: