public final class Sector extends Info implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
BOTH_WAY
Indicates a warp that can be used both ways.
|
static int |
BUYING
The port is buying this product.
|
static int |
NO_PORT
There is no port in this sector.
|
static int |
ONE_WAY
Indicates a one way warp.
|
static int |
PORT_AVAILABLE
There is a port in this sector, ready to use.
|
static int |
PORT_BLOCKED
There seems to be a blocked port in this sector.
|
static int |
PORT_DESTROYED
Warning, there is a destroyed port in this sector.
|
static int |
PORT_UNDER_CONSTRUCTION
There is a port under construction in this sector.
|
static int |
SELLING
The port is selling this product.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
anomaly()
Indicates if there is an anomaly in the sector or not.
|
int |
armidMines()
Gets the number of armid mines in the sector.
|
Identity |
armidOwner()
Gets the owner of the armid mines in this sector.
|
int[] |
backdoorSectors()
Gets the backdoor sectors for this sector (if any).
|
java.lang.String |
beaconMessage()
Indicates if there is a beacon in the sector or not.
|
Bubble[] |
bubbles()
Gets all the bubbles that the sector is part of.
|
java.util.Date |
busted()
Indicates if you are busted at the port in this sector or not.
|
java.lang.Object |
clone() |
int |
density()
Gets the density for the sector.
|
void |
display()
Displays this sector in the terminal window.
|
void |
dump()
Dumps the sector info in the terminal window.
|
boolean |
equals(java.lang.Object obj) |
int |
fighters()
Gets the number of fighters in this sector.
|
Identity |
ftrDestroyed()
Indicates if your fighters in this sector has been destroyed
and if so, who did destroy them.
|
Identity |
ftrOwner()
Gets the owner of the fighters in this sector.
|
java.util.Date |
ftrTimestamp()
Gets the timestamp when the fighters were placed or first discovered.
|
int |
ftrType()
Gets the type of fighters in this sector.
|
boolean |
isAvoided()
Indicates if the sector is avoided or not.
|
boolean |
isEmpty()
Indicates if the sector is empty or not.
|
boolean |
isFedSpace()
Indicates if the sector is located in FedSpace or not.
|
boolean |
isStarDock()
Indicates if the StarDock is located in this sector or not.
|
boolean |
isUnexplored()
Indicates if the sector is unexplored or not.
|
boolean |
isVisited()
Indicates if the sector has been visited or not.
|
java.util.Date |
lastPortUpdate()
Gets the timestamp when the port information was last updated.
|
java.util.Date |
lastSectorUpdate()
Gets the timestamp when the sector information was last updated.
|
int |
limpetMines()
Gets the number of limpet mines in the sector.
|
Identity |
limpetOwner()
Gets the owner of the limpet mines in this sector.
|
int |
navHaz()
Gets the navigational hazard for the sector (0-100%).
|
int[] |
oneWays()
Indicates if a warp sector is one-way or not.
|
boolean |
partOfMajorSpaceLane()
Indicates if the sector is part of a major space lane or not.
|
Planet[] |
planets()
Gets all the planets in the sector.
|
int[] |
portAmounts()
Gets the amount of product available at the port for each product type
(Fuel Ore, Organics and Equipment).
|
int |
portClass()
Gets the port class.
|
int |
portConstructionStatus()
Gets the current construction status of the port.
|
java.lang.String |
portDockingLog()
Gets the name of the last ship that docked at the port.
|
java.util.Date |
portDockingTimestamp()
Gets the timestamp when the last ship docked at the port.
|
int[] |
portInfo()
Gets the port buy/sell information for each product type
(Fuel Ore, Organics and Equipment).
|
int[] |
portMcicValues()
Gets the port MCIC values for each product type (Fuel Ore, Organics and Equipment).
|
java.lang.String |
portName()
Gets the name of the port in the sector.
|
int[] |
portPercentages()
Gets the amount of product available at the port in percentage of the maximal amount
for each product type (Fuel Ore, Organics and Equipment).
|
int |
portStatus()
Gets the sector port status.
|
int |
sector()
Gets the sector number.
|
java.lang.String |
sectorNote()
Gets the sector note.
|
void |
setSectorNote(java.lang.String note)
Sets the sector note.
|
Ship[] |
ships()
Gets all the unmanned ships in the sector.
|
java.lang.String |
spaceName()
Gets the name of the space that the sector occupies.
|
int |
status()
Indicates if the sector is friendly, neutral or hostile to you.
|
java.lang.String |
toString() |
Trader[] |
traders()
Gets all the traders in the sector.
|
int |
warps()
Gets the number of warps from this sector.
|
int[] |
warpSectors()
Gets the sectors you can warp to from this sector.
|
public static final int NO_PORT
public static final int PORT_AVAILABLE
public static final int PORT_UNDER_CONSTRUCTION
public static final int PORT_DESTROYED
public static final int PORT_BLOCKED
public static final int BUYING
public static final int SELLING
public static final int ONE_WAY
public static final int BOTH_WAY
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int sector()
public java.util.Date lastSectorUpdate()
throws java.lang.Exception
null if never updated.java.lang.ExceptionlastPortUpdate()public java.util.Date lastPortUpdate()
throws java.lang.Exception
null if never updated.java.lang.ExceptionlastSectorUpdate()public int status()
throws java.lang.Exception
java.lang.ExceptionSwath.FRIENDLY,
Swath.NEUTRAL,
Swath.HOSTILEpublic boolean isEmpty()
throws java.lang.Exception
true if the sector is empty,
otherwise false.java.lang.Exceptionpublic boolean isUnexplored()
throws java.lang.Exception
true if the sector is unexplored,
otherwise false.java.lang.ExceptionisVisited()public boolean isVisited()
throws java.lang.Exception
true if the sector has been visited,
otherwise false.java.lang.ExceptionisUnexplored()public boolean isStarDock()
throws java.lang.Exception
true if the StarDock is here,
otherwise false.java.lang.ExceptionisFedSpace(),
partOfMajorSpaceLane()public boolean isFedSpace()
throws java.lang.Exception
true if the sector is in FedSpace,
otherwise false.java.lang.ExceptionisStarDock(),
partOfMajorSpaceLane()public boolean partOfMajorSpaceLane()
throws java.lang.Exception
true if the sector is part of
a major space lane, otherwise false.java.lang.ExceptionisStarDock(),
isFedSpace()public java.lang.String spaceName()
throws java.lang.Exception
java.lang.Exceptionpublic int portStatus()
throws java.lang.Exception
java.lang.ExceptionNO_PORT,
PORT_AVAILABLE,
PORT_UNDER_CONSTRUCTION,
PORT_DESTROYED,
PORT_BLOCKEDpublic java.lang.String portName()
throws java.lang.Exception
PORT_AVAILABLE or PORT_UNDER_CONSTRUCTION.java.lang.ExceptionportStatus()public int portClass()
throws java.lang.Exception
PORT_AVAILABLE or PORT_UNDER_CONSTRUCTION.java.lang.ExceptionportStatus()public int portConstructionStatus()
throws java.lang.Exception
java.lang.ExceptionportStatus()public java.lang.String portDockingLog()
throws java.lang.Exception
PORT_AVAILABLE.null if no ship docked
or if it is unknown.java.lang.ExceptionportDockingTimestamp(),
portStatus()public java.util.Date portDockingTimestamp()
throws java.lang.Exception
PORT_AVAILABLE.null if not known.java.lang.ExceptionportDockingLog(),
portStatus()public int[] portInfo()
throws java.lang.Exception
PORT_AVAILABLE or PORT_UNDER_CONSTRUCTION.BUYING or a SELLING
indicator for each product.java.lang.ExceptionBUYING,
SELLING,
Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
portStatus()public int[] portAmounts()
throws java.lang.Exception
UNKNOWN if not known.
The return value is only valid if the sector port status is PORT_AVAILABLE.java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.UNKNOWN,
portStatus(),
portPercentages(),
portMcicValues()public int[] portPercentages()
throws java.lang.Exception
UNKNOWN if not known.
The return value is only valid if the sector port status is PORT_AVAILABLE.java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.UNKNOWN,
portStatus(),
portAmounts(),
portMcicValues()public int[] portMcicValues()
throws java.lang.Exception
UNKNOWN if not known.
The return value is only valid if the sector port status is PORT_AVAILABLE.java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.UNKNOWN,
portStatus(),
portAmounts(),
portPercentages()public java.util.Date busted()
throws java.lang.Exception
PORT_AVAILABLE.null if not busted.java.lang.ExceptionportStatus()public int warps()
throws java.lang.Exception
java.lang.ExceptionwarpSectors(),
oneWays(),
backdoorSectors()public int[] warpSectors()
throws java.lang.Exception
java.lang.Exceptionwarps(),
oneWays(),
backdoorSectors()public int[] oneWays()
throws java.lang.Exception
ONE_WAY or a BOTH_WAY
indicator for each warp sector.java.lang.Exceptionwarps(),
warpSectors(),
backdoorSectors(),
ONE_WAY,
BOTH_WAYpublic int[] backdoorSectors()
throws java.lang.Exception
java.lang.ExceptionwarpSectors()public int fighters()
throws java.lang.Exception
java.lang.ExceptionftrOwner(),
ftrType(),
ftrTimestamp(),
ftrDestroyed()public Identity ftrOwner() throws java.lang.Exception
java.lang.Exceptionfighters(),
Identity,
Trader,
Corporationpublic int ftrType()
throws java.lang.Exception
java.lang.Exceptionfighters(),
Swath.TOLL_FTRS,
Swath.DEFENSIVE_FTRS,
Swath.OFFENSIVE_FTRS,
Swath.MERCHENARY_FTRSpublic java.util.Date ftrTimestamp()
throws java.lang.Exception
null if not known.java.lang.Exceptionfighters()public Identity ftrDestroyed() throws java.lang.Exception
null if no fighters has been destroyed.java.lang.Exceptionfighters(),
Identity,
Trader,
Corporationpublic int armidMines()
throws java.lang.Exception
java.lang.Exceptionpublic Identity armidOwner() throws java.lang.Exception
java.lang.ExceptionarmidMines(),
Identity,
Trader,
Corporationpublic int limpetMines()
throws java.lang.Exception
java.lang.Exceptionpublic Identity limpetOwner() throws java.lang.Exception
java.lang.ExceptionlimpetMines(),
Identity,
Trader,
Corporationpublic int density()
throws java.lang.Exception
java.lang.Exceptionpublic boolean anomaly()
throws java.lang.Exception
true if there is an anomaly,
otherwise false.java.lang.Exceptionpublic int navHaz()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isAvoided()
throws java.lang.Exception
true if it is avoided,
otherwise false.java.lang.Exceptionpublic java.lang.String beaconMessage()
throws java.lang.Exception
null if there is no beacon.java.lang.Exceptionpublic java.lang.String sectorNote()
throws java.lang.Exception
null if none.java.lang.ExceptionsetSectorNote(java.lang.String)public void setSectorNote(java.lang.String note)
throws java.lang.Exception
note - The new sector note or null for none.java.lang.ExceptionsectorNote()public Planet[] planets() throws java.lang.Exception
public Trader[] traders() throws java.lang.Exception
public Ship[] ships() throws java.lang.Exception
public Bubble[] bubbles() throws java.lang.Exception
java.lang.ExceptionSwath.getBubbles(int)public void display()
throws java.lang.Exception
java.lang.Exceptiondump()public void dump()
throws java.lang.Exception
java.lang.Exceptiondisplay()