Blackjack

com.amoebacode.blackjack.command
Class DeclineInsuranceCommand

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

class DeclineInsuranceCommand
extends PlayerHandCommand

DeclineInsuranceCommand sends a decline insurance 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 DeclineInsuranceCommand(IPlayerHand playerHand)
          Default protected constructor.
 
Method Summary
 void execute()
          Declines insurance for 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

DeclineInsuranceCommand

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

execute

public void execute()
Declines insurance for the corresponding player hand.
Overrides:
execute in class PlayerHandCommand

Blackjack

Copyright © 2002 amoebacode.com.