|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.amoebacode.blackjack.command.CommandFactory
CommandFactory is used to build the various game and player hand commands.
| Constructor Summary | |
private |
CommandFactory()
Private constructor - this class should not be instantiated. |
| Method Summary | |
static ICommand |
getBuyInsuranceCommand(IPlayerHand hand)
Returns a new buy insurance command corresponding to the specified player hand. |
static ICommand |
getDealCommand(IGame game)
Returns a new deal command corresponding to the specified game. |
static ICommand |
getDeclineInsuranceCommand(IPlayerHand hand)
Returns a new decline insurance command corresponding to the specified player hand. |
static ICommand |
getDoubleDownCommand(IPlayerHand hand)
Returns a new double down command corresponding to the specified player hand. |
static ICommand |
getHitCommand(IPlayerHand hand)
Returns a new hit command corresponding to the specified player hand. |
static ICommand |
getLowerBetCommand(IGame game)
Returns a new lower bet command corresponding to the specified game. |
static ICommand |
getRaiseBetCommand(IGame game)
Returns a new raise bet command corresponding to the specified game. |
static ICommand |
getShuffleCommand(IGame game)
Returns a new shuffle command corresponding to the specified game. |
static ICommand |
getSplitCommand(IPlayerHand hand)
Returns a new split command corresponding to the specified player hand. |
static ICommand |
getStandCommand(IPlayerHand hand)
Returns a new stand command corresponding to the specified player hand. |
static ICommand |
getSurrenderCommand(IPlayerHand hand)
Returns a new surrender command corresponding to the specified player hand. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
private CommandFactory()
| Method Detail |
public static ICommand getHitCommand(IPlayerHand hand)
hand - the IPlayerHand command targetpublic static ICommand getStandCommand(IPlayerHand hand)
hand - the IPlayerHand command targetpublic static ICommand getDoubleDownCommand(IPlayerHand hand)
hand - the IPlayerHand command targetpublic static ICommand getBuyInsuranceCommand(IPlayerHand hand)
hand - the IPlayerHand command targetpublic static ICommand getDeclineInsuranceCommand(IPlayerHand hand)
hand - the IPlayerHand command targetpublic static ICommand getSurrenderCommand(IPlayerHand hand)
hand - the IPlayerHand command targetpublic static ICommand getSplitCommand(IPlayerHand hand)
hand - the IPlayerHand command targetpublic static ICommand getRaiseBetCommand(IGame game)
game - the IGame command targetpublic static ICommand getLowerBetCommand(IGame game)
game - the IGame command targetpublic static ICommand getDealCommand(IGame game)
game - the IGame command targetpublic static ICommand getShuffleCommand(IGame game)
game - the IGame command target
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||