|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a physical sound. Physical sounds have to stop when a listener leaves the map.
Field Summary |
Fields inherited from interface wyvern.lib.Music |
DEFAULT_COMBAT_MUSIC, DEFAULT_FUNERAL_MUSIC, DEFAULT_GAIN, DEFAULT_LEVELUP_MUSIC, DEFAULT_LOW_HP_COMBAT_MUSIC, DEFAULT_REPEAT_DELAY, DEFAULT_REPEATS, LOOP_FOREVER, PRIORITY_HIGH, PRIORITY_NORMAL |
Method Summary | |
void |
broadcast()
Plays the sound to everyone in range. |
java.lang.String |
getID()
Specifies a unique ID for this sound, so it can be cancelled later. |
java.lang.String |
getStopSubject()
Pubsub subject for notification from the client when the sound has finished playing. |
void |
stop()
Stops playing the sound (for everyone who can hear it). |
Methods inherited from interface wyvern.lib.Music |
getRepeatDelay, getRepeats, setRepeatDelay, setRepeats |
Methods inherited from interface wyvern.lib.Alert |
getGain, getPath, setGain, setPath |
Method Detail |
public java.lang.String getStopSubject()
Returns null if this is not a stoppable sound, i.e. the ID is "-1".
public void broadcast()
public java.lang.String getID()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |