Blackjack

com.amoebacode.blackjack.display.action
Class UpdateHandCommandsAction

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

public class UpdateHandCommandsAction
extends java.lang.Object
implements QueueableAction

UpdateHandCommandsAction updates the set of hands command that can be currently executed.

Version:
0.9
Author:
Jason Gurney

Field Summary
private  AvailableHandCommands availableCommands
          The current set of available commands
private  PlayerHandDisplay hand
          The current hand display
 
Constructor Summary
UpdateHandCommandsAction(PlayerHandDisplay hand, AvailableHandCommands availableCommands)
          Default public constructor.
 
Method Summary
 void performAction()
          Updates the availability of the hand buttons based on the available commands.
 
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

availableCommands

private AvailableHandCommands availableCommands
The current set of available commands
Constructor Detail

UpdateHandCommandsAction

public UpdateHandCommandsAction(PlayerHandDisplay hand,
                                AvailableHandCommands availableCommands)
Default public constructor.
Parameters:
hand - the current PlayerHandDisplay
availableCommands - the set of AvailableHandCommands
Method Detail

performAction

public void performAction()
Updates the availability of the hand buttons based on the available commands.
Specified by:
performAction in interface QueueableAction

Blackjack

Copyright © 2002 amoebacode.com.