|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.Info
com.swath.Planet
This class represents a planet in TW.
| Method Summary | |
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. |
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 product 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. 1 planetary shield equals 10 normal 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. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic 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.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.Exception
public int sector()
throws java.lang.Exception
java.lang.Exception
public Trader creator()
throws java.lang.Exception
java.lang.Exceptionowner(),
Trader
public Identity owner()
throws java.lang.Exception
java.lang.Exceptioncreator(),
isCorpPlanet(),
Identity,
Trader,
Corporation
public 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.EQUIPMENT
public int[] productAmounts()
throws java.lang.Exception
java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT
public int fighters()
throws java.lang.Exception
java.lang.Exception
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.Exception
public 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.Exception
public 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(),
UpgradePlanet
public int[] upgradeAmountsNeeded()
throws java.lang.Exception
UpgradePlanet has failed.
java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.COLONISTS,
upgradeStatus(),
UpgradePlanet
public void display()
throws java.lang.Exception
java.lang.Exceptiondump()
public void dump()
throws java.lang.Exception
java.lang.Exceptiondisplay()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||