Interface CrossfireSoundListener
- All Superinterfaces:
EventListener
Interface for listeners interested in "sound" commands.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intType for "ground sound (door, trap opening, ...)".static final intType for "hit something".static final intType for "hit by something".static final intType for "item sound (potion, weapon ...)."static final intType for "living sound (moving, dying, ...)".static final intType for "spell casting sound." -
Method Summary
Modifier and TypeMethodDescriptionvoidcommandSound2Received(int x, int y, int dir, int volume, int type, @NotNull String action, @NotNull String name) A sound2 command has been received.voidcommandSoundReceived(int x, int y, int num, int type) A sound command has been received.
-
Field Details
-
TYPE_LIVING
static final int TYPE_LIVINGType for "living sound (moving, dying, ...)".- See Also:
-
TYPE_SPELL
static final int TYPE_SPELLType for "spell casting sound."- See Also:
-
TYPE_ITEM
static final int TYPE_ITEMType for "item sound (potion, weapon ...)."- See Also:
-
TYPE_GROUND
static final int TYPE_GROUNDType for "ground sound (door, trap opening, ...)".- See Also:
-
TYPE_HIT
static final int TYPE_HITType for "hit something".- See Also:
-
TYPE_HIT_BY
static final int TYPE_HIT_BYType 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 playery- the y-coordinate relative to the playernum- the sound numbertype- 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 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
-