rolec
Class NormalCard

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

public class NormalCard
extends Card

This class represents a NormalCard within the game of Frank's Zoo. A NormalCard is a card that cannot be used as a replacement for another card of as a Joker.


Constructor Summary
NormalCard(org.jdom.Element card)
          Constructs a NormalCard from a xml-file specifying the features of the card
 
Method Summary
 java.util.Vector getPredators()
          Returns the predators of this card
 java.util.Vector getPreys()
          Returns the preys of this card
 int getReplacement()
          Returns the card by which this card may be replaced
 
Methods inherited from class rolec.Card
getID, getName, getNumber, print, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NormalCard

public NormalCard(org.jdom.Element card)
Constructs a NormalCard from a xml-file specifying the features of the card

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

getPredators

public java.util.Vector getPredators()
Returns the predators of this card

Returns:
a Vector containing the IDs of the predator cards

getPreys

public java.util.Vector getPreys()
Returns the preys of this card

Returns:
a Vector containing the IDs of the preys of the prey cards

getReplacement

public int getReplacement()
Returns the card by which this card may be replaced

Returns:
the ID of the card by which this card may be replaced