rolec
Class SpecialCard

java.lang.Object
  extended by rolec.Card
      extended by rolec.NormalCard
          extended by rolec.SpecialCard

public class SpecialCard
extends NormalCard

This class represents a card that may be used as a NormalCard, but may also be used as a replacement for a specific type of NormalCard


Constructor Summary
SpecialCard(org.jdom.Element card)
          Constructs a SpecialCard from a xml-file specifying the features of the card
 
Method Summary
 java.util.Vector getReplacing()
          Returns the types of cards that this card may replace
 
Methods inherited from class rolec.NormalCard
getPredators, getPreys, getReplacement
 
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

SpecialCard

public SpecialCard(org.jdom.Element card)
Constructs a SpecialCard 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

getReplacing

public java.util.Vector getReplacing()
Returns the types of cards that this card may replace

Returns:
a Vector containing the IDs of the types of cards that this card may replace