|
||||||||||
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 |
UNKNOWN_NATION_ID
|
Fields inherited from class net.sf.freecol.common.model.FreeColObject |
---|
ID_ATTRIBUTE_TAG |
Constructor Summary | |
---|---|
Nation()
|
Method Summary | |
---|---|
java.lang.String |
getAnthem()
Get the Anthem value. |
java.awt.Color |
getColor()
Get the Color value. |
Nation |
getRefNation()
Get the RefNation value. |
java.lang.String |
getRulerName()
Get the RulerName value. |
NationType |
getType()
Get the Type value. |
boolean |
isSelectable()
Get the Selectable value. |
void |
readAttributes(javax.xml.stream.XMLStreamReader in,
Specification specification)
|
void |
setAnthem(java.lang.String newAnthem)
Set the Anthem value. |
void |
setColor(java.awt.Color newColor)
Set the Color value. |
void |
setRefNation(Nation newRefNation)
Set the RefNation value. |
void |
setSelectable(boolean newSelectable)
Set the Selectable value. |
void |
setType(NationType newType)
Set the Type 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String UNKNOWN_NATION_ID
Constructor Detail |
---|
public Nation()
Method Detail |
---|
public final java.awt.Color getColor()
Color
value.
Color
valuepublic final void setColor(java.awt.Color newColor)
Color
value.
newColor
- The new Color value.public final java.lang.String getAnthem()
Anthem
value.
String
valuepublic final void setAnthem(java.lang.String newAnthem)
Anthem
value.
newAnthem
- The new Anthem value.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 getRulerName()
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 void readAttributes(javax.xml.stream.XMLStreamReader in, Specification specification) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |