Crossfire JXClient, Trunk
Public Member Functions | Public Attributes | List of all members
com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener Interface Reference
Inheritance diagram for com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener:
Collaboration graph

Public Member Functions

void commandSound2Received (int x, int y, int dir, int volume, int type, @NotNull String action, @NotNull String name)
 
void commandSoundReceived (int x, int y, int num, int type)
 

Public Attributes

int TYPE_GROUND = 4
 
int TYPE_HIT = 5
 
int TYPE_HIT_BY = 6
 
int TYPE_ITEM = 3
 
int TYPE_LIVING = 1
 
int TYPE_SPELL = 2
 

Detailed Description

Interface for listeners interested in "sound" commands.

Author
Andreas Kirschbaum

Definition at line 32 of file CrossfireSoundListener.java.

Member Function Documentation

◆ commandSound2Received()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.commandSound2Received ( int  x,
int  y,
int  dir,
int  volume,
int  type,
@NotNull String  action,
@NotNull String  name 
)

A sound2 command has been received.

Parameters
xthe x-coordinate relative to the player
ythe y-coordinate relative to the player
dirthe direction of the sound
volumethe volume of the sound
typethe sound type
actionthe action name
namethe sound name

◆ commandSoundReceived()

void com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.commandSoundReceived ( int  x,
int  y,
int  num,
int  type 
)

A sound command has been received.

Parameters
xthe x-coordinate relative to the player
ythe y-coordinate relative to the player
numthe sound number
typethe sound type

Member Data Documentation

◆ TYPE_GROUND

int com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.TYPE_GROUND = 4

Type for "ground sound (door, trap opening, ...)".

Definition at line 52 of file CrossfireSoundListener.java.

◆ TYPE_HIT

int com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.TYPE_HIT = 5

Type for "hit something".

Definition at line 57 of file CrossfireSoundListener.java.

◆ TYPE_HIT_BY

int com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.TYPE_HIT_BY = 6

Type for "hit by something".

Definition at line 62 of file CrossfireSoundListener.java.

◆ TYPE_ITEM

int com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.TYPE_ITEM = 3

Type for "item sound (potion, weapon ...)."

Definition at line 47 of file CrossfireSoundListener.java.

◆ TYPE_LIVING

int com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.TYPE_LIVING = 1

Type for "living sound (moving, dying, ...)".

Definition at line 37 of file CrossfireSoundListener.java.

◆ TYPE_SPELL

int com.realtime.crossfire.jxclient.server.crossfire.CrossfireSoundListener.TYPE_SPELL = 2

Type for "spell casting sound."

Definition at line 42 of file CrossfireSoundListener.java.


The documentation for this interface was generated from the following file: