com.empireclassic.Remote
Class NationInfo
java.lang.Object
com.empireclassic.Remote.NationInfo
- All Implemented Interfaces:
- java.lang.Comparable
public class NationInfo
- extends java.lang.Object
- implements java.lang.Comparable
This is an abstraction of the information about a single nation.
- Author:
- chas
Constructor Summary |
NationInfo(java.lang.String infoString)
Construct a NationInfo from a server response string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NationInfo
public NationInfo(java.lang.String infoString)
- Construct a
NationInfo
from a server response string.
- Parameters:
infoString
-
formatNationName
public java.lang.String formatNationName()
- Output the nation name in the standard Empire format of "name [#]"
- Returns:
- The formatted name
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getHomeIsland
public int getHomeIsland()
setHomeIsland
public void setHomeIsland(int homeIsland)
getKnowledge
public java.lang.String getKnowledge()
setKnowledge
public void setKnowledge(java.lang.String knowledge)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getNationNum
public int getNationNum()
setNationNum
public void setNationNum(int nationNum)
getWarDeclared
public java.lang.String getWarDeclared()
setWarDeclared
public void setWarDeclared(java.lang.String warDeclared)
getWarOffered
public java.lang.String getWarOffered()
setWarOffered
public void setWarOffered(java.lang.String warOffered)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
getIslandsOn
public int getIslandsOn()
getMateriel
public int getMateriel()
getPopulation
public int getPopulation()
getPower
public int getPower()
getPowerDate
public double getPowerDate()
getTotalSectors
public int getTotalSectors()