public interface CrossfireSoundListener
extends java.util.EventListener
Modifier and Type | Field and Description |
---|---|
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."
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
commandSoundReceived(int x,
int y,
int num,
int type)
A sound command has been received.
|
static final int TYPE_LIVING
static final int TYPE_SPELL
static final int TYPE_ITEM
static final int TYPE_GROUND
static final int TYPE_HIT
static final int TYPE_HIT_BY
void commandSoundReceived(int x, int y, int num, int type)
x
- the x-coordinate relative to the playery
- the y-coordinate relative to the playernum
- the sound numbertype
- the sound typevoid commandSound2Received(int x, int y, int dir, int volume, int type, @NotNull @NotNull java.lang.String action, @NotNull @NotNull java.lang.String name)
x
- the x-coordinate relative to the playery
- the y-coordinate relative to the playerdir
- the direction of the soundvolume
- the volume of the soundtype
- the sound typeaction
- the action namename
- the sound name