Blackjack

com.amoebacode.blackjack.command
Class HitCommand

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

class HitCommand
extends PlayerHandCommand

HitCommand sends a hit 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 HitCommand(IPlayerHand playerHand)
          Default protected constructor.
 
Method Summary
 void execute()
          Hits 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

HitCommand

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

execute

public void execute()
Hits the corresponding player hand.
Overrides:
execute in class PlayerHandCommand

Blackjack

Copyright © 2002 amoebacode.com.