|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a background music track to play on the client. Inherits from Alert because we have many of the same operations, even though they're logically very different kinds of audible events.
| Field Summary | |
static java.lang.String |
DEFAULT_COMBAT_MUSIC
The default music track to play for combat. |
static java.lang.String |
DEFAULT_FUNERAL_MUSIC
Default music track to play when a player dies. |
static double |
DEFAULT_GAIN
Default volume. |
static java.lang.String |
DEFAULT_LEVELUP_MUSIC
Default music track to play when a player dies. |
static java.lang.String |
DEFAULT_LOW_HP_COMBAT_MUSIC
Default music track to play if HP are very low. |
static int |
DEFAULT_REPEAT_DELAY
By default no delay between repeats of a track. |
static int |
DEFAULT_REPEATS
By default, background track loops indefinitely, if supported by the client. |
static int |
LOOP_FOREVER
Setting the number of repeats to this value makes it loop continuously. |
static int |
PRIORITY_HIGH
High-priority background music: quest solved, combat started, etc. |
static int |
PRIORITY_NORMAL
Normal-priority background music. |
| Method Summary | |
int |
getRepeatDelay()
Returns delay in millis between repeats |
int |
getRepeats()
Returns number of times to repeat before stopping and sending a notification to the server that we're done. |
void |
setRepeatDelay(int repeatDelay)
Sets delay in millis between repeats |
void |
setRepeats(int repeats)
Sets number of times to repeat the music before stopping. |
| Methods inherited from interface wyvern.lib.Alert |
getGain, getPath, setGain, setPath |
| Field Detail |
public static final int PRIORITY_NORMAL
public static final int PRIORITY_HIGH
public static final java.lang.String DEFAULT_COMBAT_MUSIC
public static final java.lang.String DEFAULT_LOW_HP_COMBAT_MUSIC
public static final java.lang.String DEFAULT_FUNERAL_MUSIC
public static final java.lang.String DEFAULT_LEVELUP_MUSIC
public static final int LOOP_FOREVER
public static final int DEFAULT_REPEATS
public static final int DEFAULT_REPEAT_DELAY
public static final double DEFAULT_GAIN
| Method Detail |
public int getRepeats()
public void setRepeats(int repeats)
repeats - number of times to repeat. A value of
zero (0) means to play the piece once and stop, with no
repeats. A value of -1 means to loop continuously.public int getRepeatDelay()
public void setRepeatDelay(int repeatDelay)
repeatDelay - delay in millis between repeats
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||