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
private  int maxValue
           
private  int minValue
           
 
Fields inherited from class net.sf.freecol.common.model.FreeColGameObjectType
featureContainer
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, logger, PARTIAL_ATTRIBUTE
 
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, readChild, readChildren, readFromXML, readFromXMLImpl, setFeatureContainer, setIndex, toString, toXMLImpl
 
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, readAttributes, readChildren, readFromArrayElement, readFromArrayElement, readFromArrayElement, readFromListElement, readFromXML, readFromXMLElement, readFromXMLPartialImpl, removePropertyChangeListener, removePropertyChangeListener, setId, toArrayElement, toArrayElement, toListElement, toXML, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, toXMLPartialImpl, writeAttribute, writeAttributes, writeChildren, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minValue

private int minValue

maxValue

private int maxValue
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
Overrides:
readAttributes in class FreeColGameObjectType
Throws:
javax.xml.stream.XMLStreamException