java.lang.Object
|
+--Location
|
+--Environ
| Field Summary | |
protected int |
coupRating
|
protected java.lang.String |
creature
|
protected int |
environID
|
protected boolean |
ishighMilUnitLevel
|
protected java.lang.String[] |
races
|
protected boolean |
reactionMoveOK
|
protected int |
resourceRating
|
protected int |
size
|
protected Sovereign |
sovereign
|
protected char |
type
|
| Fields inherited from class Location |
imperialCharGroup, imperialMilGroup, planet, rebelCharGroup, rebelMilGroup |
| Constructor Summary | |
Environ(int id,
char t,
int s,
java.lang.String[] environRaces,
int rating,
boolean highLevel,
java.lang.String environCreature,
int environCoup)
Constructor Method |
|
| Method Summary | |
void |
addCharacter(Charactr c)
addCharacter(Charactr c) adds a character to the environment, placing it in the correct CharacterGroup |
void |
addToMilGroup(MilitaryGroup m,
Unit u)
addToMilGroup() adds a Unit to a MilitaryGroup |
static void |
CombatTest(int number)
|
static Environ |
get(int id)
get(int) Returns Environ with matching ID |
java.lang.String |
getCreature()
getCreature returns the name of the creature in that environ |
java.util.Vector |
getEnvironStarFaringRaces()
getEnvironStarFaringRaces() Returns a list of StarFaring Races in Environ |
java.lang.String |
getRace(int i)
|
boolean |
getReactionMoveOK()
getReactionMoveOK() returns true if a reaction move is allowed; false otherwise |
int |
getSize()
getSize() returns the size (int) of the environ (number of military units the environ can hold) |
java.lang.String |
getStringType()
getStringType() returns the type (String) of the environ (urban, wild, etc.) |
char |
getType()
getType() returns the type (char) of the environ (urban, wild, etc.) |
boolean |
hasMissionChars(char side)
hasMissionChars() decides whether the environ has characters on it on the selected side |
boolean |
hasRace(java.lang.String race)
hasRace(String) Returns if a race is in an environ |
static void |
init()
init() Initialize all Environ in game |
java.lang.String |
name()
|
void |
removeCharacter(Charactr c)
remove Character() removes a character from the environment |
java.lang.String |
removetype(java.lang.String race)
|
static void |
search(int PlayerTurn,
Environ SEnviron)
|
static void |
search(int PlayerTurn,
java.util.Vector planetVector)
|
void |
setPlanet(Planet p)
setPlanet() "joins" a planet |
void |
setReactionMoveOK(boolean b)
getReactionMoveOK() returns true if a reaction move is allowed; false otherwise |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int environID
protected char type
protected int size
protected java.lang.String[] races
protected int resourceRating
protected boolean ishighMilUnitLevel
protected boolean reactionMoveOK
protected java.lang.String creature
protected Sovereign sovereign
protected int coupRating
| Constructor Detail |
public Environ(int id,
char t,
int s,
java.lang.String[] environRaces,
int rating,
boolean highLevel,
java.lang.String environCreature,
int environCoup)
id - ID Numbert - Types - SizeenvironRaces - Races in Environrating - Resourse RatinghighLevel - Allows High level purchasesenvironCreature - CreaturesenvironCoup - Coup Rating| Method Detail |
public static Environ get(int id)
id - Environ ID Number
public int getSize()
public char getType()
public java.lang.String getStringType()
public java.lang.String getRace(int i)
public boolean getReactionMoveOK()
public java.lang.String getCreature()
public void addToMilGroup(MilitaryGroup m,
Unit u)
public void addCharacter(Charactr c)
public void removeCharacter(Charactr c)
public void setReactionMoveOK(boolean b)
public void setPlanet(Planet p)
setPlanet in class Locationp - Planetpublic java.lang.String name()
public java.util.Vector getEnvironStarFaringRaces()
public boolean hasRace(java.lang.String race)
race - Race searching for
public java.lang.String removetype(java.lang.String race)
public static void init()
public static void search(int PlayerTurn,
java.util.Vector planetVector)
public static void search(int PlayerTurn,
Environ SEnviron)
public static void CombatTest(int number)
public boolean hasMissionChars(char side)