com.empireclassic.Remote
Class IslandInfo
java.lang.Object
com.empireclassic.Remote.IslandInfo
- All Implemented Interfaces:
- java.lang.Comparable
public class IslandInfo
- extends java.lang.Object
- implements java.lang.Comparable
An abstraction of the meta-data about an island.
- Author:
- chas
Constructor Summary |
IslandInfo(java.lang.String initString)
Construct an IslandInfo from a server response string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IslandInfo
public IslandInfo(java.lang.String initString)
- Construct an
IslandInfo
from a server response string.
- Parameters:
initString
- The server string.
formatIslandName
public java.lang.String formatIslandName()
parseCoord
public IslandCoord parseCoord(java.lang.String arg)
getNumber
public int getNumber()
getName
public java.lang.String getName()
getLocation
public WorldCoord getLocation()
setLocation
public void setLocation(WorldCoord coord)
getDateDiscovered
public float getDateDiscovered()
setDateDiscovered
public void setDateDiscovered(float dateDiscovered)
getSize
public EmpireDimension getSize()
setSize
public void setSize(EmpireDimension size)
isKnows
public boolean isKnows()
isOccuppied
public boolean isOccuppied()
isReleased
public boolean isReleased()
isVisited
public boolean isVisited()
getCapitol
public Sector getCapitol(int nationNum)
getSectors
public java.util.Map<IslandCoord,Sector> getSectors()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
getSelectionMap
public SelectionMap getSelectionMap()
getNamingNationNum
public int getNamingNationNum()
getVersion
public int getVersion()
setVersion
public void setVersion(int version)