Class ForceEffect
java.lang.Object
de.gurkenlabs.litiengine.abilities.effects.Effect
de.gurkenlabs.litiengine.abilities.effects.ForceEffect
- All Implemented Interfaces:
IUpdateable
public abstract class ForceEffect
extends Effect
Nested Class Summary
Nested classes/interfaces inherited from class de.gurkenlabs.litiengine.abilities.effects.Effect
Effect.EffectAppliedListener, Effect.EffectCeasedListener
Constructor Summary
Constructors Modifier Constructor Description protected
ForceEffect(Ability ability, float strength, EffectTarget... targets)
Method Summary
Modifier and Type Method Description void
apply(ICombatEntity affectedEntity)
protected abstract Force
applyForce(IMobileEntity affectedEntity)
protected void
cease(EffectApplication appliance)
protected Force
getAppliedForce()
float
getStrength()
protected boolean
hasEnded(EffectApplication appliance)
Methods inherited from class de.gurkenlabs.litiengine.abilities.effects.Effect
apply, canAttackEntity, cease, customTarget, getAbility, getActiveAppliances, getDelay, getDuration, getEffectTargets, getEntitiesInImpactArea, getFollowUpEffects, getTargetPriorityComparator, getTotalDuration, isActive, isAliveFriendlyEntity, isDeadFriendlyEntity, lookForAffectedEntities, onEffectApplied, onEffectCeased, removeEffectAppliedListener, removeEffectCeasedListener, setDelay, setDuration, setTargetPriorityComparator, update
Constructor Details
Method Details
apply
getStrength
public float getStrength()applyForce
cease
getAppliedForce
hasEnded