|
||||||||||
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 | |
---|---|
static java.lang.String |
NOTHING
|
static int |
UNDEFINED
|
Fields inherited from class net.sf.freecol.common.model.FreeColObject |
---|
ID_ATTRIBUTE_TAG |
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. |
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, setFeatureContainer, setIndex, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNDEFINED
public static final java.lang.String NOTHING
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |