Blackjack

com.amoebacode.blackjack.display.button
Class GameButtonSet

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.DisplayElement
        |
        +--com.amoebacode.blackjack.display.button.GameButtonSet

public class GameButtonSet
extends DisplayElement

GameButtonSet manages all game buttons (deal, shuffle, etc.)

Version:
0.9
Author:
Jason Gurney

Field Summary
private  GameButton dealButton
          The deal button
private  GameButton lowerBetButton
          The lower bet button
private  GameButton optionsButton
          The house rules button
private  GameButton preferencesButton
          The preferences button
private  GameButton raiseBetButton
          The raise bet button
private  GameButton saveOptionsButton
          The save house rules button
private  GameButton savePreferencesButton
          The save preferences button
private  GameButton shuffleButton
          The shuffle button
 
Fields inherited from class com.amoebacode.blackjack.display.DisplayElement
parent
 
Constructor Summary
GameButtonSet(GameDisplay game)
          Default public constructor.
 
Method Summary
 void activateButtons()
          Activates all of the game buttons.
 void drawButtons()
          Creates the set of game buttons through the button factory.
 void hideButtons()
          Hides all of the game buttons.
 void hideOptions()
          Unhides all of the game buttons and hides the save house rules button.
 void hidePreferences()
          Unhides all of the game buttons and hides the save preferences button.
 void showOptions()
          Hides all of the game buttons and unhides the save house rules button.
 void showPreferences()
          Hides all of the game buttons and unhides the save preferences button.
 void updateButtons(AvailableGameCommands availableCommands)
          Updates the set of available buttons based on the specified available commands.
 
Methods inherited from class com.amoebacode.blackjack.display.DisplayElement
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

dealButton

private GameButton dealButton
The deal button

shuffleButton

private GameButton shuffleButton
The shuffle button

optionsButton

private GameButton optionsButton
The house rules button

preferencesButton

private GameButton preferencesButton
The preferences button

raiseBetButton

private GameButton raiseBetButton
The raise bet button

lowerBetButton

private GameButton lowerBetButton
The lower bet button

saveOptionsButton

private GameButton saveOptionsButton
The save house rules button

savePreferencesButton

private GameButton savePreferencesButton
The save preferences button
Constructor Detail

GameButtonSet

public GameButtonSet(GameDisplay game)
Default public constructor.
Parameters:
game - the parent GameDisplay
Method Detail

drawButtons

public void drawButtons()
Creates the set of game buttons through the button factory.

hideButtons

public void hideButtons()
Hides all of the game buttons.

activateButtons

public void activateButtons()
Activates all of the game buttons.

updateButtons

public void updateButtons(AvailableGameCommands availableCommands)
Updates the set of available buttons based on the specified available commands.
Parameters:
availableCommands - the available game commands

showOptions

public void showOptions()
Hides all of the game buttons and unhides the save house rules button.

hideOptions

public void hideOptions()
Unhides all of the game buttons and hides the save house rules button.

showPreferences

public void showPreferences()
Hides all of the game buttons and unhides the save preferences button.

hidePreferences

public void hidePreferences()
Unhides all of the game buttons and hides the save preferences button.

Blackjack

Copyright © 2002 amoebacode.com.