net.sf.freecol.common.model
Class NationType

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.NationType
Direct Known Subclasses:
EuropeanNationType, IndianNationType

public abstract class NationType
extends FreeColGameObjectType

Represents one of the nations present in the game.


Field Summary
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ID_ATTRIBUTE_TAG
 
Constructor Summary
NationType(int index)
          Sole constructor.
 
Method Summary
 int getCapitalRadius()
          Get the CapitalRadius value.
 int getSettlementRadius()
          Get the SettlementRadius value.
abstract  boolean isEuropean()
          Whether this is a EuropeanNation, i.e.
abstract  boolean isREF()
          Whether this is a EuropeanREFNation.
 void setCapitalRadius(int newCapitalRadius)
          Set the CapitalRadius value.
 void setSettlementRadius(int newSettlementRadius)
          Set the SettlementRadius 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
 

Constructor Detail

NationType

public NationType(int index)
Sole constructor.

Method Detail

isEuropean

public abstract boolean isEuropean()
Whether this is a EuropeanNation, i.e. a player or a REF.


isREF

public abstract boolean isREF()
Whether this is a EuropeanREFNation.


getSettlementRadius

public final int getSettlementRadius()
Get the SettlementRadius value.

Returns:
an int value

setSettlementRadius

public final void setSettlementRadius(int newSettlementRadius)
Set the SettlementRadius value.

Parameters:
newSettlementRadius - The new SettlementRadius value.

getCapitalRadius

public final int getCapitalRadius()
Get the CapitalRadius value.

Returns:
an int value

setCapitalRadius

public final void setCapitalRadius(int newCapitalRadius)
Set the CapitalRadius value.

Parameters:
newCapitalRadius - The new CapitalRadius value.