|
|||||||||
| 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.HighScore
public class HighScore
| Nested Class Summary | |
|---|---|
static class |
HighScore.Level
On retirement, an object will be named in honour of the player. |
| Field Summary | |
|---|---|
private int |
colonies
The final number of colonies. |
private java.util.Date |
date
Describe date here. |
private static java.text.SimpleDateFormat |
dateFormat
|
private java.lang.String |
difficulty
The difficulty level of this game. |
private int |
independenceTurn
The turn in which independence was granted. |
private HighScore.Level |
level
Describe level here. |
private java.lang.String |
nationID
Describe nationID here. |
private java.lang.String |
nationName
The name given to the new independent nation. |
private java.lang.String |
nationTypeID
Describe nationTypeID here. |
private java.lang.String |
newLandName
Describe newLandName here. |
private java.lang.String |
playerName
The name of the human player. |
private int |
retirementTurn
Retirement Game year |
private int |
score
Describe score here. |
private int |
units
The final number of units. |
| 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 | |
|---|---|
HighScore(org.w3c.dom.Element element)
|
|
HighScore(Player player,
java.util.Date theDate)
|
|
HighScore(javax.xml.stream.XMLStreamReader in)
|
|
| Method Summary | |
|---|---|
int |
getColonies()
Get the Colonies value. |
java.util.Date |
getDate()
Get the Date value. |
java.lang.String |
getDifficulty()
Get the Difficulty value. |
int |
getIndependenceTurn()
Get the IndependenceTurn value. |
HighScore.Level |
getLevel()
Get the Level value. |
java.lang.String |
getNationID()
Get the NationID value. |
java.lang.String |
getNationName()
Get the NationName value. |
java.lang.String |
getNationTypeID()
Get the NationTypeID value. |
java.lang.String |
getNewLandName()
Get the NewLandName value. |
java.lang.String |
getOldNationNameKey()
Get the Nation's localized name. |
java.lang.String |
getPlayerName()
Get the PlayerName value. |
int |
getRetirementTurn()
Get the RetirementTurn value. |
int |
getScore()
Get the Score value. |
int |
getUnits()
Get the Units value. |
static java.lang.String |
getXMLElementTagName()
Returns the tag name of the root element representing this object. |
protected void |
readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
Initialize this object from an XML-representation of this object. |
void |
setColonies(int newColonies)
Set the Colonies value. |
void |
setDate(java.util.Date newDate)
Set the Date value. |
void |
setDifficulty(java.lang.String newDifficulty)
Set the Difficulty value. |
void |
setIndependenceTurn(int newIndependenceTurn)
Set the IndependenceTurn value. |
void |
setLevel(HighScore.Level newLevel)
Set the Level value. |
void |
setNationID(java.lang.String newNationID)
Set the NationID value. |
void |
setNationName(java.lang.String newNationName)
Set the NationName value. |
void |
setNationTypeID(java.lang.String newNationTypeID)
Set the NationTypeID value. |
void |
setNewLandName(java.lang.String newNewLandName)
Set the NewLandName value. |
void |
setPlayerName(java.lang.String newPlayerName)
Set the PlayerName value. |
void |
setRetirementTurn(int newRetirementTurn)
Set the RetirementTurn value. |
void |
setScore(int newScore)
Set the Score value. |
void |
setUnits(int newUnits)
Set the Units value. |
protected 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 static final java.text.SimpleDateFormat dateFormat
private int independenceTurn
private java.lang.String playerName
private java.lang.String nationID
private java.lang.String nationTypeID
private int score
private HighScore.Level level
private java.lang.String nationName
private java.lang.String difficulty
private int units
private int colonies
private java.lang.String newLandName
private java.util.Date date
private int retirementTurn
| Constructor Detail |
|---|
public HighScore(Player player,
java.util.Date theDate)
public HighScore(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public HighScore(org.w3c.dom.Element element)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException| Method Detail |
|---|
public final int getIndependenceTurn()
IndependenceTurn value.
int valuepublic final void setIndependenceTurn(int newIndependenceTurn)
IndependenceTurn value.
newIndependenceTurn - The new IndependenceTurn value.public final int getRetirementTurn()
RetirementTurn value.
int valuepublic final void setRetirementTurn(int newRetirementTurn)
RetirementTurn value.
newRetirementTurn - The new RetirementTurn value.public final java.lang.String getPlayerName()
PlayerName value.
String valuepublic final void setPlayerName(java.lang.String newPlayerName)
PlayerName value.
newPlayerName - The new PlayerName value.public final java.lang.String getNationID()
NationID value.
String valuepublic final void setNationID(java.lang.String newNationID)
NationID value.
newNationID - The new NationID value.public final java.lang.String getNationTypeID()
NationTypeID value.
String valuepublic final void setNationTypeID(java.lang.String newNationTypeID)
NationTypeID value.
newNationTypeID - The new NationTypeID value.public final int getScore()
Score value.
int valuepublic final void setScore(int newScore)
Score value.
newScore - The new Score value.public final HighScore.Level getLevel()
Level value.
Level valuepublic final void setLevel(HighScore.Level newLevel)
Level value.
newLevel - The new Level value.public final java.lang.String getOldNationNameKey()
Nation's localized name.
String valuepublic final java.lang.String getNationName()
NationName value.
String valuepublic final void setNationName(java.lang.String newNationName)
NationName value.
newNationName - The new NationName value.public final java.lang.String getNewLandName()
NewLandName value.
String valuepublic final void setNewLandName(java.lang.String newNewLandName)
NewLandName value.
newNewLandName - The new NewLandName value.public final java.lang.String getDifficulty()
Difficulty value.
String valuepublic final void setDifficulty(java.lang.String newDifficulty)
Difficulty value.
newDifficulty - The new Difficulty value.public final int getUnits()
Units value.
int valuepublic final void setUnits(int newUnits)
Units value.
newUnits - The new Units value.public final int getColonies()
Colonies value.
int valuepublic final void setColonies(int newColonies)
Colonies value.
newColonies - The new Colonies value.public final java.util.Date getDate()
Date value.
Date valuepublic final void setDate(java.util.Date newDate)
Date value.
newDate - The new Date value.
protected 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 readFromXMLImpl(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
readFromXMLImpl in class FreeColObjectin - The input stream with the XML.
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 | ||||||||