com.empireclassic.Remote
Class NationInfo

java.lang.Object
  extended by 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.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String formatNationName()
          Output the nation name in the standard Empire format of "name [#]"
 int getHomeIsland()
           
 int getIslandsOn()
           
 java.lang.String getKnowledge()
           
 int getMateriel()
           
 java.lang.String getName()
           
 int getNationNum()
           
 int getPopulation()
           
 int getPower()
           
 double getPowerDate()
           
 int getTotalSectors()
           
 java.lang.String getWarDeclared()
           
 java.lang.String getWarOffered()
           
 void setHomeIsland(int homeIsland)
           
 void setKnowledge(java.lang.String knowledge)
           
 void setName(java.lang.String name)
           
 void setNationNum(int nationNum)
           
 void setWarDeclared(java.lang.String warDeclared)
           
 void setWarOffered(java.lang.String warOffered)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NationInfo

public NationInfo(java.lang.String infoString)
Construct a NationInfo from a server response string.

Parameters:
infoString -
Method Detail

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()