Blackjack

com.amoebacode.blackjack.command
Class DoubleDownCommand

java.lang.Object
  |
  +--com.amoebacode.blackjack.command.PlayerHandCommand
        |
        +--com.amoebacode.blackjack.command.DoubleDownCommand
All Implemented Interfaces:
ICommand

class DoubleDownCommand
extends PlayerHandCommand

DoubleDownCommand sends a double down command to its corresponding player hand.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.command.PlayerHandCommand
playerHand
 
Constructor Summary
protected DoubleDownCommand(IPlayerHand playerHand)
          Default protected constructor.
 
Method Summary
 void execute()
          Doubles down on the corresponding player hand.
 
Methods inherited from class com.amoebacode.blackjack.command.PlayerHandCommand
getPlayerHand
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

DoubleDownCommand

protected DoubleDownCommand(IPlayerHand playerHand)
Default protected constructor.
Parameters:
playerHand - the IPlayerHand target for this command
Method Detail

execute

public void execute()
Doubles down on the corresponding player hand.
Overrides:
execute in class PlayerHandCommand

Blackjack

Copyright © 2002 amoebacode.com.