com.realtime.crossfire.jxclient.server.crossfire
Interface CrossfireSoundListener


public interface CrossfireSoundListener

Interface for listeners interested in "sound" commands.


Field Summary
static int TYPE_GROUND
          Type for "ground sound (door, trap opening, ...)".
static int TYPE_HIT
          Type for "hit something".
static int TYPE_HIT_BY
          Type for "hit by something".
static int TYPE_ITEM
          Type for "item sound (potion, weapon ...)."
static int TYPE_LIVING
          Type for "living sound (moving, dying, ...)".
static int TYPE_SPELL
          Type for "spell casting sound."
 
Method Summary
 void commandSound2Received(int x, int y, int dir, int volume, int type, java.lang.String action, java.lang.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 Detail

TYPE_GROUND

static final int TYPE_GROUND
Type for "ground sound (door, trap opening, ...)".

See Also:
Constant Field Values

TYPE_HIT

static final int TYPE_HIT
Type for "hit something".

See Also:
Constant Field Values

TYPE_HIT_BY

static final int TYPE_HIT_BY
Type for "hit by something".

See Also:
Constant Field Values

TYPE_ITEM

static final int TYPE_ITEM
Type for "item sound (potion, weapon ...)."

See Also:
Constant Field Values

TYPE_LIVING

static final int TYPE_LIVING
Type for "living sound (moving, dying, ...)".

See Also:
Constant Field Values

TYPE_SPELL

static final int TYPE_SPELL
Type for "spell casting sound."

See Also:
Constant Field Values
Method Detail

commandSound2Received

void commandSound2Received(int x,
                           int y,
                           int dir,
                           int volume,
                           int type,
                           @NotNull
                           java.lang.String action,
                           @NotNull
                           java.lang.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.

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.