|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.util.AbstractCollection
org.vizzini.util.AbstractMap
org.vizzini.game.TokenCollection
org.vizzini.game.cardgame.CardCollection
org.vizzini.game.cardgame.PokerDeck
public class PokerDeck
Provides a poker card deck for card games in the game framework.
| Field Summary | |
|---|---|
static ISuit |
CLUBS
Clubs suit. |
static ISuit |
DIAMONDS
Diamonds suit. |
static ISuit |
HEARTS
Hearts suit. |
static ISuit |
SPADES
Spades suit. |
static ISuit[] |
SUITS
Array of suits. |
| Constructor Summary | |
|---|---|
|
PokerDeck()
Construct this object with 52 cards. |
|
PokerDeck(boolean isUsingJokers)
Construct this object using the given parameter. |
protected |
PokerDeck(int numCards)
Construct this object using the given parameter. |
| Method Summary | |
|---|---|
protected void |
init(int numCards)
Initialize the deck with the standard cards. |
protected void |
initCard(String name,
int value,
ISuit suit)
Create and add a card with the given parameters. |
protected void |
initCards(String name,
int value)
Create cards for each suit with the given parameters. |
boolean |
isUsingJokers()
Return true if Jokers are included. |
void |
reset()
Reset this deck. |
| Methods inherited from class org.vizzini.game.cardgame.CardCollection |
|---|
get, get, getFirst, getFlushes, getKey, getKey, getKinds, getLast, getStraights, getType, propertyChange, removeFirst, removeLast, shuffle, sort |
| Methods inherited from class org.vizzini.game.TokenCollection |
|---|
add, clone, configure, configure, findByName, get, get, getData, getKey, getTokenPropertyNames, iterator, remove |
| Methods inherited from class org.vizzini.util.AbstractMap |
|---|
clear, contains, equals, hashCode, isEmpty, iterator, size, toString |
| Methods inherited from class org.vizzini.util.AbstractCollection |
|---|
addAll, containsAll, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.vizzini.game.ITokenCollection |
|---|
clone, configure, findByName, get, get, iterator |
| Methods inherited from interface org.vizzini.util.ICollection |
|---|
toString |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Field Detail |
|---|
public static final ISuit CLUBS
public static final ISuit HEARTS
public static final ISuit SPADES
public static final ISuit DIAMONDS
public static final ISuit[] SUITS
| Constructor Detail |
|---|
public PokerDeck()
public PokerDeck(boolean isUsingJokers)
isUsingJokers - Flag indicating whether to include Jokers in the
deck.protected PokerDeck(int numCards)
| Method Detail |
|---|
public boolean isUsingJokers()
public void reset()
protected void init(int numCards)
protected void initCard(String name,
int value,
ISuit suit)
protected void initCards(String name,
int value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |