|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectrolec.Deck
public class Deck
This class represents the Deck of cards in a game of Frank's Zoo
| Constructor Summary | |
|---|---|
Deck(int i,
org.jdom.Element root)
Constructs a new deck of cards |
|
| Method Summary | |
|---|---|
java.util.Vector |
cards()
Returns a Vector containing all Cards in the Deck |
int[] |
getCards()
Returns the cards in the deck |
Card |
getType(int i)
Returns the Card with a specific ID |
Card[] |
getTypes()
Returns the various types of cards in the deck |
void |
print()
Prints the deck |
int |
size()
Returns the number of cards in the deck |
java.lang.String |
toString()
Returns a String representation of the deck |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Deck(int i,
org.jdom.Element root)
i - the number of different types of cards in the deck| Method Detail |
|---|
public Card[] getTypes()
public Card getType(int i)
i - the ID of the card to be returned
public int[] getCards()
public java.util.Vector cards()
public java.lang.String toString()
toString in class java.lang.Objectpublic int size()
public void print()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||