|
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.button.GameButtonSet
GameButtonSet manages all game buttons (deal, shuffle, etc.)
| Field Summary | |
private GameButton |
dealButton
The deal button |
private GameButton |
lowerBetButton
The lower bet button |
private GameButton |
optionsButton
The house rules button |
private GameButton |
preferencesButton
The preferences button |
private GameButton |
raiseBetButton
The raise bet button |
private GameButton |
saveOptionsButton
The save house rules button |
private GameButton |
savePreferencesButton
The save preferences button |
private GameButton |
shuffleButton
The shuffle button |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
GameButtonSet(GameDisplay game)
Default public constructor. |
|
| Method Summary | |
void |
activateButtons()
Activates all of the game buttons. |
void |
drawButtons()
Creates the set of game buttons through the button factory. |
void |
hideButtons()
Hides all of the game buttons. |
void |
hideOptions()
Unhides all of the game buttons and hides the save house rules button. |
void |
hidePreferences()
Unhides all of the game buttons and hides the save preferences button. |
void |
showOptions()
Hides all of the game buttons and unhides the save house rules button. |
void |
showPreferences()
Hides all of the game buttons and unhides the save preferences button. |
void |
updateButtons(AvailableGameCommands availableCommands)
Updates the set of available buttons based on the specified available commands. |
| 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 |
private GameButton dealButton
private GameButton shuffleButton
private GameButton optionsButton
private GameButton preferencesButton
private GameButton raiseBetButton
private GameButton lowerBetButton
private GameButton saveOptionsButton
private GameButton savePreferencesButton
| Constructor Detail |
public GameButtonSet(GameDisplay game)
game - the parent GameDisplay| Method Detail |
public void drawButtons()
public void hideButtons()
public void activateButtons()
public void updateButtons(AvailableGameCommands availableCommands)
availableCommands - the available game commandspublic void showOptions()
public void hideOptions()
public void showPreferences()
public void hidePreferences()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||