|
|||||||||
| 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
net.sf.freecol.common.model.EuropeanNationType
public class EuropeanNationType
Represents one of the European nations present in the game, i.e. both REFs and possible human players.
| Field Summary | |
|---|---|
private boolean |
ref
Whether this is an REF Nation. |
private java.util.List<AbstractUnit> |
startingUnits
Stores the starting units of this Nation. |
| 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 | |
|---|---|
EuropeanNationType(int index)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEuropeName()
Returns the name of this Nation's Home Port. |
java.lang.String |
getREFName()
Returns the name of this Nation's REF. |
java.util.List<AbstractUnit> |
getStartingUnits()
Returns a list of this Nation's starting units. |
boolean |
isEuropean()
Returns true. |
boolean |
isREF()
Get the REF value. |
void |
readAttributes(javax.xml.stream.XMLStreamReader in,
Specification specification)
|
void |
readChildren(javax.xml.stream.XMLStreamReader in,
Specification specification)
|
void |
setREF(boolean newREF)
Set the REF value. |
| Methods inherited from class net.sf.freecol.common.model.NationType |
|---|
getCapitalRadius, getSettlementRadius, setCapitalRadius, setSettlementRadius |
| Methods inherited from class net.sf.freecol.common.model.FreeColGameObjectType |
|---|
addAbility, addModifier, getFeatureContainer, getIndex, getModifierSet, hasAbility, hasAbility, readChild, 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 boolean ref
private java.util.List<AbstractUnit> startingUnits
| Constructor Detail |
|---|
public EuropeanNationType(int index)
| Method Detail |
|---|
public java.lang.String getEuropeName()
String valuepublic java.lang.String getREFName()
String valuepublic final boolean isREF()
REF value.
isREF in class NationTypeboolean valuepublic final void setREF(boolean newREF)
REF value.
newREF - The new REF value.public boolean isEuropean()
isEuropean in class NationTypeboolean valuepublic java.util.List<AbstractUnit> getStartingUnits()
public void readAttributes(javax.xml.stream.XMLStreamReader in,
Specification specification)
throws javax.xml.stream.XMLStreamException
readAttributes in class FreeColGameObjectTypejavax.xml.stream.XMLStreamException
public void readChildren(javax.xml.stream.XMLStreamReader in,
Specification specification)
throws javax.xml.stream.XMLStreamException
readChildren in class FreeColGameObjectTypejavax.xml.stream.XMLStreamException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||