Blackjack

com.amoebacode.blackjack.display
Class SoundRegistry

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.SoundRegistry

public abstract class SoundRegistry
extends java.lang.Object

SoundRegistry keeps all audio file paths.

Version:
0.9
Author:
Jason Gurney

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

SOUNDS_PATH

private static final java.lang.String SOUNDS_PATH
The path to the audio clip files

BUST_SOUND

public static final java.lang.String BUST_SOUND
The filename of the bust sound (played when a hand busts)

CARD_SOUND

public static final java.lang.String CARD_SOUND
The filename of the card sound (played when a card is dealt)

DEFAULT_SOUND

public static final java.lang.String DEFAULT_SOUND
The filename of the default sound (played when a button is clicked)

PUSH_SOUND

public static final java.lang.String PUSH_SOUND
The filename of the push sound (played when the user pushes)

SHUFFLE_SOUND

public static final java.lang.String SHUFFLE_SOUND
The filename of the shuffle sound (played when the deck is shuffled)

BLACKJACK_SOUND

public static final java.lang.String BLACKJACK_SOUND
The filename of the blackjack sound (played when the user has blackjack)

LOSE_SOUND

public static final java.lang.String LOSE_SOUND
The filename of the lose sound (played when the user loses the round)

WIN_SOUND

public static final java.lang.String WIN_SOUND
The filename of the win sound (played when the user wins the round)

WRONG_SOUND

public static final java.lang.String WRONG_SOUND
The filename of the wrong sound (played when the user makes an incorrect basic strategy decision)

SOUNDS

public static final java.lang.String[] SOUNDS
All of the audio clip filenames
Constructor Detail

SoundRegistry

public SoundRegistry()
Method Detail

getSoundPath

public static java.lang.String getSoundPath(java.lang.String sound)
Returns the sound path for the specified audio clip filename.
Parameters:
sound - the audio clip filename
Returns:
the corresponding sound path

getSounds

public static java.lang.String[] getSounds()
Returns all of the audio clip filenames.
Returns:
a String array of the audio clip filenames

getSoundPath

public static java.lang.String getSoundPath(int index)
Returns the sound path for the specified audio clip filename.
Parameters:
index - the index of the audio clip filename
Returns:
the corresponding sound path

Blackjack

Copyright © 2002 amoebacode.com.