net.sf.freecol.common.model
Class BuildableType

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.BuildableType
Direct Known Subclasses:
BuildingType, EquipmentType, UnitType

public abstract class BuildableType
extends FreeColGameObjectType

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 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
 

Field Detail

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values

NOTHING

public static final java.lang.String NOTHING
See Also:
Constant Field Values
Constructor Detail

BuildableType

public BuildableType()
Method Detail

getGoodsRequiredAsString

public java.lang.String getGoodsRequiredAsString()

getGoodsRequired

public final java.util.List<AbstractGoods> getGoodsRequired()
Get the GoodsRequired value.

Returns:
a List value

getAmountRequiredOf

public final int getAmountRequiredOf(GoodsType type)
Get amount required of given GoodsType


setGoodsRequired

public final void setGoodsRequired(java.util.List<AbstractGoods> newGoodsRequired)
Set the GoodsRequired value.

Parameters:
newGoodsRequired - The new GoodsRequired value.

getPopulationRequired

public int getPopulationRequired()
Get the PopulationRequired value.

Returns:
an int value

setPopulationRequired

public void setPopulationRequired(int newPopulationRequired)
Set the PopulationRequired value.

Parameters:
newPopulationRequired - The new PopulationRequired value.

getAbilitiesRequired

public java.util.Map<java.lang.String,java.lang.Boolean> getAbilitiesRequired()
Returns the abilities required by this Type.

Returns:
the abilities required by this Type.