|
|||||||||
| 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.BuildableType
public abstract class BuildableType
Contains information on buildable types.
| Field Summary | |
|---|---|
private java.util.List<AbstractGoods> |
goodsRequired
A list of AbstractGoods required to build this type. |
static java.lang.String |
NOTHING
|
private int |
populationRequired
The minimum population that a Colony needs in order to build this type. |
private java.util.HashMap<java.lang.String,java.lang.Boolean> |
requiredAbilities
Stores the abilities required by this Type. |
static int |
UNDEFINED
|
| 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 | |
|---|---|
BuildableType()
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Boolean> |
getAbilitiesRequired()
Returns the abilities required by this Type. |
int |
getAmountRequiredOf(GoodsType type)
Get amount required of given GoodsType |
java.util.List<AbstractGoods> |
getGoodsRequired()
Get the GoodsRequired value. |
java.lang.String |
getGoodsRequiredAsString()
|
int |
getPopulationRequired()
Get the PopulationRequired value. |
protected void |
readAttributes(javax.xml.stream.XMLStreamReader in,
Specification specification)
|
protected FreeColObject |
readChild(javax.xml.stream.XMLStreamReader in,
Specification specification)
|
void |
setGoodsRequired(java.util.List<AbstractGoods> newGoodsRequired)
Set the GoodsRequired value. |
void |
setPopulationRequired(int newPopulationRequired)
Set the PopulationRequired value. |
| Methods inherited from class net.sf.freecol.common.model.FreeColGameObjectType |
|---|
addAbility, addModifier, getFeatureContainer, getIndex, getModifierSet, hasAbility, hasAbility, 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 |
|---|
public static final int UNDEFINED
public static final java.lang.String NOTHING
private int populationRequired
private java.util.List<AbstractGoods> goodsRequired
private final java.util.HashMap<java.lang.String,java.lang.Boolean> requiredAbilities
| Constructor Detail |
|---|
public BuildableType()
| Method Detail |
|---|
public java.lang.String getGoodsRequiredAsString()
public final java.util.List<AbstractGoods> getGoodsRequired()
GoodsRequired value.
List valuepublic final int getAmountRequiredOf(GoodsType type)
GoodsType
public final void setGoodsRequired(java.util.List<AbstractGoods> newGoodsRequired)
GoodsRequired value.
newGoodsRequired - The new GoodsRequired value.public int getPopulationRequired()
PopulationRequired value.
int valuepublic void setPopulationRequired(int newPopulationRequired)
PopulationRequired value.
newPopulationRequired - The new PopulationRequired value.public java.util.Map<java.lang.String,java.lang.Boolean> getAbilitiesRequired()
protected void readAttributes(javax.xml.stream.XMLStreamReader in,
Specification specification)
throws javax.xml.stream.XMLStreamException
readAttributes in class FreeColGameObjectTypejavax.xml.stream.XMLStreamException
protected FreeColObject readChild(javax.xml.stream.XMLStreamReader in,
Specification specification)
throws javax.xml.stream.XMLStreamException
readChild in class FreeColGameObjectTypejavax.xml.stream.XMLStreamException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||