|
|||||||||
| 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.NationSummary
public class NationSummary
A summary of an enemy nation.
| Field Summary | |
|---|---|
private java.lang.String |
foundingFathers
The number of founding fathers this (European) player has. |
private java.lang.String |
gold
The gold this (European) player has. |
private java.lang.String |
militaryStrength
The military strength of this (European) player. |
private java.lang.String |
navalStrength
The naval strength of this (European) player. |
private java.lang.String |
numberOfSettlements
The number of settlements this player has. |
private java.lang.String |
numberOfUnits
The number of units this (European) player has. |
private java.lang.String |
soL
The (European) player SoL. |
private java.lang.String |
stance
The stance of the player toward the requesting player. |
private java.lang.String |
tax
The tax rate of this (European) player. |
| 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 | |
|---|---|
NationSummary(org.w3c.dom.Element element)
Creates a new NationSummary instance. |
|
NationSummary(Player player,
Player requester)
Creates a nation summary for the specified player. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFoundingFathers()
|
int |
getGold()
|
java.lang.String |
getMilitaryStrength()
|
java.lang.String |
getNavalStrength()
|
java.lang.String |
getNumberOfSettlements()
|
java.lang.String |
getNumberOfUnits()
|
java.lang.String |
getSoL()
|
Player.Stance |
getStance()
|
java.lang.String |
getTax()
|
static java.lang.String |
getXMLElementTagName()
Gets the tag name of the root element representing this object. |
protected void |
readAttributes(javax.xml.stream.XMLStreamReader in)
Reads the attributes of this object from an XML stream. |
void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
This method writes an XML-representation of this object to the given stream. |
protected void |
writeAttributes(javax.xml.stream.XMLStreamWriter out)
Write the attributes of this object to a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String numberOfSettlements
private java.lang.String numberOfUnits
private java.lang.String militaryStrength
private java.lang.String navalStrength
private java.lang.String stance
private java.lang.String gold
private java.lang.String soL
private java.lang.String foundingFathers
private java.lang.String tax
| Constructor Detail |
|---|
public NationSummary(Player player,
Player requester)
player - The Player the player to create the
summary of.requester - The Player making the request.public NationSummary(org.w3c.dom.Element element)
NationSummary instance.
element - An Element value.| Method Detail |
|---|
public java.lang.String getNumberOfSettlements()
public java.lang.String getNumberOfUnits()
public java.lang.String getMilitaryStrength()
public java.lang.String getNavalStrength()
public Player.Stance getStance()
public int getGold()
public java.lang.String getFoundingFathers()
public java.lang.String getSoL()
public java.lang.String getTax()
public void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
toXMLImpl in class FreeColObjectout - The target 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 FreeColObjectin - 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 | ||||||||