|
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.HandButtonSet
HandButtonSet manages all hand buttons (hit, stand, etc.)
| Field Summary | |
private HandButton |
doubleDownButton
The double down button |
private HandButton |
hitButton
The hit button |
private HandButton |
insuranceButton
The buy insurance button |
private HandButton |
noInsuranceButton
The no insurance button |
private HandButton |
splitButton
The split button |
private HandButton |
standButton
The stand button |
private HandButton |
surrenderButton
The surrender button |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
HandButtonSet(PlayerHandDisplay playerHand)
Default public constructor. |
|
| Method Summary | |
void |
clearButtons()
Removes all of the buttons from the primary layered pane. |
void |
disableButtons()
Disables all of the hand buttons. |
private void |
drawButtons()
Creates the set of hand buttons through the button factory. |
private PlayerHandDisplay |
getPlayerHandDisplay()
Returns the player hand display parent of this button set. |
void |
hideButtons()
Hides all of the hand buttons. |
void |
updateButtons(AvailableHandCommands availableCommands)
Updates the visiblity and availability of the hand buttons, depending on the current hand conditions. |
| 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 HandButton hitButton
private HandButton standButton
private HandButton doubleDownButton
private HandButton splitButton
private HandButton surrenderButton
private HandButton insuranceButton
private HandButton noInsuranceButton
| Constructor Detail |
public HandButtonSet(PlayerHandDisplay playerHand)
playerHand - the hand controlled by this button| Method Detail |
private PlayerHandDisplay getPlayerHandDisplay()
private void drawButtons()
public void hideButtons()
public void clearButtons()
public void updateButtons(AvailableHandCommands availableCommands)
availableCommands - the available set of hand commandspublic void disableButtons()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||