Class SoundEffect
java.lang.Object
de.gurkenlabs.litiengine.abilities.effects.Effect
de.gurkenlabs.litiengine.abilities.effects.SoundEffect
- All Implemented Interfaces:
IUpdateable
public class SoundEffect
extends Effect
Nested Class Summary
Nested classes/interfaces inherited from class de.gurkenlabs.litiengine.abilities.effects.Effect
Effect.EffectAppliedListener, Effect.EffectCeasedListener
Constructor Summary
Constructors Constructor Description SoundEffect(Ability ability, Sound... sounds)
Initializes a new instance of theSoundEffect
class.SoundEffect(Ability ability, java.lang.String... sounds)
Method Summary
Modifier and Type Method Description protected void
apply(ICombatEntity entity)
Methods inherited from class de.gurkenlabs.litiengine.abilities.effects.Effect
apply, canAttackEntity, cease, cease, customTarget, getAbility, getActiveAppliances, getDelay, getDuration, getEffectTargets, getEntitiesInImpactArea, getFollowUpEffects, getTargetPriorityComparator, getTotalDuration, hasEnded, isActive, isAliveFriendlyEntity, isDeadFriendlyEntity, lookForAffectedEntities, onEffectApplied, onEffectCeased, removeEffectAppliedListener, removeEffectCeasedListener, setDelay, setDuration, setTargetPriorityComparator, update
Constructor Details
SoundEffect
Initializes a new instance of theSoundEffect
class.- Parameters:
ability
- The ability that performs the effect.sounds
- The sounds to chose from when applying the effect.
SoundEffect
Method Details