rolec
Class Card

java.lang.Object
  extended by rolec.Card
Direct Known Subclasses:
JokerCard, NormalCard

public class Card
extends java.lang.Object

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

Card

public Card(org.jdom.Element card)
Constructs a new card by reading an xml-file specifying the features of the card

Parameters:
card - an Element from the xml-file specifying the features of the card
Method Detail

getName

public java.lang.String getName()
Returns the name of the card

Returns:
the name of the card

getID

public int getID()
Returns the ID of the card

Returns:
the ID of the card

toString

public java.lang.String toString()
Returns the String representation of the card

Overrides:
toString in class java.lang.Object
Returns:
the String representation of the card

print

public void print()
Prints the card


getNumber

public int getNumber()
Returns the number of cards of this type in the Deck

Returns:
the number of cards of this type in the Deck