|
|||||||||
| 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 | |
|---|---|
private java.lang.String |
anthem
Describe anthem here. |
private java.awt.Color |
color
The default color to use for this nation. |
private Nation |
refNation
Describe refNation here. |
private boolean |
selectable
Describe selectable here. |
private NationType |
type
Describe type here. |
static java.lang.String |
UNKNOWN_NATION_ID
|
| 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 | |
|---|---|
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, 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 |
|---|
public static java.lang.String UNKNOWN_NATION_ID
private java.awt.Color color
private NationType type
private boolean selectable
private java.lang.String anthem
private Nation refNation
| 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
readAttributes in class FreeColGameObjectTypejavax.xml.stream.XMLStreamException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||