Class PlaySoundAction
java.lang.Object
games.stendhal.server.entity.npc.action.PlaySoundAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ENVIRONMENT,
label="Sound")
public class PlaySoundAction
extends Object
implements ChatAction
plays the specified sound
-
Constructor Summary
ConstructorsConstructorDescriptionPlaySoundAction(String sound) Creates a new PlaySoundAction.PlaySoundAction(String sound, boolean delay) Creates a new PlaySoundAction. -
Method Summary
-
Constructor Details
-
PlaySoundAction
Creates a new PlaySoundAction.- Parameters:
sound- sound to play
-
PlaySoundAction
Creates a new PlaySoundAction.- Parameters:
sound- sound to playdelay- delay the sound for one turn because of zone change
-
-
Method Details
-
fire
Description copied from interface:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidraiser- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-