com.amoebacode.blackjack.core
Interface IDealerHand
- All Superinterfaces:
- ICardCollection, IGameObject, IHand
- All Known Implementing Classes:
- DealerHand
- public interface IDealerHand
- extends IHand
IDealerHand defines public API for a dealer hand.
- Version:
- 0.9
- Author:
- Jason Gurney
|
Method Summary |
void |
assumeControl()
Turns over the face-down card and notifies the GUI listeners (called when all
of the player hands have finished). |
boolean |
firstCardIsAce()
Indicates whether the first card in this hand is an ace. |
boolean |
isWaitingForPlayer()
Indicates whether this dealer hand is currently waiting for the player to finish. |
boolean |
shouldHit()
Indicates whether the dealer should hit this hand. |
| Methods inherited from interface com.amoebacode.blackjack.core.IHand |
clear, getBestTotal, getBestTotal, getCurrentScore, getHardTotal, getSoftTotal, hasBlackjack, hasBusted, hasPair, hasSoftTotal, hit |
assumeControl
public void assumeControl()
- Turns over the face-down card and notifies the GUI listeners (called when all
of the player hands have finished).
firstCardIsAce
public boolean firstCardIsAce()
- Indicates whether the first card in this hand is an ace.
- Returns:
- true if the first card is an ace
isWaitingForPlayer
public boolean isWaitingForPlayer()
- Indicates whether this dealer hand is currently waiting for the player to finish.
- Returns:
- true if the dealer is waiting for the player.
shouldHit
public boolean shouldHit()
- Indicates whether the dealer should hit this hand.
- Returns:
- true if the dealer should hit
Copyright © 2002 amoebacode.com.