Class AbilityExecution
java.lang.Object
de.gurkenlabs.litiengine.abilities.AbilityExecution
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionGets the ability being executed.Gets the effects that have been applied during this execution.Gets the location where the ability was cast.Gets the impact area of the ability execution.longGets the time (in ticks) when the ability was executed.voidupdate()Updates the state of this ability execution.
-
Method Details
-
getAbility
-
getAppliedEffects
-
getCastLocation
Gets the location where the ability was cast.- Returns:
- The location where the ability was cast
-
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:
updatein interfaceIUpdateable- See Also:
-