|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.amoebacode.blackjack.display.DisplayPreferences
DisplayPreferences tracks user display preferences.
| Field Summary | |
private int |
animationDelay
The current animation delay |
private static int |
FAST_ANIMATION_DELAY
The millisecond delay for fast animation |
private static int |
PIXELS_PER_MOVE
The number of pixels to move per animation loop |
private boolean |
playAudio
Indicates whether audio clips should be played |
private static int |
SLOW_ANIMATION_DELAY
The millisecond delay for slow animation |
| Constructor Summary | |
protected |
DisplayPreferences()
Default protected constructor |
| Method Summary | |
protected int |
getAnimationDelay()
Returns the current animation delay |
protected static int |
getPixelsPerMove()
Returns the number of pixels to move per animation loop. |
protected boolean |
isFastAnimationDelay()
Indicates whether the current animation delay is fast. |
protected boolean |
isPlayAudio()
Indicates whether sound clips should be played. |
protected boolean |
isSlowAnimationDelay()
Indicates whether the current animation delay is slow. |
protected void |
setFastAnimation()
Sets the animation delay to fast animation. |
protected void |
setPlayAudio(boolean playAudio)
Turns the audio on or off. |
protected void |
setSlowAnimation()
Sets the animation delay to slow animation. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final int SLOW_ANIMATION_DELAY
private static final int FAST_ANIMATION_DELAY
private int animationDelay
private static final int PIXELS_PER_MOVE
private boolean playAudio
| Constructor Detail |
protected DisplayPreferences()
| Method Detail |
protected int getAnimationDelay()
protected void setSlowAnimation()
protected void setFastAnimation()
protected boolean isPlayAudio()
protected void setPlayAudio(boolean playAudio)
strategyTutor - the new audio settingprotected boolean isSlowAnimationDelay()
protected boolean isFastAnimationDelay()
protected static int getPixelsPerMove()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||