Class EffectApplication
java.lang.Object
de.gurkenlabs.litiengine.abilities.effects.EffectApplication
Represents the application of an effect, including the entities affected and the area of impact.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEffectApplication(Collection<ICombatEntity> affectedEntities, Shape impactArea) Constructs an EffectApplication with the specified affected entities and impact area. -
Method Summary
Modifier and TypeMethodDescriptionGets the entities affected by the effect.longGets the time in ticks when the effect was applied.Gets the shape of the area where the effect is applied.
-
Constructor Details
-
EffectApplication
Constructs an EffectApplication with the specified affected entities and impact area.- Parameters:
affectedEntities- the entities affected by the effectimpactArea- the area where the effect is applied
-
-
Method Details
-
getAffectedEntities
Gets the entities affected by the effect.- Returns:
- the collection of affected entities
-
getAppliedTicks
public long getAppliedTicks()Gets the time in ticks when the effect was applied.- Returns:
- the applied time in ticks
-
getImpactArea
Gets the shape of the area where the effect is applied.- Returns:
- the impact area
-