|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.classes.games.card.Deck
A deck of 52 playing cards: 4 suits, 13 faces. You can shuffle the deck, deal cards and hands from the deck, etc.
Field Summary |
Constructor Summary | |
Deck()
Constructs a new Deck. |
Method Summary | |
int |
random(int min,
int max)
Returns a random number between min and max, inclusive. |
void |
shuffle()
Shuffles the deck. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Deck()
Method Detail |
public void shuffle()
public int random(int min, int max)
min
- the lower boundmax
- the upper bound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |