Class EffectApplication

java.lang.Object
de.gurkenlabs.litiengine.abilities.effects.EffectApplication

public class EffectApplication extends Object
Represents the application of an effect, including the entities affected and the area of impact.
  • Constructor Details

    • EffectApplication

      protected EffectApplication(Collection<ICombatEntity> affectedEntities, Shape impactArea)
      Constructs an EffectApplication with the specified affected entities and impact area.
      Parameters:
      affectedEntities - the entities affected by the effect
      impactArea - the area where the effect is applied
  • Method Details

    • getAffectedEntities

      public Collection<ICombatEntity> 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

      public Shape getImpactArea()
      Gets the shape of the area where the effect is applied.
      Returns:
      the impact area