Blackjack

com.amoebacode.blackjack.command
Class AvailableCommands

java.lang.Object
  |
  +--com.amoebacode.blackjack.command.AvailableCommands
Direct Known Subclasses:
AvailableGameCommands, AvailableHandCommands

public abstract class AvailableCommands
extends java.lang.Object

AvailableCommands tracks a set of currently available commands. It is used to communicate which GUI buttons can be displayed.

Version:
0.9
Author:
Jason Gurney

Field Summary
private  java.util.Set commands
          The set of available commands
 
Constructor Summary
protected AvailableCommands()
          Default protected constructor.
 
Method Summary
protected  void addAvailableCommand(java.lang.String command)
          Adds the specified command to this collection.
protected  boolean isAvailableCommand(java.lang.String command)
          Indicates whether the specified command is available.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

commands

private java.util.Set commands
The set of available commands
Constructor Detail

AvailableCommands

protected AvailableCommands()
Default protected constructor.
Method Detail

addAvailableCommand

protected void addAvailableCommand(java.lang.String command)
Adds the specified command to this collection.
Parameters:
command - a String representation of an available command

isAvailableCommand

protected boolean isAvailableCommand(java.lang.String command)
Indicates whether the specified command is available.
Parameters:
command - a String representation of a command
Returns:
true if the specified command can be found in this collection

Blackjack

Copyright © 2002 amoebacode.com.