Class SoundEffect
java.lang.Object
de.gurkenlabs.litiengine.abilities.effects.Effect
de.gurkenlabs.litiengine.abilities.effects.SoundEffect
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gurkenlabs.litiengine.abilities.effects.Effect
Effect.EffectAppliedListener, Effect.EffectCeasedListener -
Constructor Summary
ConstructorsConstructorDescriptionSoundEffect(ICombatEntity executingEntity, Sound... sounds) Initializes a new instance of theSoundEffectclass.SoundEffect(ICombatEntity executingEntity, String... sounds) Initializes a new instance of theSoundEffectclass with the specified executing entity and sounds.SoundEffect(Sound... sounds) Initializes a new instance of theSoundEffectclass with the specified sounds.SoundEffect(String... sounds) Initializes a new instance of theSoundEffectclass with the specified sounds. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(ICombatEntity entity) Applies the sound effect to the specified entity, playing a random sound from the list of sounds.Methods inherited from class de.gurkenlabs.litiengine.abilities.effects.Effect
apply, cease, cease, getActiveAppliances, getDelay, getDuration, getExecutingEntity, getFollowUpEffects, getTargetingStrategy, getTotalDuration, hasEnded, isActive, onEffectApplied, onEffectCeased, removeEffectAppliedListener, removeEffectCeasedListener, setDelay, setDuration, update
-
Constructor Details
-
SoundEffect
Initializes a new instance of theSoundEffectclass.- Parameters:
sounds- The sounds to chose from when applying the effect.
-
SoundEffect
Initializes a new instance of theSoundEffectclass with the specified sounds.- Parameters:
sounds- The sounds to choose from when applying the effect.
-
SoundEffect
Initializes a new instance of theSoundEffectclass with the specified executing entity and sounds.- Parameters:
executingEntity- The entity executing the effect.sounds- The names of the sounds to choose from when applying the effect.
-
SoundEffect
Initializes a new instance of theSoundEffectclass with the specified sounds.- Parameters:
sounds- The names of the sounds to choose from when applying the effect.
-
-
Method Details