com.empireclassic.Remote
Class IslandInfo

java.lang.Object
  extended by 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.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String formatIslandName()
           
 Sector getCapitol(int nationNum)
           
 float getDateDiscovered()
           
 WorldCoord getLocation()
           
 java.lang.String getName()
           
 int getNamingNationNum()
           
 int getNumber()
           
 java.util.Map<IslandCoord,Sector> getSectors()
           
 SelectionMap getSelectionMap()
           
 EmpireDimension getSize()
           
 int getVersion()
           
 boolean isKnows()
           
 boolean isOccuppied()
           
 boolean isReleased()
           
 boolean isVisited()
           
 IslandCoord parseCoord(java.lang.String arg)
           
 void setDateDiscovered(float dateDiscovered)
           
 void setLocation(WorldCoord coord)
           
 void setSize(EmpireDimension size)
           
 void setVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IslandInfo

public IslandInfo(java.lang.String initString)
Construct an IslandInfo from a server response string.

Parameters:
initString - The server string.
Method Detail

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)