Class DynamicAbility
java.lang.Object
de.gurkenlabs.litiengine.abilities.Ability
de.gurkenlabs.litiengine.abilities.DynamicAbility
- All Implemented Interfaces:
IRenderable
- Direct Known Subclasses:
ScriptedAbility
-
Nested Class Summary
Nested classes/interfaces inherited from class Ability
Ability.AbilityCastListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncast()Casts the ability by the temporal conditions of the specified game loop and the spatial circumstances of the specified environment.voidsetCastConsumer(Consumer<AbilityExecution> castConsumer) Methods inherited from class Ability
addEffect, calculateImpactArea, calculatePotentialImpactArea, canCast, getAttributes, getCastType, getCooldownInSeconds, getCurrentExecution, getDescription, getEffects, getExecutor, getName, getPivot, getRemainingCooldownInSeconds, internalCalculateImpactArea, isActive, isMultiTarget, isOnCooldown, onCast, onEffectApplied, onEffectCeased, removeAbilityCastListener, render, setCastType, setDescription, setMultiTarget, setName
-
Constructor Details
-
DynamicAbility
-
-
Method Details
-
setCastConsumer
-
getCastConsumer
-
cast
Description copied from class:AbilityCasts the ability by the temporal conditions of the specified game loop and the spatial circumstances of the specified environment. An ability execution will be taken out that start applying all the effects of this ability.- Overrides:
castin classAbility- Returns:
- An
AbilityExecutionobject that wraps all information about this execution of the ability.
-