|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.amoebacode.blackjack.display.SoundRegistry
SoundRegistry keeps all audio file paths.
| Field Summary | |
static java.lang.String |
BLACKJACK_SOUND
The filename of the blackjack sound (played when the user has blackjack) |
static java.lang.String |
BUST_SOUND
The filename of the bust sound (played when a hand busts) |
static java.lang.String |
CARD_SOUND
The filename of the card sound (played when a card is dealt) |
static java.lang.String |
DEFAULT_SOUND
The filename of the default sound (played when a button is clicked) |
static java.lang.String |
LOSE_SOUND
The filename of the lose sound (played when the user loses the round) |
static java.lang.String |
PUSH_SOUND
The filename of the push sound (played when the user pushes) |
static java.lang.String |
SHUFFLE_SOUND
The filename of the shuffle sound (played when the deck is shuffled) |
static java.lang.String[] |
SOUNDS
All of the audio clip filenames |
private static java.lang.String |
SOUNDS_PATH
The path to the audio clip files |
static java.lang.String |
WIN_SOUND
The filename of the win sound (played when the user wins the round) |
static java.lang.String |
WRONG_SOUND
The filename of the wrong sound (played when the user makes an incorrect basic strategy decision) |
| Constructor Summary | |
SoundRegistry()
|
|
| Method Summary | |
static java.lang.String |
getSoundPath(int index)
Returns the sound path for the specified audio clip filename. |
static java.lang.String |
getSoundPath(java.lang.String sound)
Returns the sound path for the specified audio clip filename. |
static java.lang.String[] |
getSounds()
Returns all of the audio clip filenames. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final java.lang.String SOUNDS_PATH
public static final java.lang.String BUST_SOUND
public static final java.lang.String CARD_SOUND
public static final java.lang.String DEFAULT_SOUND
public static final java.lang.String PUSH_SOUND
public static final java.lang.String SHUFFLE_SOUND
public static final java.lang.String BLACKJACK_SOUND
public static final java.lang.String LOSE_SOUND
public static final java.lang.String WIN_SOUND
public static final java.lang.String WRONG_SOUND
public static final java.lang.String[] SOUNDS
| Constructor Detail |
public SoundRegistry()
| Method Detail |
public static java.lang.String getSoundPath(java.lang.String sound)
sound - the audio clip filenamepublic static java.lang.String[] getSounds()
public static java.lang.String getSoundPath(int index)
index - the index of the audio clip filename
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||