|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gbayer.basicblackjack.Deck
public class Deck
A Deck
of Cards
in play for the current
Game
.
Field Summary | |
---|---|
static int |
LOW_DECK_SIZE
Constant - Size of deck at which a dealer might want to swap in a new deck. |
static int |
STANDARD_DECK_SIZE
Constant - Size of one deck. |
Constructor Summary | |
---|---|
Deck()
Instantiates a new deck. |
|
Deck(int deckSize)
Instantiates a new deck. |
Method Summary | |
---|---|
void |
newDeck()
Clear existing deck and generate/shuffle a new one. |
int |
numCardsRemaining()
Count number of cards remaining. |
Card |
removeCard()
Removes a card off the top of the deck. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STANDARD_DECK_SIZE
public static final int LOW_DECK_SIZE
Constructor Detail |
---|
public Deck()
public Deck(int deckSize)
deckSize
- the deck sizeMethod Detail |
---|
public void newDeck()
public Card removeCard()
public int numCardsRemaining()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |