|
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.HouseRulesDisplay
HouseRulesDisplay handles display of the casino options.
| Field Summary | |
private HouseRulesComboBox |
dasComboBox
The double after split availability selection box |
private HouseRulesComboBox |
decksComboBox
The number of decks selection box |
private HouseRulesComboBox |
doubleAnyComboBox
The double down availability selection box |
private IHouseRules |
houseRules
The casino options being displayed |
private int |
previousNumberOfDecks
The previous number of decks included in the shoe |
private HouseRulesComboBox |
soft17ComboBox
The dealer hits soft seventeen selection box |
private HouseRulesComboBox |
surrenderComboBox
The surrender availability selection box |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
HouseRulesDisplay(GameDisplay parent)
Default protected constructor. |
| Method Summary | |
boolean |
canDoubleAfterSplit()
Indicates whether the player can double down after splitting. |
boolean |
canDoubleAnyTwoCards()
Indicates whether the user can double any two cards. |
boolean |
canDoubleNineTenElevenOnly()
Indicates whether the user can double a nine, ten, or eleven only. |
boolean |
canDoubleTenElevenOnly()
Indicates whether the user can double a ten or eleven only. |
boolean |
dealerHitsSoftSeventeen()
Indicates whether the dealer hits a soft seventeen. |
boolean |
earlySurrenderAvailable()
Indicates whether early surrender is available. |
int |
getNumberOfDecks()
Returns the number of decks in the dealer's shoe. |
protected void |
hideOptions()
Hides the casino option select boxes. |
boolean |
lateSurrenderOnlyAvailable()
Indicates whether late surrender is available. |
boolean |
noSurrenderAvailable()
Indicates whether no surrender is available. |
void |
setCanDouble(java.lang.String canDouble)
Sets the double down availability option. |
void |
setCanDoubleAfterSplit(boolean canDouble)
Sets the double after split option. |
void |
setCanSurrender(java.lang.String canSurrender)
Sets the surrender availability option. |
void |
setDealerHitsSoftSeventeen(boolean dealerHitsSoftSeventeen)
Sets the soft seventeen dealer option. |
void |
setHouseRules(IHouseRules houseRules)
Sets the casino options being displayed. |
void |
setNumberOfDecks(int numberOfDecks)
Sets the number of decks in the dealer's shoe. |
private void |
setupOptions()
Creates and hides the casino option select boxes. |
void |
showOptions()
Unhides the casino option select boxes. |
private void |
showOptions(boolean display)
Displays or hides the casino option 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 |
private HouseRulesComboBox decksComboBox
private HouseRulesComboBox soft17ComboBox
private HouseRulesComboBox surrenderComboBox
private HouseRulesComboBox dasComboBox
private HouseRulesComboBox doubleAnyComboBox
private IHouseRules houseRules
private int previousNumberOfDecks
| Constructor Detail |
protected HouseRulesDisplay(GameDisplay parent)
parent - the GameDisplay parent| Method Detail |
private void setupOptions()
public void showOptions()
private void showOptions(boolean display)
display - the new visibility attributeprotected void hideOptions()
public void setHouseRules(IHouseRules houseRules)
houseRules - the casino optionspublic boolean canDoubleAfterSplit()
public void setCanDoubleAfterSplit(boolean canDouble)
canDoubleAfterSplit - the new double after split policypublic int getNumberOfDecks()
public void setNumberOfDecks(int numberOfDecks)
numberOfDecks - the new number of deckspublic void setCanDouble(java.lang.String canDouble)
canDouble - the new double down availabilitypublic boolean canDoubleAnyTwoCards()
public boolean canDoubleNineTenElevenOnly()
public boolean canDoubleTenElevenOnly()
public boolean dealerHitsSoftSeventeen()
public void setDealerHitsSoftSeventeen(boolean dealerHitsSoftSeventeen)
dealerHitsSoftSeventeen - the new soft seventeen dealer policypublic boolean lateSurrenderOnlyAvailable()
public boolean noSurrenderAvailable()
public boolean earlySurrenderAvailable()
public void setCanSurrender(java.lang.String canSurrender)
canSurrender - the new surrender availability
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||