Blackjack

com.amoebacode.blackjack.display.action
Class DisplayNetGainAction

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

public class DisplayNetGainAction
extends java.lang.Object
implements QueueableAction

DisplayNetGainAction cues sound effects that communicate the net gain to the player.

Version:
0.9
Author:
Jason Gurney

Field Summary
private  IPlayer player
          The current player
private  PlayerDisplay playerDisplay
          The current player display
 
Constructor Summary
DisplayNetGainAction(IPlayer player, PlayerDisplay playerDisplay)
          Default public constructor.
 
Method Summary
 void performAction()
          Plays a sound effect corresponding to the player's net gain for all hands.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

player

private IPlayer player
The current player

playerDisplay

private PlayerDisplay playerDisplay
The current player display
Constructor Detail

DisplayNetGainAction

public DisplayNetGainAction(IPlayer player,
                            PlayerDisplay playerDisplay)
Default public constructor.
Parameters:
player - the current IPlayer
playerDisplay - the current PlayerDisplay
Method Detail

performAction

public void performAction()
Plays a sound effect corresponding to the player's net gain for all hands.
Specified by:
performAction in interface QueueableAction

Blackjack

Copyright © 2002 amoebacode.com.