net.sf.freecol.common.model
Class ResourceType

java.lang.Object
  extended by net.sf.freecol.common.model.FreeColObject
      extended by net.sf.freecol.common.model.FreeColGameObjectType
          extended by net.sf.freecol.common.model.ResourceType

public final class ResourceType
extends FreeColGameObjectType


Field Summary
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ID_ATTRIBUTE_TAG
 
Constructor Summary
ResourceType(int index)
           
 
Method Summary
 GoodsType getBestGoodsType()
           
 java.lang.String getOutputString()
          Returns a String with the output/s of this ResourceType.
 java.util.Set<Modifier> getProductionModifier(GoodsType goodsType, UnitType unitType)
           
 int getRandomValue()
           
 void readAttributes(javax.xml.stream.XMLStreamReader in, Specification specification)
           
 
Methods inherited from class net.sf.freecol.common.model.FreeColGameObjectType
addAbility, addModifier, getFeatureContainer, getIndex, getModifierSet, hasAbility, hasAbility, readChildren, readFromXML, setFeatureContainer, setIndex, toString
 
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, getXMLElementTagName, hasAttribute, hasListeners, readFromXML, readFromXMLElement, removePropertyChangeListener, removePropertyChangeListener, toXML, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, writeAttribute, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceType

public ResourceType(int index)
Method Detail

getRandomValue

public int getRandomValue()

getProductionModifier

public java.util.Set<Modifier> getProductionModifier(GoodsType goodsType,
                                                     UnitType unitType)

getBestGoodsType

public GoodsType getBestGoodsType()

getOutputString

public java.lang.String getOutputString()
Returns a String with the output/s of this ResourceType.


readAttributes

public void readAttributes(javax.xml.stream.XMLStreamReader in,
                           Specification specification)
                    throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException