Blackjack

com.amoebacode.blackjack.command
Class SplitCommand

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

class SplitCommand
extends PlayerHandCommand

SplitCommand sends a split 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 SplitCommand(IPlayerHand playerHand)
          Default protected constructor.
 
Method Summary
 void execute()
          Splits 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

SplitCommand

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

execute

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

Blackjack

Copyright © 2002 amoebacode.com.