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 |
---|
static final int TYPE_GROUND
static final int TYPE_HIT
static final int TYPE_HIT_BY
static final int TYPE_ITEM
static final int TYPE_LIVING
static final int TYPE_SPELL
Method Detail |
---|
void commandSound2Received(int x, int y, int dir, int volume, int type, @NotNull java.lang.String action, @NotNull java.lang.String name)
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.void commandSoundReceived(int x, int y, int num, int type)
x
- The x-coordinate relative to the player.y
- The y-coordinate relative to the player.num
- The sound number.type
- The sound type.