Interface CrossfireSoundListener

All Superinterfaces:
EventListener

public interface CrossfireSoundListener extends EventListener
Interface for listeners interested in "sound" commands.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Type for "ground sound (door, trap opening, ...)".
    static final int
    Type for "hit something".
    static final int
    Type for "hit by something".
    static final int
    Type for "item sound (potion, weapon ...)."
    static final int
    Type for "living sound (moving, dying, ...)".
    static final int
    Type for "spell casting sound."
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commandSound2Received(int x, int y, int dir, int volume, int type, @NotNull String action, @NotNull String name)
    A sound2 command has been received.
    void
    commandSoundReceived(int x, int y, int num, int type)
    A sound command has been received.
  • Field Details

    • TYPE_LIVING

      static final int TYPE_LIVING
      Type for "living sound (moving, dying, ...)".
      See Also:
    • TYPE_SPELL

      static final int TYPE_SPELL
      Type for "spell casting sound."
      See Also:
    • TYPE_ITEM

      static final int TYPE_ITEM
      Type for "item sound (potion, weapon ...)."
      See Also:
    • TYPE_GROUND

      static final int TYPE_GROUND
      Type for "ground sound (door, trap opening, ...)".
      See Also:
    • TYPE_HIT

      static final int TYPE_HIT
      Type for "hit something".
      See Also:
    • TYPE_HIT_BY

      static final int TYPE_HIT_BY
      Type for "hit by something".
      See Also:
  • Method Details

    • commandSoundReceived

      void commandSoundReceived(int x, int y, int num, int type)
      A sound command has been received.
      Parameters:
      x - the x-coordinate relative to the player
      y - the y-coordinate relative to the player
      num - the sound number
      type - the sound type
    • commandSound2Received

      void commandSound2Received(int x, int y, int dir, int volume, int type, @NotNull @NotNull String action, @NotNull @NotNull String name)
      A sound2 command has been received.
      Parameters:
      x - the x-coordinate relative to the player
      y - the y-coordinate relative to the player
      dir - the direction of the sound
      volume - the volume of the sound
      type - the sound type
      action - the action name
      name - the sound name