|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectrolec.Card
public class Card
This clas represents a card used in the game of FranksZoo
| Constructor Summary | |
|---|---|
Card(org.jdom.Element card)
Constructs a new card by reading an xml-file specifying the features of the card |
|
| Method Summary | |
|---|---|
int |
getID()
Returns the ID of the card |
java.lang.String |
getName()
Returns the name of the card |
int |
getNumber()
Returns the number of cards of this type in the Deck |
void |
print()
Prints the card |
java.lang.String |
toString()
Returns the String representation of the card |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Card(org.jdom.Element card)
card - an Element from the xml-file specifying the features of the card| Method Detail |
|---|
public java.lang.String getName()
public int getID()
public java.lang.String toString()
toString in class java.lang.Objectpublic void print()
public int getNumber()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||