wyvern.kernel.player
Interface MusicState.States

All Known Implementing Classes:
MusicManager
Enclosing interface:
MusicState

public static interface MusicState.States

Allows for convenient import of the music states.


Field Summary
static java.lang.String[] NAMES
           
static int NOT_READY
          Client hasn't sent an #endmusic command.
static int PLAYING
          We just sent a low-priority map-music track to the client, and they haven't responded with an #endmusic yet.
static int PRIORITY
          An event occurred to trigger a high-priority music track.
static int READY
          Client just send an #endmusic command, and is ready to play another soundtrack piece.
 

Field Detail

NOT_READY

public static final int NOT_READY
Client hasn't sent an #endmusic command. They either don't support music, or they have it turned off.

See Also:
Constant Field Values

READY

public static final int READY
Client just send an #endmusic command, and is ready to play another soundtrack piece.

See Also:
Constant Field Values

PLAYING

public static final int PLAYING
We just sent a low-priority map-music track to the client, and they haven't responded with an #endmusic yet.

See Also:
Constant Field Values

PRIORITY

public static final int PRIORITY
An event occurred to trigger a high-priority music track. We interrupt all other states (except NOT_READY, but including PRIORITY) to tell the client to play the track. Note: for all playMusic(), if the current track is the same piece as the new one, we leave the state alone, and take no action.

See Also:
Constant Field Values

NAMES

public static final java.lang.String[] NAMES