|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.amoebacode.blackjack.display.DisplayElement
|
+--com.amoebacode.blackjack.display.BasicStrategyDisplay
BasicStrategyDisplay handles the display of hints from the basic strategy tutor.
| Field Summary | |
private LabelWrapper |
firstStrategyLabel
The first line of the strategy hint label |
private static java.lang.String |
INSURANCE_FIRST_LINE
The standard first line of the insurance hint |
private static java.lang.String |
INSURANCE_SECOND_LINE
The standard second line of the insurance hint |
private LabelWrapper |
secondStrategyLabel
The second line of the strategy hint label |
private static java.lang.String |
STANDARD_FIRST_LINE
The standard first line of the strategy hint |
private IBasicStrategy |
strat
The basic strategy tutor being displayed |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
BasicStrategyDisplay(GameDisplay game)
Method BasicStrategyDisplay. |
| Method Summary | |
void |
buyingInsurance(BasicStrategyEvent event)
Sets the text of the strategy hint labels to the standard insurance message. |
void |
hideStrategyLabels()
Hides the strategy hint labels. |
private void |
incorrectMove()
Plays the incorrect move sound clip and displays the strategy hint labels. |
void |
incorrectMove(BasicStrategyEvent event)
Sets the text of the strategy hint labels according to the incorrect playing decision. |
protected void |
setBasicStrategy(IBasicStrategy strat)
Sets the basic strategy tutor. |
private void |
setupLabels()
Sets up the strategy hint labels. |
private void |
showStrategyLabels(boolean display)
Displays or hides the strategy hint labels as specified by the boolean argument. |
| Methods inherited from class com.amoebacode.blackjack.display.DisplayElement |
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final java.lang.String STANDARD_FIRST_LINE
private static final java.lang.String INSURANCE_FIRST_LINE
private static final java.lang.String INSURANCE_SECOND_LINE
private LabelWrapper firstStrategyLabel
private LabelWrapper secondStrategyLabel
private IBasicStrategy strat
| Constructor Detail |
protected BasicStrategyDisplay(GameDisplay game)
game - the parent GameDisplay| Method Detail |
protected void setBasicStrategy(IBasicStrategy strat)
strat - the IBasicStrategy being displayedprivate void setupLabels()
public void buyingInsurance(BasicStrategyEvent event)
BasicStrategyEventListenerbuyingInsurance in interface BasicStrategyEventListenerBasicStrategyEventListener.buyingInsurance(BasicStrategyEvent)public void incorrectMove(BasicStrategyEvent event)
BasicStrategyEventListenerincorrectMove in interface BasicStrategyEventListenerBasicStrategyEventListener.incorrectMove(BasicStrategyEvent)private void incorrectMove()
public void hideStrategyLabels()
private void showStrategyLabels(boolean display)
display - the new visibility attribute of the strategy hint labels
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||