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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int id()
public java.util.Date lastUpdate() throws java.lang.Exception
null
if never updated.java.lang.Exception
public java.lang.String name() throws java.lang.Exception
java.lang.Exception
public java.lang.String type() throws java.lang.Exception
java.lang.Exception
public ShipCategory shipCategory() throws java.lang.Exception
null
if not known.java.lang.Exception
public java.lang.String brand() throws java.lang.Exception
java.lang.Exception
public java.util.Date dateBuilt() throws java.lang.Exception
null
if not known.java.lang.Exception
public int sector() throws java.lang.Exception
java.lang.Exception
public Trader user() throws java.lang.Exception
public Identity owner() throws java.lang.Exception
java.lang.Exception
user()
,
isCorpShip()
,
Identity
,
Trader
,
Corporation
public boolean isCorpShip() throws java.lang.Exception
true
if the ship is corporate, otherwise false
.java.lang.Exception
owner()
public Ship towingShip() throws java.lang.Exception
null
if none.java.lang.Exception
public int holds() throws java.lang.Exception
java.lang.Exception
public int fuel() throws java.lang.Exception
java.lang.Exception
public int organics() throws java.lang.Exception
java.lang.Exception
public int equipment() throws java.lang.Exception
java.lang.Exception
public int colonists() throws java.lang.Exception
java.lang.Exception
public int emptyHolds() throws java.lang.Exception
java.lang.Exception
public int fighters() throws java.lang.Exception
java.lang.Exception
public int shields() throws java.lang.Exception
java.lang.Exception
public int turns2warp() throws java.lang.Exception
java.lang.Exception
public int transWarpDrive() throws java.lang.Exception
NO_TWD
if none.java.lang.Exception
oneShipTransWarpRange()
,
twoShipTransWarpRange()
,
NO_TWD
,
ONE_SHIP_TWD
,
TWO_SHIP_TWD
public int oneShipTransWarpRange() throws java.lang.Exception
ONE_SHIP_TWD
or TWO_SHIP_TWD
.java.lang.Exception
transWarpDrive()
,
twoShipTransWarpRange()
public int twoShipTransWarpRange() throws java.lang.Exception
TWO_SHIP_TWD
.java.lang.Exception
transWarpDrive()
,
oneShipTransWarpRange()
public int beacons() throws java.lang.Exception
java.lang.Exception
public int etherProbes() throws java.lang.Exception
java.lang.Exception
public int armidMines() throws java.lang.Exception
java.lang.Exception
public int limpetMines() throws java.lang.Exception
java.lang.Exception
public int mineDisruptors() throws java.lang.Exception
java.lang.Exception
public int genesisTorpedos() throws java.lang.Exception
java.lang.Exception
public int atomicDevices() throws java.lang.Exception
java.lang.Exception
public int photonMissiles() throws java.lang.Exception
java.lang.Exception
public int corbomite() throws java.lang.Exception
java.lang.Exception
public int cloakingDevices() throws java.lang.Exception
java.lang.Exception
public boolean hasPsychicProbe() throws java.lang.Exception
true
if the ship has a psychic probe,
otherwise false
.java.lang.Exception
public boolean hasDensityScanner() throws java.lang.Exception
true
if the ship has a density scanner,
otherwise false
.java.lang.Exception
public boolean hasHoloScanner() throws java.lang.Exception
true
if the ship has a holographic scanner,
otherwise false
.java.lang.Exception
public boolean hasPlanetScanner() throws java.lang.Exception
true
if the ship has a planet scanner,
otherwise false
.java.lang.Exception
public boolean hasInterdictor() throws java.lang.Exception
true
if the ship has an interdictor generator,
otherwise false
.java.lang.Exception
isInterdictorActive()
public boolean isInterdictorActive() throws java.lang.Exception
true
if the interdictor generator is active,
otherwise false
.java.lang.Exception
hasInterdictor()
public boolean isDockedAtPort() throws java.lang.Exception
true
if the ship is docked,
otherwise false
.java.lang.Exception
public Planet onPlanet() throws java.lang.Exception
null
if not landed or unknown.java.lang.Exception
public void display() throws java.lang.Exception
java.lang.Exception
dump()
public void dump() throws java.lang.Exception
java.lang.Exception
display()