Blackjack

com.amoebacode.blackjack.display.action
Class DrawNetGainAction

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

public class DrawNetGainAction
extends java.lang.Object
implements QueueableAction

DrawNetGainAction displays the net gain for its player hand.

Version:
0.9
Author:
Jason Gurney

Field Summary
private  PlayerHandDisplay hand
          The current hand display
private  int netGain
          The net gain to display
 
Constructor Summary
DrawNetGainAction(PlayerHandDisplay hand, int netGain)
          Default public constructor.
 
Method Summary
 void performAction()
          Displays the net gain to the player for the current hand.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

hand

private PlayerHandDisplay hand
The current hand display

netGain

private int netGain
The net gain to display
Constructor Detail

DrawNetGainAction

public DrawNetGainAction(PlayerHandDisplay hand,
                         int netGain)
Default public constructor.
Parameters:
hand - the current PlayerHandDisplay
netGain - the int net gain to display
Method Detail

performAction

public void performAction()
Displays the net gain to the player for the current hand.
Specified by:
performAction in interface QueueableAction

Blackjack

Copyright © 2002 amoebacode.com.