Blackjack

com.amoebacode.blackjack.display.action
Class UpdateGameCommandsAction

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

public class UpdateGameCommandsAction
extends java.lang.Object
implements QueueableAction

UpdateGameCommandsAction updates the set of game commands that can be currently executed.

Version:
0.9
Author:
Jason Gurney

Field Summary
private  AvailableGameCommands availableCommands
          The current set of available commands
private  GameDisplay game
          The current game being displayed
 
Constructor Summary
UpdateGameCommandsAction(GameDisplay game, AvailableGameCommands availableCommands)
          Default public constructor.
 
Method Summary
 void performAction()
          Updates the availability of the game 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

game

private GameDisplay game
The current game being displayed

availableCommands

private AvailableGameCommands availableCommands
The current set of available commands
Constructor Detail

UpdateGameCommandsAction

public UpdateGameCommandsAction(GameDisplay game,
                                AvailableGameCommands availableCommands)
Default public constructor.
Parameters:
game - the current GameDisplay
availableCommands - the current AvailableGameCommands set
Method Detail

performAction

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

Blackjack

Copyright © 2002 amoebacode.com.