|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.amoebacode.blackjack.display.button.ButtonFactory
ButtonFactory handles initial creation of all user buttons.
| Field Summary | |
protected static java.lang.String |
DEAL_BUTTON_TEXT
The text for the deal button |
static java.lang.String |
DOUBLE_DOWN_BUTTON_TEXT
The text for the double down button |
static java.lang.String |
HIT_BUTTON_TEXT
The text for the hit button |
static java.lang.String |
INSURANCE_BUTTON_TEXT
The text for the buy insurance button |
protected static java.lang.String |
LOWER_BET_BUTTON_TEXT
The text for the lower bet button |
static java.lang.String |
NO_INSURANCE_BUTTON_TEXT
The text for the no insurance button |
protected static java.lang.String |
OPTIONS_BUTTON_TEXT
The text for the house rules button |
protected static java.lang.String |
PREFERENCES_BUTTON_TEXT
The text for the preferences button |
protected static java.lang.String |
RAISE_BET_BUTTON_TEXT
The text for the raise bet button |
protected static java.lang.String |
SAVE_OPTIONS_BUTTON_TEXT
The text for the save rules button |
protected static java.lang.String |
SAVE_PREFERENCES_BUTTON_TEXT
The text for the save preferences button |
protected static java.lang.String |
SHUFFLE_BUTTON_TEXT
The text for the shuffle button |
static java.lang.String |
SPLIT_BUTTON_TEXT
The text for the split button |
static java.lang.String |
STAND_BUTTON_TEXT
The text for the stand button |
static java.lang.String |
SURRENDER_BUTTON_TEXT
The text for the surrender button |
| Constructor Summary | |
ButtonFactory()
|
|
| Method Summary | |
static DealButton |
getDealButton(GameDisplay game)
Creates and returns a deal button. |
static DoubleDownButton |
getDoubleDownButton(PlayerHandDisplay playerHand)
Creates and returns a double down button. |
static HitButton |
getHitButton(PlayerHandDisplay playerHand)
Creates and returns a hit button. |
static InsuranceButton |
getInsuranceButton(PlayerHandDisplay playerHand)
Creates and returns a buy insurance button. |
static LowerBetButton |
getLowerBetButton(GameDisplay game)
Creates and returns a lower bet button. |
static NoInsuranceButton |
getNoInsuranceButton(PlayerHandDisplay playerHand)
Creates and returns a no insurance button. |
static OptionsButton |
getOptionsButton(GameDisplay game)
Creates and returns a house rules button. |
static PreferencesButton |
getPreferencesButton(GameDisplay game)
Creates and returns a preferences button. |
static RaiseBetButton |
getRaiseBetButton(GameDisplay game)
Creates and returns a raise bet button. |
static SaveOptionsButton |
getSaveOptionsButton(GameDisplay game)
Creates and returns a save house rules button. |
static SavePreferencesButton |
getSavePreferencesButton(GameDisplay game)
Creates and returns a save preferences button. |
static ShuffleButton |
getShuffleButton(GameDisplay game)
Creates and returns a shuffle button. |
static SplitButton |
getSplitButton(PlayerHandDisplay playerHand)
Creates and returns a split button. |
static StandButton |
getStandButton(PlayerHandDisplay playerHand)
Creates and returns a stand button. |
static SurrenderButton |
getSurrenderButton(PlayerHandDisplay playerHand)
Creates and returns a surrender button. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String HIT_BUTTON_TEXT
public static final java.lang.String STAND_BUTTON_TEXT
public static final java.lang.String DOUBLE_DOWN_BUTTON_TEXT
public static final java.lang.String SURRENDER_BUTTON_TEXT
public static final java.lang.String SPLIT_BUTTON_TEXT
public static final java.lang.String INSURANCE_BUTTON_TEXT
public static final java.lang.String NO_INSURANCE_BUTTON_TEXT
protected static final java.lang.String DEAL_BUTTON_TEXT
protected static final java.lang.String LOWER_BET_BUTTON_TEXT
protected static final java.lang.String OPTIONS_BUTTON_TEXT
protected static final java.lang.String PREFERENCES_BUTTON_TEXT
protected static final java.lang.String RAISE_BET_BUTTON_TEXT
protected static final java.lang.String SAVE_OPTIONS_BUTTON_TEXT
protected static final java.lang.String SAVE_PREFERENCES_BUTTON_TEXT
protected static final java.lang.String SHUFFLE_BUTTON_TEXT
| Constructor Detail |
public ButtonFactory()
| Method Detail |
public static DealButton getDealButton(GameDisplay game)
game - the GameDisplay parentpublic static ShuffleButton getShuffleButton(GameDisplay game)
game - the GameDisplay parentpublic static OptionsButton getOptionsButton(GameDisplay game)
game - the GameDisplay parentpublic static PreferencesButton getPreferencesButton(GameDisplay game)
game - the GameDisplay parentpublic static RaiseBetButton getRaiseBetButton(GameDisplay game)
game - the GameDisplay parentpublic static LowerBetButton getLowerBetButton(GameDisplay game)
game - the GameDisplay parentpublic static SaveOptionsButton getSaveOptionsButton(GameDisplay game)
game - the GameDisplay parentpublic static SavePreferencesButton getSavePreferencesButton(GameDisplay game)
game - the GameDisplay parentpublic static HitButton getHitButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parentpublic static StandButton getStandButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parentpublic static DoubleDownButton getDoubleDownButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parentpublic static SplitButton getSplitButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parentpublic static SurrenderButton getSurrenderButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parentpublic static InsuranceButton getInsuranceButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parentpublic static NoInsuranceButton getNoInsuranceButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parent
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||