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.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.ExceptionplanetClass()public java.lang.String className()
throws java.lang.Exception
java.lang.ExceptionplanetClass()public PlanetClass planetClass() throws java.lang.Exception
null if not known.java.lang.Exceptionpublic int sector()
throws java.lang.Exception
java.lang.Exceptionpublic Trader creator() throws java.lang.Exception
public Identity owner() throws java.lang.Exception
java.lang.Exceptioncreator(),
isCorpPlanet(),
Identity,
Trader,
Corporationpublic boolean isCorpPlanet()
throws java.lang.Exception
true if the planet is corporate, otherwise false.java.lang.Exceptionowner()public int[] colonists()
throws java.lang.Exception
java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic int[] productAmounts()
throws java.lang.Exception
java.lang.ExceptiondailyProduction(),
Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic int[] dailyProduction()
throws java.lang.Exception
java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic int dailyFighters()
throws java.lang.Exception
java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic int fighters()
throws java.lang.Exception
java.lang.ExceptiondailyFighters()public int shields()
throws java.lang.Exception
java.lang.Exceptionlevel()public int treasury()
throws java.lang.Exception
java.lang.Exceptionlevel()public int level()
throws java.lang.Exception
java.lang.Exceptionpublic int militaryLevel()
throws java.lang.Exception
java.lang.Exceptionlevel()public int qcAtmosLevel()
throws java.lang.Exception
java.lang.Exceptionlevel()public int qcSectorLevel()
throws java.lang.Exception
java.lang.Exceptionlevel()public int transportRange()
throws java.lang.Exception
java.lang.Exceptionpublic boolean hasInterdictor()
throws java.lang.Exception
true if the planet 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 int upgradeStatus()
throws java.lang.Exception
java.lang.ExceptionupgradeAmountsNeeded(),
UpgradePlanetpublic int[] upgradeAmountsNeeded()
throws java.lang.Exception
UpgradePlanet has failed.java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.COLONISTS,
upgradeStatus(),
UpgradePlanetpublic void display()
throws java.lang.Exception
java.lang.Exceptiondump()public void dump()
throws java.lang.Exception
java.lang.Exceptiondisplay()