|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.amoebacode.blackjack.command.AvailableCommands
|
+--com.amoebacode.blackjack.command.AvailableHandCommands
AvailableHandCommands tracks a set of currently available player hand commands.
| Field Summary | |
private static java.lang.String |
COMMAND_BUY_INSURANCE
A String representing the buy insurance command |
private static java.lang.String |
COMMAND_DECLINE_INSURANCE
A String representing the decline insurance command |
private static java.lang.String |
COMMAND_DOUBLE_DOWN
A String representing the double down command |
private static java.lang.String |
COMMAND_HIT
A String representing the hit command |
private static java.lang.String |
COMMAND_SPLIT
A String representing the split command |
private static java.lang.String |
COMMAND_STAND
A String representing the stand command |
private static java.lang.String |
COMMAND_SURRENDER
A String representing the surrender command |
| Fields inherited from class com.amoebacode.blackjack.command.AvailableCommands |
commands |
| Constructor Summary | |
AvailableHandCommands()
Default public constructor. |
|
| Method Summary | |
boolean |
isBuyInsuranceAvailable()
Indicates whether the buy insurance command is currently available. |
boolean |
isCommandAvailable()
Indicates whether any command is currently available. |
boolean |
isDeclineInsuranceAvailable()
Indicates whether the decline insurance command is currently available. |
boolean |
isDoubleDownAvailable()
Indicates whether the double down command is currently available. |
boolean |
isHitAvailable()
Indicates whether the hit command is currently available. |
boolean |
isOfferingInsurance()
Indicates whether an insurance offer is present. |
boolean |
isSplitAvailable()
Indicates whether the split command is currently available. |
boolean |
isStandAvailable()
Indicates whether the stand command is currently available. |
boolean |
isSurrenderAvailable()
Indicates whether the surrender command is currently available. |
void |
setBuyInsuranceAvailable()
Sets the availability of the buy insurance command. |
void |
setDeclineInsuranceAvailable()
Sets the availability of the decline insurance command. |
void |
setDoubleDownAvailable()
Sets the availability of the double down command. |
void |
setHitAvailable()
Sets the availability of the hit command. |
void |
setSplitAvailable()
Sets the availability of the split command. |
void |
setStandAvailable()
Sets the availability of the stand command. |
void |
setSurrenderAvailable()
Sets the availability of the surrender command. |
| Methods inherited from class com.amoebacode.blackjack.command.AvailableCommands |
addAvailableCommand, isAvailableCommand |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final java.lang.String COMMAND_HIT
private static final java.lang.String COMMAND_DOUBLE_DOWN
private static final java.lang.String COMMAND_STAND
private static final java.lang.String COMMAND_SURRENDER
private static final java.lang.String COMMAND_SPLIT
private static final java.lang.String COMMAND_BUY_INSURANCE
private static final java.lang.String COMMAND_DECLINE_INSURANCE
| Constructor Detail |
public AvailableHandCommands()
| Method Detail |
public boolean isHitAvailable()
public void setHitAvailable()
public boolean isDoubleDownAvailable()
public void setDoubleDownAvailable()
public boolean isStandAvailable()
public void setStandAvailable()
public boolean isSurrenderAvailable()
public void setSurrenderAvailable()
public boolean isSplitAvailable()
public void setSplitAvailable()
public boolean isBuyInsuranceAvailable()
public void setBuyInsuranceAvailable()
public boolean isDeclineInsuranceAvailable()
public void setDeclineInsuranceAvailable()
public boolean isOfferingInsurance()
public boolean isCommandAvailable()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||