|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.amoebacode.blackjack.core.GameObject
|
+--com.amoebacode.blackjack.core.Participant
|
+--com.amoebacode.blackjack.core.Dealer
Dealer manages the dealer round participant, including the dealer hand.
| Fields inherited from class com.amoebacode.blackjack.core.Participant |
hands |
| Fields inherited from class com.amoebacode.blackjack.core.GameObject |
listeners, parent |
| Constructor Summary | |
protected |
Dealer(IRound round)
|
| Method Summary | |
void |
completeHand()
Completes the dealer hand (called when all players have finished). |
private DealerEventListenerCollection |
getDealerEventListenerCollection()
Returns the event listener collection for this dealer. |
IDealerHand |
getDealerHand()
Returns the hand for this dealer. |
private void |
hitUntilComplete()
Hits the dealer hand until it busts or reaches the minimum stand score. |
void |
setupFirstHand()
Sets up the first hand for this participant (called at the beginning of the round) and notifies the GUI listeners. |
| Methods inherited from class com.amoebacode.blackjack.core.Participant |
addHand, allHandsBlackjack, clear, getFirstHand, getHandAt, getNumberOfHands, getRound |
| Methods inherited from class com.amoebacode.blackjack.core.GameObject |
addEventListener, getEventListenerCollection, getGame, getParent, hasParent, setEventListenerCollection |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface com.amoebacode.blackjack.core.IParticipant |
allHandsBlackjack, clear, getFirstHand, getNumberOfHands |
| Methods inherited from interface com.amoebacode.blackjack.core.IGameObject |
addEventListener, getGame, getParent |
| Constructor Detail |
protected Dealer(IRound round)
Participant.Participant(IRound)| Method Detail |
public void setupFirstHand()
IParticipantsetupFirstHand in interface IParticipantIParticipant.setupFirstHand()public IDealerHand getDealerHand()
IDealergetDealerHand in interface IDealerIDealer.getDealerHand()public void completeHand()
IDealercompleteHand in interface IDealerIDealer.completeHand()private void hitUntilComplete()
private DealerEventListenerCollection getDealerEventListenerCollection()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||