|
|||||||||
| 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.NationType
public abstract class NationType
Represents one of the nations present in the game.
| Field Summary | |
|---|---|
private int |
capitalRadius
The radius of this nation type's capital. |
private int |
settlementRadius
The radius of this nation type's settlements. |
| 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 | |
|---|---|
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, readAttributes, 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 settlementRadius
private int capitalRadius
| Constructor Detail |
|---|
public NationType(int index)
| Method Detail |
|---|
public abstract boolean isEuropean()
public abstract boolean isREF()
public final int getSettlementRadius()
SettlementRadius value.
int valuepublic final void setSettlementRadius(int newSettlementRadius)
SettlementRadius value.
newSettlementRadius - The new SettlementRadius value.public final int getCapitalRadius()
CapitalRadius value.
int valuepublic final void setCapitalRadius(int newCapitalRadius)
CapitalRadius value.
newCapitalRadius - The new CapitalRadius value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||