Blackjack

com.amoebacode.blackjack.command
Class AvailableGameCommands

java.lang.Object
  |
  +--com.amoebacode.blackjack.command.AvailableCommands
        |
        +--com.amoebacode.blackjack.command.AvailableGameCommands

public class AvailableGameCommands
extends AvailableCommands

AvailableGameCommands tracks a set of currently available game commands.

Version:
0.9
Author:
Jason Gurney

Field Summary
private static java.lang.String COMMAND_DEAL
          A String representing the deal command
private static java.lang.String COMMAND_HOUSE_RULES
          A String representing the edit house rules command
private static java.lang.String COMMAND_LOWER_BET
          A String representing the lower bet command
private static java.lang.String COMMAND_PREFERENCES
          A String representing the edit preferences command
private static java.lang.String COMMAND_RAISE_BET
          A String representing the raise bet command
private static java.lang.String COMMAND_SHUFFLE
          A String representing the shuffle command
 
Fields inherited from class com.amoebacode.blackjack.command.AvailableCommands
commands
 
Constructor Summary
AvailableGameCommands()
          Default public constructor.
 
Method Summary
 boolean isDealAvailable()
          Indicates whether the deal command is currently available.
 boolean isHouseRulesAvailable()
          Indicates whether the edit house rules command is currently available.
 boolean isLowerBetAvailable()
          Indicates whether the lower bet command is currently available.
 boolean isPreferencesAvailable()
          Indicates whether the edit preferences command is currently available.
 boolean isRaiseBetAvailable()
          Indicates whether the raise bet command is currently available.
 boolean isShuffleAvailable()
          Indicates whether the shuffle command is currently available.
 void setDealAvailable()
          Sets the availability of the deal command.
 void setHouseRulesAvailable()
          Sets the availability of the edit house rules command.
 void setLowerBetAvailable()
          Sets the availability of the lower bet command.
 void setPreferencesAvailable()
          Sets the availability of the edit preferences command.
 void setRaiseBetAvailable()
          Sets the availability of the raise bet command.
 void setShuffleAvailable()
          Sets the availability of the shuffle command.
 
Methods inherited from class com.amoebacode.blackjack.command.AvailableCommands
addAvailableCommand, isAvailableCommand
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

COMMAND_DEAL

private static final java.lang.String COMMAND_DEAL
A String representing the deal command

COMMAND_SHUFFLE

private static final java.lang.String COMMAND_SHUFFLE
A String representing the shuffle command

COMMAND_HOUSE_RULES

private static final java.lang.String COMMAND_HOUSE_RULES
A String representing the edit house rules command

COMMAND_PREFERENCES

private static final java.lang.String COMMAND_PREFERENCES
A String representing the edit preferences command

COMMAND_RAISE_BET

private static final java.lang.String COMMAND_RAISE_BET
A String representing the raise bet command

COMMAND_LOWER_BET

private static final java.lang.String COMMAND_LOWER_BET
A String representing the lower bet command
Constructor Detail

AvailableGameCommands

public AvailableGameCommands()
Default public constructor.
Method Detail

isDealAvailable

public boolean isDealAvailable()
Indicates whether the deal command is currently available.
Returns:
true if deal is available

setDealAvailable

public void setDealAvailable()
Sets the availability of the deal command.

isShuffleAvailable

public boolean isShuffleAvailable()
Indicates whether the shuffle command is currently available.
Returns:
true if shuffle is available

setShuffleAvailable

public void setShuffleAvailable()
Sets the availability of the shuffle command.

isHouseRulesAvailable

public boolean isHouseRulesAvailable()
Indicates whether the edit house rules command is currently available.
Returns:
true if house rules can be updated

setHouseRulesAvailable

public void setHouseRulesAvailable()
Sets the availability of the edit house rules command.

isPreferencesAvailable

public boolean isPreferencesAvailable()
Indicates whether the edit preferences command is currently available.
Returns:
true if preferences can be updated

setPreferencesAvailable

public void setPreferencesAvailable()
Sets the availability of the edit preferences command.

isRaiseBetAvailable

public boolean isRaiseBetAvailable()
Indicates whether the raise bet command is currently available.
Returns:
true if the bet can be raised

setRaiseBetAvailable

public void setRaiseBetAvailable()
Sets the availability of the raise bet command.

isLowerBetAvailable

public boolean isLowerBetAvailable()
Indicates whether the lower bet command is currently available.
Returns:
true if bet can be lowered

setLowerBetAvailable

public void setLowerBetAvailable()
Sets the availability of the lower bet command.

Blackjack

Copyright © 2002 amoebacode.com.