|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.plugins.pokergames.Deck
public class Deck
Represents a traditional 52 card deck with no jokers.
Field Summary | |
---|---|
static int[] |
primes
|
Constructor Summary | |
---|---|
Deck()
Default constructor. |
Method Summary | |
---|---|
Card |
dealCard()
Removes the bottom card from the deck. |
void |
newDeck()
Initialises this deck into a randomised 52 card deck. |
void |
shuffle()
Shuffles the deck. |
java.lang.String |
toString()
Gives a string representation of the deck. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int[] primes
Constructor Detail |
---|
public Deck()
Method Detail |
---|
public void newDeck()
public void shuffle()
public Card dealCard()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |