com.empireclassic.Remote
Class Sector
java.lang.Object
   com.empireclassic.Remote.Sector
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
 
| Constructor Summary | 
| Sector(java.lang.String serverString)Construct a
 Sectorfrom a server response string. | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Sector
public Sector(java.lang.String serverString)
- Construct a Sectorfrom a server response string.
 
- Parameters:
- serverString- The string from the server.
 
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)
- 
 
-