|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.model.FreeColGameObjectType
net.sf.freecol.common.model.ResourceType
public final class ResourceType
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int minValue
private int maxValue
| Constructor Detail |
|---|
public ResourceType(int index)
| Method Detail |
|---|
public int getRandomValue()
public java.util.Set<Modifier> getProductionModifier(GoodsType goodsType,
UnitType unitType)
public GoodsType getBestGoodsType()
public java.lang.String getOutputString()
String with the output/s of this ResourceType.
public void readAttributes(javax.xml.stream.XMLStreamReader in,
Specification specification)
throws javax.xml.stream.XMLStreamException
readAttributes in class FreeColGameObjectTypejavax.xml.stream.XMLStreamException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||