java.lang.Object | +--Planet
| Constructor Summary | |
Planet(int i,
java.lang.String nam,
char p,
int sr,
int a,
int n,
Environ[] environList,
Orbit orbit)
Constructor Method |
|
Planet(int i,
java.lang.String nam,
java.lang.String r,
int sr,
int a,
int n,
Environ[] environList,
Orbit orbit)
Constructor Method |
|
| Method Summary | |
void |
checkActualControl()
checkActualControl() Checks and Modifies which Player has Actual Control |
void |
checkPlanetControl()
checkPlanetControl() Checks and Modifies which Player has Planet Control |
java.util.Vector |
ChoiceList(java.util.Vector availablePlanets,
int shift)
ChoiceList(Vector, int) |
void |
deLoyalty(int shift)
deLoyalty(int) Applies Domino Effect if Loyalty Shift is more then 2 |
static Planet |
get(int id)
get(int) Returns Planet with matching ID |
static Planet |
get(java.lang.String s)
get(String) Returns Planet matching Name |
int |
getActualControl()
getActualControl() returns who actually controls the planet |
boolean |
getdeAvailable()
getdeAvailable() Returns if able to apply Domino Effect |
java.util.Vector |
getEnvirons()
getEnvirons() returns a vector containing all the environs on the lanet |
int |
getID()
getID() returns the ID number |
boolean |
getisPDBUp()
getPDBState() returns whether the PDB is up or down |
int |
getLoyalty()
getLoyalty() returns the loyalty level of the planet |
java.lang.String |
getName()
getPlanet() returns the Planet name |
int |
getNumEnvirons()
numEnvirons() returns the number of environs (int) on the planet |
Orbit |
getOrbit()
|
int |
getPDBLevel()
getPDBLevel() returns the PDB level of the planet |
int |
getPlanetControl()
getPlanetControl() returns the planet's state |
Environ[] |
getPlanetEnvirons()
getPlanetEnvirons() returns an array (as opposed to a vector) of contained environs |
java.util.Vector |
getPlanetStarFaringRaces()
getPlanetStarFaringRaces() Returns a list of StarFaring Races on Planet |
int |
getRebellionState()
getRebellionState() returns the Rebellion state |
StarSystem |
getSystem()
getSystem() returns the Planet's StarSystem |
boolean |
hasMissionChars(char side)
hasMissionChars() decides whether the planet has characters on it on the selected side |
boolean |
hasRace(java.lang.String race)
hasRace(String) Returns if a race is on a planet |
static void |
imperialControl()
|
static void |
init()
init() Intializes all planets |
void |
isInSystem(StarSystem s)
StarSystem calls this when it is being created, please do not call it! |
boolean |
PDBdetectionRoutine(Spaceship ship)
|
static void |
rebelControl()
|
static void |
rebellionStoppedControl()
|
void |
setActualControl(int newActualControl)
setActualControl(int) Sets new actual control |
void |
setdeAvailable(boolean change)
setdeAvailable() Returns if able to apply Domino Effect |
static void |
setisPDBUp(boolean newPDBState)
setPDBState(boolean) Raises or lowers the PDB |
void |
setLoyalty(int newLoyalty)
setLoyalty(int) sets the loyalty level of the planet |
static void |
setPDBLevel(int newPDBLevel)
setPDBLevel(int) sets the PDB level of the planet |
void |
setPlanetControl(int newPlanetControl)
setPlanetControl(int) sets new control of planet |
void |
setRebellion()
setRebellion(); sets a planets state such that the planet is in rebellion |
void |
setRebellionState(int newRebellionState)
setRebellionState(int) sets the Rebellion state |
static void |
startRebellionControl()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Planet(int i,
java.lang.String nam,
java.lang.String r,
int sr,
int a,
int n,
Environ[] environList,
Orbit orbit)
i - Planet IDnam - Planet Namea - Armagedon Loyaltyn - No. of Environ
public Planet(int i,
java.lang.String nam,
char p,
int sr,
int a,
int n,
Environ[] environList,
Orbit orbit)
i - Planet IDnam - Planet Namep - Political Statusa - Armagedon Loyaltyn - No. of Environ| Method Detail |
public static Planet get(int id)
id - Planet's ID Number
public static Planet get(java.lang.String s)
s - Planet Name
public java.lang.String getName()
public int getID()
public int getNumEnvirons()
public java.util.Vector getEnvirons()
public Environ[] getPlanetEnvirons()
public StarSystem getSystem()
public Orbit getOrbit()
public void isInSystem(StarSystem s)
public static void imperialControl()
public static void startRebellionControl()
public static void rebelControl()
public static void rebellionStoppedControl()
public int getPlanetControl()
public int getActualControl()
public int getLoyalty()
public int getPDBLevel()
public boolean getisPDBUp()
public int getRebellionState()
public boolean getdeAvailable()
public void setPlanetControl(int newPlanetControl)
public void setActualControl(int newActualControl)
public void setLoyalty(int newLoyalty)
public static void setPDBLevel(int newPDBLevel)
newPDBLevel - New PDB Levelpublic static void setisPDBUp(boolean newPDBState)
newPDBState - True - Raise Shield, False - Lower Shieldpublic void setRebellionState(int newRebellionState)
newRebellionState - 0 - None, 1 - Rebellion Start, 2 - Rebellion Stoppedpublic void setRebellion()
public void setdeAvailable(boolean change)
public void checkPlanetControl()
public void checkActualControl()
public void deLoyalty(int shift)
shift - -1 - Imperial Favored Shift, 1 - Rebel Favored Shift
public java.util.Vector ChoiceList(java.util.Vector availablePlanets,
int shift)
availablePlanets - List (Vector) of planets available for Domino Effectshift - -1 Imperial Favor, 1 Rebel Favor
public java.util.Vector getPlanetStarFaringRaces()
public boolean hasRace(java.lang.String race)
race - Race searching for
public boolean hasMissionChars(char side)
public static void init()
public boolean PDBdetectionRoutine(Spaceship ship)