com.empireclassic.Remote
Class Sector

java.lang.Object
  extended by com.empireclassic.Remote.Sector
All Implemented Interfaces:
java.io.Serializable

public class Sector
extends java.lang.Object
implements java.io.Serializable

An abstraction of the information about a single sector.

Author:
chas
See Also:
Serialized Form

Nested Class Summary
static class Sector.Des
           
 
Constructor Summary
Sector(java.lang.String serverString)
          Construct a Sector from a server response string.
 
Method Summary
 java.util.List<IslandCoord> getAdjacencies()
           
 int getAuthorized()
           
 int getBombers()
           
 int getCivilians()
           
 Sector.Des getDes()
           
 int getEff()
           
 int getFighters()
           
 int getGuns()
           
 IslandCoord getLocation()
           
 int getMilitary()
           
 int getOre()
           
 int getOreSample()
           
 int getOwner()
           
 int getProduction()
           
 int getShells()
           
 Sector.Des getTerrain()
           
 int getTimeLeft()
           
 int getTimeRight()
           
 void setAuthorized(int authorized)
           
 void setBombers(int bombers)
           
 void setCivilians(int civilians)
           
 void setDes(Sector.Des des)
           
 void setEff(int eff)
           
 void setFighters(int fighters)
           
 void setGuns(int guns)
           
 void setLocation(IslandCoord coord)
           
 void setMilitary(int military)
           
 void setOre(int ore)
           
 void setOreSample(int oreSample)
           
 void setOwner(int owner)
           
 void setProduction(int production)
           
 void setShells(int shells)
           
 void setTimeLeft(int timeLeft)
           
 void setTimeRight(int timeRight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sector

public Sector(java.lang.String serverString)
Construct a Sector from a server response string.

Parameters:
serverString - The string from the server.
Method Detail

getAdjacencies

public java.util.List<IslandCoord> getAdjacencies()

getTerrain

public Sector.Des getTerrain()

getOwner

public int getOwner()

setOwner

public void setOwner(int owner)

getDes

public Sector.Des getDes()
Returns:
Returns the des.

setDes

public void setDes(Sector.Des des)
Parameters:
des - The des to set.

getBombers

public int getBombers()
Returns:
Returns the bombers.

setBombers

public void setBombers(int bombers)
Parameters:
bombers - The bombers to set.

getCivilians

public int getCivilians()
Returns:
Returns the civilians.

setCivilians

public void setCivilians(int civilians)
Parameters:
civilians - The civilians to set.

getLocation

public IslandCoord getLocation()
Returns:
Returns the coord.

setLocation

public void setLocation(IslandCoord coord)
Parameters:
coord - The coord to set.

getFighters

public int getFighters()
Returns:
Returns the fighters.

setFighters

public void setFighters(int fighters)
Parameters:
fighters - The fighters to set.

getGuns

public int getGuns()
Returns:
Returns the guns.

setGuns

public void setGuns(int guns)
Parameters:
guns - The guns to set.

getMilitary

public int getMilitary()
Returns:
Returns the military.

setMilitary

public void setMilitary(int military)
Parameters:
military - The military to set.

getOre

public int getOre()
Returns:
Returns the ore.

setOre

public void setOre(int ore)
Parameters:
ore - The ore to set.

getShells

public int getShells()
Returns:
Returns the shells.

setShells

public void setShells(int shells)
Parameters:
shells - The shells to set.

getOreSample

public int getOreSample()

setOreSample

public void setOreSample(int oreSample)

getAuthorized

public int getAuthorized()

setAuthorized

public void setAuthorized(int authorized)

getEff

public int getEff()

setEff

public void setEff(int eff)

getProduction

public int getProduction()

setProduction

public void setProduction(int production)

getTimeLeft

public int getTimeLeft()

setTimeLeft

public void setTimeLeft(int timeLeft)

getTimeRight

public int getTimeRight()

setTimeRight

public void setTimeRight(int timeRight)