Class SoundEffect
java.lang.Object
de.gurkenlabs.litiengine.abilities.effects.Effect
de.gurkenlabs.litiengine.abilities.effects.SoundEffect
- All Implemented Interfaces:
IUpdateable
-
Nested Class Summary
Nested classes/interfaces inherited from class Effect
Effect.EffectAppliedListener, Effect.EffectCeasedListener -
Field Summary
Fields inherited from interface IUpdateable
DEFAULT_UPDATE_PRIORITY -
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 Effect
apply, cease, cease, getActiveAppliances, getDelay, getDuration, getExecutingEntity, getFollowUpEffects, getTargetingStrategy, getTotalDuration, hasEnded, isActive, onEffectApplied, onEffectCeased, removeEffectAppliedListener, removeEffectCeasedListener, setDelay, setDuration, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IUpdateable
getUpdatePriority
-
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