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 Details

    • PlaySoundAction

      public PlaySoundAction(String sound)
      Creates a new PlaySoundAction.
      Parameters:
      sound - sound to play
    • PlaySoundAction

      @Dev public PlaySoundAction(String sound, boolean delay)
      Creates a new PlaySoundAction.
      Parameters:
      sound - sound to play
      delay - delay the sound for one turn because of zone change
  • Method Details