com.amoebacode.blackjack.strategy
Class CorrectAction
java.lang.Object
|
+--com.amoebacode.blackjack.strategy.CorrectAction
- class CorrectAction
- extends java.lang.Object
CorrectAction represents a correct playing decision (including an alternate
choice when the first choice is unavailable).
- Version:
- 0.9
- Author:
- Jason Gurney
|
Field Summary |
private java.lang.String |
firstChoice
The first choice for the correct playing decision |
private java.lang.String |
secondChoice
The correct playing decision when the first choice is unavailable |
|
Constructor Summary |
protected |
CorrectAction(java.lang.String firstChoice)
Default protected constructor. |
protected |
CorrectAction(java.lang.String firstChoice,
java.lang.String secondChoice)
Default protected constructor. |
|
Method Summary |
protected java.lang.String |
getFirstChoice()
Returns the first choice for the correct playing decision. |
protected java.lang.String |
getSecondChoice()
Returns the correct playing decision when the first choice is unavailable. |
protected boolean |
hasDifferentChoices()
Indicates whether this playing decision has an alternate choice. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
firstChoice
private java.lang.String firstChoice
- The first choice for the correct playing decision
secondChoice
private java.lang.String secondChoice
- The correct playing decision when the first choice is unavailable
CorrectAction
protected CorrectAction(java.lang.String firstChoice,
java.lang.String secondChoice)
- Default protected constructor.
- Parameters:
firstChoice - the first choice for the correct playing decisionsecondChoice - the correct playing decision when the first choice is unavailable
CorrectAction
protected CorrectAction(java.lang.String firstChoice)
- Default protected constructor.
- Parameters:
firstChoice - the first choice for the correct playing decision
getFirstChoice
protected java.lang.String getFirstChoice()
- Returns the first choice for the correct playing decision.
- Returns:
- the first choice for the correct playing decision
getSecondChoice
protected java.lang.String getSecondChoice()
- Returns the correct playing decision when the first choice is unavailable.
- Returns:
- the correct playing decision when the first choice is unavailable
hasDifferentChoices
protected boolean hasDifferentChoices()
- Indicates whether this playing decision has an alternate choice.
- Returns:
- true if the first and second choices are not the same
Copyright © 2002 amoebacode.com.