|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.Info
com.swath.PlanetClass
This class represents a planet class in TW.
| Method Summary | |
java.lang.Object |
clone()
|
int[] |
colos2build1()
Gets the number of colonists needed to build one unit of each product type (Fuel Ore, Organics, Equipment and Fighters). |
void |
dump()
Dumps the planet class info in the terminal window. |
boolean |
equals(java.lang.Object obj)
|
int[] |
maxAmounts()
Gets the maximum amount of product that the planet class can have for each product type (Fuel Ore, Organics, Equipment and Fighters). |
java.lang.String |
name()
Gets the planet class name. |
java.lang.String |
toString()
|
java.lang.String |
type()
Gets the planet class type. |
| 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.CloneNotSupportedException
public java.lang.String type()
throws java.lang.Exception
java.lang.Exception
public java.lang.String name()
throws java.lang.Exception
java.lang.Exception
public int[] colos2build1()
throws java.lang.Exception
N_A if the product
can't be built on this kind of planet.
java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.FIGHTERS,
Swath.N_A
public int[] maxAmounts()
throws java.lang.Exception
java.lang.ExceptionSwath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.FIGHTERS
public void dump()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||