Blackjack

com.amoebacode.blackjack.display.action
Class AddCardAction

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.action.AddCardAction
All Implemented Interfaces:
QueueableAction

public class AddCardAction
extends java.lang.Object
implements QueueableAction

AddCardAction adds a card to a hand, animating its movement from the deck to the hand.

Version:
0.9
Author:
Jason Gurney

Field Summary
private  CardDisplay card
          The card being added to the hand
private  HandDisplay hand
          The hand that is receiving the new card
 
Constructor Summary
AddCardAction(HandDisplay hand, CardDisplay card)
          Default public contructor.
 
Method Summary
 void performAction()
          Adds the card to the hand.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

hand

private HandDisplay hand
The hand that is receiving the new card

card

private CardDisplay card
The card being added to the hand
Constructor Detail

AddCardAction

public AddCardAction(HandDisplay hand,
                     CardDisplay card)
Default public contructor.
Parameters:
hand - the HandDisplay that is receiving the new card
card - CardDisplay being added to the hand
Method Detail

performAction

public void performAction()
Adds the card to the hand.
Specified by:
performAction in interface QueueableAction

Blackjack

Copyright © 2002 amoebacode.com.