|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.amoebacode.blackjack.core.HouseRules
HouseRules manages displaying and updating user-configurable casino options.
| Field Summary | |
private java.lang.String |
canDouble
The selected double down availability |
private boolean |
canDoubleAfterSplit
Indicates whether the player can double down after splitting |
private java.lang.String |
canSurrender
The selected surrender availability |
private boolean |
dealerHitsSoftSeventeen
Indicates whether the dealer hits a soft seventeen |
private static int |
MAX_HARD_DEALER_HIT
The highest hard score that a dealer would hit |
private int |
numberOfDecks
The number of decks in the dealer's shoe |
| Fields inherited from interface com.amoebacode.blackjack.core.IHouseRules |
ANY_TWO_CARDS, EARLY_SURRENDER, LATE_SURRENDER, NINE_TEN_ELEVEN, NO_SURRENDER, TEN_ELEVEN |
| Constructor Summary | |
HouseRules()
Default public 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 |
getMaxHardDealerHit()
Returns the highest hard score that a dealer would hit. |
int |
getMaxSoftDealerHit()
Returns the highest soft score that a dealer would hit. |
int |
getNumberOfDecks()
Returns the number of decks in the dealer's shoe. |
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 canDoubleAfterSplit)
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 |
setEarlySurrenderAvailable()
Sets the surrender availability to early. |
void |
setNumberOfDecks(int numberOfDecks)
Sets the number of decks in the dealer's shoe. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final int MAX_HARD_DEALER_HIT
private java.lang.String canDouble
private java.lang.String canSurrender
private int numberOfDecks
private boolean dealerHitsSoftSeventeen
private boolean canDoubleAfterSplit
| Constructor Detail |
public HouseRules()
| Method Detail |
public void setCanDouble(java.lang.String canDouble)
IHouseRulessetCanDouble in interface IHouseRulesIHouseRules.setCanDouble(String)public void setCanSurrender(java.lang.String canSurrender)
IHouseRulessetCanSurrender in interface IHouseRulesIHouseRules.setCanSurrender(String)public boolean canDoubleAnyTwoCards()
IHouseRulescanDoubleAnyTwoCards in interface IHouseRulesIHouseRules.canDoubleAnyTwoCards()public boolean canDoubleNineTenElevenOnly()
IHouseRulescanDoubleNineTenElevenOnly in interface IHouseRulesIHouseRules.canDoubleNineTenElevenOnly()public boolean canDoubleTenElevenOnly()
IHouseRulescanDoubleTenElevenOnly in interface IHouseRulesIHouseRules.canDoubleTenElevenOnly()public boolean earlySurrenderAvailable()
IHouseRulesearlySurrenderAvailable in interface IHouseRulesIHouseRules.earlySurrenderAvailable()public void setEarlySurrenderAvailable()
IHouseRulessetEarlySurrenderAvailable in interface IHouseRulesIHouseRules.setEarlySurrenderAvailable()public boolean lateSurrenderOnlyAvailable()
IHouseRuleslateSurrenderOnlyAvailable in interface IHouseRulesIHouseRules.lateSurrenderOnlyAvailable()public boolean noSurrenderAvailable()
IHouseRulesnoSurrenderAvailable in interface IHouseRulesIHouseRules.noSurrenderAvailable()public boolean dealerHitsSoftSeventeen()
IHouseRulesdealerHitsSoftSeventeen in interface IHouseRulesIHouseRules.dealerHitsSoftSeventeen()public void setDealerHitsSoftSeventeen(boolean dealerHitsSoftSeventeen)
IHouseRulessetDealerHitsSoftSeventeen in interface IHouseRulesIHouseRules.setDealerHitsSoftSeventeen(boolean)public boolean canDoubleAfterSplit()
IHouseRulescanDoubleAfterSplit in interface IHouseRulesIHouseRules.canDoubleAfterSplit()public void setCanDoubleAfterSplit(boolean canDoubleAfterSplit)
IHouseRulessetCanDoubleAfterSplit in interface IHouseRulesIHouseRules.setCanDoubleAfterSplit(boolean)public int getNumberOfDecks()
IHouseRulesgetNumberOfDecks in interface IHouseRulesIHouseRules.getNumberOfDecks()public void setNumberOfDecks(int numberOfDecks)
IHouseRulessetNumberOfDecks in interface IHouseRulesIHouseRules.setNumberOfDecks(int)public int getMaxHardDealerHit()
IHouseRulesgetMaxHardDealerHit in interface IHouseRulesIHouseRules.getMaxHardDealerHit()public int getMaxSoftDealerHit()
IHouseRulesgetMaxSoftDealerHit in interface IHouseRulesIHouseRules.getMaxSoftDealerHit()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||