public final class PlanetClass extends Info
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int[] |
colos2build1()
Gets the number of colonists needed to build one unit of each
product type (Fuel Ore, Organics and Equipment).
|
int |
colos2build1ftr()
Gets the number of colonists needed to build one fighter.
|
void |
dump()
Dumps the planet class info in the terminal window.
|
boolean |
equals(java.lang.Object obj) |
int[] |
maxAmounts()
Gets the maximum amount of products that the planet class can have
for each product type (Fuel Ore, Organics and Equipment).
|
int[] |
maxColonists()
Gets the maximum number of colonists that the planet can contain for each product type (Fuel Ore, Organics and Equipment).
|
int |
maxFighters()
Gets the maximum amount of fighters that the planet can have.
|
java.lang.String |
name()
Gets the planet class name.
|
int[] |
optimalColonists()
Gets the optimal number of colonists for each product type (Fuel Ore, Organics and Equipment).
|
java.lang.String |
toString() |
java.lang.String |
type()
Gets the planet class type.
|
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 java.lang.String type()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String name()
throws java.lang.Exception
java.lang.Exceptionpublic int[] colos2build1()
throws java.lang.Exception
N_A if the product
can't be built on this kind of planet.java.lang.Exceptioncolos2build1ftr(),
Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.N_Apublic int colos2build1ftr()
throws java.lang.Exception
N_A if no fighters
can be built on this kind of planet.java.lang.Exceptioncolos2build1(),
Swath.N_Apublic int[] maxAmounts()
throws java.lang.Exception
java.lang.ExceptionmaxFighters(),
Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENTpublic int maxFighters()
throws java.lang.Exception
java.lang.ExceptionmaxAmounts()public int[] maxColonists()
throws java.lang.Exception
N_A if the maximum number of colonists is not available.java.lang.ExceptionoptimalColonists(),
Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.N_Apublic int[] optimalColonists()
throws java.lang.Exception
N_A if the optimal number of colonists is not available.
Having the optimal number of colonists on a planet will ensure the highest production rate.java.lang.ExceptionmaxColonists(),
Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT,
Swath.N_Apublic void dump()
throws java.lang.Exception
java.lang.Exception