|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javaflair.pokerprophesier.api.card.Deck
public class Deck
A representation of a deck of cards as an array of Cards,
with associated methods to create, crop and shuffle a deck.
Card| Field Summary | |
|---|---|
static int |
TOTAL_CARDS_IN_PACK
Default number of cards in a pack. |
| Method Summary | |
|---|---|
static Card[] |
getCroppedDeck(Card[] usedCards)
Returns a full deck of cards with the specified array of used cards removed. |
static Card[] |
getCroppedDeck(Card[] deck,
Card[] usedCards)
Returns the deck of cards with the specified array of used cards removed. |
static Card[] |
getFullDeck()
Returns a full deck of ordered cards. |
static Card[] |
getShuffledDeck(Card[] deck)
Shuffles and then returns the specified deck of cards. |
static String |
toString(Card[] deck)
Returns a String representation of the specified deck of cards. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TOTAL_CARDS_IN_PACK
| Method Detail |
|---|
public static Card[] getCroppedDeck(Card[] usedCards)
usedCards - the used cards to remove
public static Card[] getCroppedDeck(Card[] deck,
Card[] usedCards)
deck - the deck of cardsusedCards - the used cards to remove
public static Card[] getFullDeck()
public static Card[] getShuffledDeck(Card[] deck)
deck - the deck of cards to shuffle
public static String toString(Card[] deck)
deck - the deck of cards
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||