|
|||||||||
| 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.Nation
public class Nation
Represents one of the nations present in the game.
| Field Summary | |
|---|---|
static java.lang.String[] |
EUROPEAN_NATIONS
|
private int |
preferredLatitude
Describe preferredLatitude here. |
private Nation |
refNation
Describe refNation here. |
private boolean |
selectable
Describe selectable here. |
private boolean |
startsOnEastCoast
Describe startsOnEastCoast here. |
private NationType |
type
Describe type here. |
static java.lang.String |
UNKNOWN_NATION_ID
|
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, INFINITY, logger, NO_ID, PARTIAL_ATTRIBUTE, UNDEFINED, VALUE_TAG |
| Constructor Summary | |
|---|---|
Nation(java.lang.String id,
Specification specification)
|
|
| Method Summary | |
|---|---|
int |
getPreferredLatitude()
Get the PreferredLatitude value. |
Nation |
getRefNation()
Get the RefNation value. |
java.lang.String |
getRulerNameKey()
Get the RulerName value. |
NationType |
getType()
Get the Type value. |
static java.lang.String |
getXMLElementTagName()
Returns the tag name of the root element representing this object. |
boolean |
isSelectable()
Get the Selectable value. |
protected void |
readAttributes(javax.xml.stream.XMLStreamReader in)
Reads the attributes of this object from an XML stream. |
void |
setPreferredLatitude(int newPreferredLatitude)
Set the PreferredLatitude value. |
void |
setRefNation(Nation newRefNation)
Set the RefNation value. |
void |
setSelectable(boolean newSelectable)
Set the Selectable value. |
void |
setStartsOnEastCoast(boolean newStartsOnEastCoast)
Set the StartsOnEastCoast value. |
void |
setType(NationType newType)
Set the Type value. |
boolean |
startsOnEastCoast()
Get the StartsOnEastCoast value. |
protected void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
Makes an XML-representation of this object. |
protected void |
writeAttributes(javax.xml.stream.XMLStreamWriter out)
Write the attributes of this object to a stream. |
| Methods inherited from class net.sf.freecol.common.model.FreeColGameObjectType |
|---|
addAbility, addModifier, applyDifficultyLevel, getDescriptionKey, getFeatureContainer, getIndex, getModifierIndex, getModifierIndex, getModifierSet, getNameKey, hasAbility, hasAbility, isAbstractType, readChild, readChildren, setAbstractType, setFeatureContainer, setIndex, setModifierIndex, toString, toXMLImpl, writeChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String UNKNOWN_NATION_ID
public static final java.lang.String[] EUROPEAN_NATIONS
private NationType type
private boolean selectable
private Nation refNation
private int preferredLatitude
private boolean startsOnEastCoast
| Constructor Detail |
|---|
public Nation(java.lang.String id,
Specification specification)
| Method Detail |
|---|
public final NationType getType()
Type value.
NationType valuepublic final void setType(NationType newType)
Type value.
newType - The new Type value.public final java.lang.String getRulerNameKey()
RulerName value.
String valuepublic final boolean isSelectable()
Selectable value.
boolean valuepublic final Nation getRefNation()
RefNation value.
Nation valuepublic final void setRefNation(Nation newRefNation)
RefNation value.
newRefNation - The new RefNation value.public final void setSelectable(boolean newSelectable)
Selectable value.
newSelectable - The new Selectable value.public final int getPreferredLatitude()
PreferredLatitude value.
int valuepublic final void setPreferredLatitude(int newPreferredLatitude)
PreferredLatitude value.
newPreferredLatitude - The new PreferredLatitude value.public final boolean startsOnEastCoast()
StartsOnEastCoast value.
boolean valuepublic final void setStartsOnEastCoast(boolean newStartsOnEastCoast)
StartsOnEastCoast value.
newStartsOnEastCoast - The new StartsOnEastCoast value.
protected void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
toXMLImpl in class FreeColGameObjectTypeout - The output stream.
javax.xml.stream.XMLStreamException - if there are any problems writing to the
stream.
protected void writeAttributes(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
writeAttributes in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing to
the stream.
protected void readAttributes(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
readAttributes in class FreeColGameObjectTypein - The XML input stream.
javax.xml.stream.XMLStreamException - if a problem was encountered
during parsing.public static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||