|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.amoebacode.blackjack.display.DisplayElement
|
+--com.amoebacode.blackjack.display.PreferencesDisplay
PreferencesDisplay displays and manages the game preferences and the display preferences.
| Field Summary | |
private PreferencesComboBox |
animationComboBox
The animation selection box |
private PreferencesComboBox |
audioComboBox
The audio selection box |
private DisplayPreferences |
displayPrefs
The display preferences |
static java.lang.String |
FAST_ANIMATION
The fast animation option |
private IPreferences |
preferences
The game preferences |
static java.lang.String |
SLOW_ANIMATION
The slow animation option |
private PreferencesComboBox |
strategyComboBox
The strategy tutor selection box |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
PreferencesDisplay(GameDisplay parent)
Default protected constructor |
| Method Summary | |
void |
closePreferences()
Hides the preferences select boxes and associated button. |
void |
hidePreferences()
Hides the preferences select boxes. |
boolean |
isFastAnimationDelay()
Indicates whether the current animation delay is fast. |
boolean |
isPlayAudio()
Indicates whether sound clips should be played. |
boolean |
isSlowAnimationDelay()
Indicates whether the current animation delay is slow. |
boolean |
isStrategyTutor()
Indicates whether the basic strategy tutor is on. |
void |
setAnimationDelay(java.lang.String delay)
Sets the animation delay to slow or fast. |
protected void |
setDisplayPreferences(DisplayPreferences displayPrefs)
Sets the display preferences for this display object. |
void |
setFastAnimation()
Sets the animation delay to fast animation. |
void |
setPlayAudio(boolean playAudio)
Turns the audio on or off. |
protected void |
setPreferences(IPreferences preferences)
Sets the game preferences for this display object. |
void |
setSlowAnimation()
Sets the animation delay to slow animation. |
void |
setStrategyTutor(boolean strategyTutor)
Turns the basic strategy tutor on or off. |
void |
showPreferences()
Unhides the preferences select boxes. |
private void |
showPreferences(boolean display)
Displays or hides the preferences select boxes. |
| Methods inherited from class com.amoebacode.blackjack.display.DisplayElement |
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String SLOW_ANIMATION
public static final java.lang.String FAST_ANIMATION
private PreferencesComboBox animationComboBox
private PreferencesComboBox strategyComboBox
private PreferencesComboBox audioComboBox
private IPreferences preferences
private DisplayPreferences displayPrefs
| Constructor Detail |
protected PreferencesDisplay(GameDisplay parent)
parent - the GameDisplay parent| Method Detail |
protected void setPreferences(IPreferences preferences)
preferences - the game IPreferencesprotected void setDisplayPreferences(DisplayPreferences displayPrefs)
displayPrefs - the DisplayPreferencespublic void showPreferences()
private void showPreferences(boolean display)
display - the new visibility attributepublic void closePreferences()
public void hidePreferences()
public void setSlowAnimation()
public void setFastAnimation()
public boolean isStrategyTutor()
public void setStrategyTutor(boolean strategyTutor)
strategyTutor - the new basic strategy tutor settingpublic void setPlayAudio(boolean playAudio)
strategyTutor - the new audio settingpublic void setAnimationDelay(java.lang.String delay)
delay - a String representing slow or fast animationpublic boolean isSlowAnimationDelay()
public boolean isFastAnimationDelay()
public boolean isPlayAudio()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||