public final class Ship extends Info
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_TWD
The ship has no TransWarp drive.
|
static int |
ONE_SHIP_TWD
The ship has a TransWarp drive for one ship.
|
static int |
TWO_SHIP_TWD
The ship has a TransWarp drive for two ships.
|
| Modifier and Type | Method and Description |
|---|---|
int |
armidMines()
Gets the number of armid mines on the ship.
|
int |
atomicDevices()
Gets the number of atomic detonators on the ship.
|
int |
beacons()
Gets the number of marker beacons on the ship.
|
java.lang.String |
brand()
Gets the brand of the ship.
|
int |
cloakingDevices()
Gets the number of cloaking devices on the ship.
|
java.lang.Object |
clone() |
int |
colonists()
Gets total number of holds with colonists.
|
int |
corbomite()
Gets the number of corbomite transducers on the ship.
|
java.util.Date |
dateBuilt()
Gets the date when the ship was built.
|
void |
display()
Displays this ship in the terminal window.
|
void |
dump()
Dumps the ship info in the terminal window.
|
int |
emptyHolds()
Gets total number of empty holds on the ship.
|
boolean |
equals(java.lang.Object obj) |
int |
equipment()
Gets total number of holds with equipment.
|
int |
etherProbes()
Gets the number of subspace ether probes on the ship.
|
int |
fighters()
Gets the number of fighters on the ship.
|
int |
fuel()
Gets total number of holds with fuel ore.
|
int |
genesisTorpedos()
Gets the number of genesis torpedos on the ship.
|
boolean |
hasDensityScanner()
Indicates if the ship has a density scanner or not.
|
boolean |
hasHoloScanner()
Indicates if the ship has a holographic scanner or not.
|
boolean |
hasInterdictor()
Indicates if the ship has an interdictor generator or not.
|
boolean |
hasPlanetScanner()
Indicates if the ship has a planet scanner or not.
|
boolean |
hasPsychicProbe()
Indicates if the ship has a psychic probe or not.
|
int |
holds()
Gets total number of holds on the ship.
|
int |
id()
Gets the ship identification number.
|
boolean |
isCorpShip()
Indicates if the ship is corporate or personal.
|
boolean |
isDockedAtPort()
Indicates if the ship is docked at the port or not.
|
boolean |
isInterdictorActive()
Indicates if the ship's interdictor generator is active or not.
|
java.util.Date |
lastUpdate()
Gets the timestamp when the ship information was last updated.
|
int |
limpetMines()
Gets the number of limpet mines on the ship.
|
int |
mineDisruptors()
Gets the number of mine disruptors on the ship.
|
java.lang.String |
name()
Gets the name of the ship.
|
int |
oneShipTransWarpRange()
Gets the current range of a one ship TransWarp.
|
Planet |
onPlanet()
If the ship has landed on a planet, this method will return it.
|
int |
organics()
Gets total number of holds with organics.
|
Identity |
owner()
Gets the current owner of the ship.
|
int |
photonMissiles()
Gets the number of photon missiles on the ship.
|
int |
sector()
Gets the sector number where the ship is currently located.
|
int |
shields()
Gets the number of shields on the ship.
|
ShipCategory |
shipCategory()
Gets the ship category.
|
java.lang.String |
toString() |
Ship |
towingShip()
Indicates if the ship is towing another ship or not.
|
int |
transWarpDrive()
Indicates if the ship has a TransWarp drive or not and
gets the type of TransWarp drive if the ship has one.
|
int |
turns2warp()
Gets the current number of turns the ship needs to warp.
|
int |
twoShipTransWarpRange()
Gets the current range of a two ship TransWarp.
|
java.lang.String |
type()
Gets the type of the ship.
|
Trader |
user()
Gets the current user of the ship.
|
public static final int NO_TWD
public static final int ONE_SHIP_TWD
public static final int TWO_SHIP_TWD
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 id()
public java.util.Date lastUpdate()
throws java.lang.Exception
null if never updated.java.lang.Exceptionpublic java.lang.String name()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String type()
throws java.lang.Exception
java.lang.Exceptionpublic ShipCategory shipCategory() throws java.lang.Exception
null if not known.java.lang.Exceptionpublic java.lang.String brand()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Date dateBuilt()
throws java.lang.Exception
null if not known.java.lang.Exceptionpublic int sector()
throws java.lang.Exception
java.lang.Exceptionpublic Trader user() throws java.lang.Exception
public Identity owner() throws java.lang.Exception
java.lang.Exceptionuser(),
isCorpShip(),
Identity,
Trader,
Corporationpublic boolean isCorpShip()
throws java.lang.Exception
true if the ship is corporate, otherwise false.java.lang.Exceptionowner()public Ship towingShip() throws java.lang.Exception
null if none.java.lang.Exceptionpublic int holds()
throws java.lang.Exception
java.lang.Exceptionpublic int fuel()
throws java.lang.Exception
java.lang.Exceptionpublic int organics()
throws java.lang.Exception
java.lang.Exceptionpublic int equipment()
throws java.lang.Exception
java.lang.Exceptionpublic int colonists()
throws java.lang.Exception
java.lang.Exceptionpublic int emptyHolds()
throws java.lang.Exception
java.lang.Exceptionpublic int fighters()
throws java.lang.Exception
java.lang.Exceptionpublic int shields()
throws java.lang.Exception
java.lang.Exceptionpublic int turns2warp()
throws java.lang.Exception
java.lang.Exceptionpublic int transWarpDrive()
throws java.lang.Exception
NO_TWD if none.java.lang.ExceptiononeShipTransWarpRange(),
twoShipTransWarpRange(),
NO_TWD,
ONE_SHIP_TWD,
TWO_SHIP_TWDpublic int oneShipTransWarpRange()
throws java.lang.Exception
ONE_SHIP_TWD or TWO_SHIP_TWD.java.lang.ExceptiontransWarpDrive(),
twoShipTransWarpRange()public int twoShipTransWarpRange()
throws java.lang.Exception
TWO_SHIP_TWD.java.lang.ExceptiontransWarpDrive(),
oneShipTransWarpRange()public int beacons()
throws java.lang.Exception
java.lang.Exceptionpublic int etherProbes()
throws java.lang.Exception
java.lang.Exceptionpublic int armidMines()
throws java.lang.Exception
java.lang.Exceptionpublic int limpetMines()
throws java.lang.Exception
java.lang.Exceptionpublic int mineDisruptors()
throws java.lang.Exception
java.lang.Exceptionpublic int genesisTorpedos()
throws java.lang.Exception
java.lang.Exceptionpublic int atomicDevices()
throws java.lang.Exception
java.lang.Exceptionpublic int photonMissiles()
throws java.lang.Exception
java.lang.Exceptionpublic int corbomite()
throws java.lang.Exception
java.lang.Exceptionpublic int cloakingDevices()
throws java.lang.Exception
java.lang.Exceptionpublic boolean hasPsychicProbe()
throws java.lang.Exception
true if the ship has a psychic probe,
otherwise false.java.lang.Exceptionpublic boolean hasDensityScanner()
throws java.lang.Exception
true if the ship has a density scanner,
otherwise false.java.lang.Exceptionpublic boolean hasHoloScanner()
throws java.lang.Exception
true if the ship has a holographic scanner,
otherwise false.java.lang.Exceptionpublic boolean hasPlanetScanner()
throws java.lang.Exception
true if the ship has a planet scanner,
otherwise false.java.lang.Exceptionpublic boolean hasInterdictor()
throws java.lang.Exception
true if the ship has an interdictor generator,
otherwise false.java.lang.ExceptionisInterdictorActive()public boolean isInterdictorActive()
throws java.lang.Exception
true if the interdictor generator is active,
otherwise false.java.lang.ExceptionhasInterdictor()public boolean isDockedAtPort()
throws java.lang.Exception
true if the ship is docked,
otherwise false.java.lang.Exceptionpublic Planet onPlanet() throws java.lang.Exception
null if not landed or unknown.java.lang.Exceptionpublic void display()
throws java.lang.Exception
java.lang.Exceptiondump()public void dump()
throws java.lang.Exception
java.lang.Exceptiondisplay()