public final class Planet extends Info
Modifier and Type | Method and Description |
---|---|
java.lang.String |
className()
Gets the planet class name.
|
java.lang.Object |
clone() |
int[] |
colonists()
Gets the number of colonists at each product type on the planet
(Fuel Ore, Organics and Equipment).
|
Trader |
creator()
Gets the creator of the planet.
|
int |
dailyFighters()
Gets the daily production of fighters on the planet.
|
int[] |
dailyProduction()
Gets the daily production amount for each product type (Fuel Ore, Organics and Equipment).
|
void |
display()
Displays this planet in the terminal window.
|
void |
dump()
Dumps the planet info in the terminal window.
|
boolean |
equals(java.lang.Object obj) |
int |
fighters()
Gets the number of fighters on the planet.
|
boolean |
hasInterdictor()
Indicates if the planet has an Interdictor generator or not.
|
int |
id()
Gets the planet identification number.
|
boolean |
isCorpPlanet()
Indicates if the planet is corporate or personal.
|
boolean |
isInterdictorActive()
Indicates if the planet's Interdictor generator is active or not.
|
java.util.Date |
lastUpdate()
Gets the timestamp when the planet information was last updated.
|
int |
level()
Gets the current planet level:
0 = No citadel
1 = Citadel
2 = Combat computer
3 = Quasar Cannon
4 = TransWarp drive
5 = Shield generator
6 = Interdictor control
|
int |
militaryLevel()
Gets the current military reaction level (0-100%).
|
java.lang.String |
name()
Gets the name of the planet.
|
Identity |
owner()
Gets the current planet owner.
|
PlanetClass |
planetClass()
Gets the planet class.
|
int[] |
productAmounts()
Gets the amount of products for each product type on the planet
(Fuel Ore, Organics and Equipment).
|
int |
qcAtmosLevel()
Gets the Quasar cannon atmospheric level (0-100%).
|
int |
qcSectorLevel()
Gets the Quasar cannon sector level (0-100%).
|
int |
sector()
Gets the sector number where the planet is currently located.
|
int |
shields()
Gets the number of planetary shields.
|
java.lang.String |
toString() |
int |
transportRange()
Gets the current planet transporter range.
|
int |
treasury()
Gets the amount of credits in the planet treasury.
|
java.lang.String |
type()
Gets the planet class type.
|
int[] |
upgradeAmountsNeeded()
Gets the upgrade amount for each product type and the number
of colonists needed for upgrading the planet to the next level.
|
int |
upgradeStatus()
Gets the current upgrade status of the planet.
|
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
planetClass()
public java.lang.String className() throws java.lang.Exception
java.lang.Exception
planetClass()
public PlanetClass planetClass() throws java.lang.Exception
null
if not known.java.lang.Exception
public int sector() throws java.lang.Exception
java.lang.Exception
public Trader creator() throws java.lang.Exception
public Identity owner() throws java.lang.Exception
java.lang.Exception
creator()
,
isCorpPlanet()
,
Identity
,
Trader
,
Corporation
public boolean isCorpPlanet() throws java.lang.Exception
true
if the planet is corporate, otherwise false
.java.lang.Exception
owner()
public int[] colonists() throws java.lang.Exception
java.lang.Exception
Swath.FUEL_ORE
,
Swath.ORGANICS
,
Swath.EQUIPMENT
public int[] productAmounts() throws java.lang.Exception
java.lang.Exception
dailyProduction()
,
Swath.FUEL_ORE
,
Swath.ORGANICS
,
Swath.EQUIPMENT
public int[] dailyProduction() throws java.lang.Exception
java.lang.Exception
Swath.FUEL_ORE
,
Swath.ORGANICS
,
Swath.EQUIPMENT
public int dailyFighters() throws java.lang.Exception
java.lang.Exception
Swath.FUEL_ORE
,
Swath.ORGANICS
,
Swath.EQUIPMENT
public int fighters() throws java.lang.Exception
java.lang.Exception
dailyFighters()
public int shields() throws java.lang.Exception
java.lang.Exception
level()
public int treasury() throws java.lang.Exception
java.lang.Exception
level()
public int level() throws java.lang.Exception
java.lang.Exception
public int militaryLevel() throws java.lang.Exception
java.lang.Exception
level()
public int qcAtmosLevel() throws java.lang.Exception
java.lang.Exception
level()
public int qcSectorLevel() throws java.lang.Exception
java.lang.Exception
level()
public int transportRange() throws java.lang.Exception
java.lang.Exception
public boolean hasInterdictor() throws java.lang.Exception
true
if the planet 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 int upgradeStatus() throws java.lang.Exception
java.lang.Exception
upgradeAmountsNeeded()
,
UpgradePlanet
public int[] upgradeAmountsNeeded() throws java.lang.Exception
UpgradePlanet
has failed.java.lang.Exception
Swath.FUEL_ORE
,
Swath.ORGANICS
,
Swath.EQUIPMENT
,
Swath.COLONISTS
,
upgradeStatus()
,
UpgradePlanet
public void display() throws java.lang.Exception
java.lang.Exception
dump()
public void dump() throws java.lang.Exception
java.lang.Exception
display()