|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--Unit
|
+--Charactr
This class models all aspects of Characters, both the cardboard "unit" and the card used in missions and combat. The reason it is not named Character is to avoid a name conflict with java.lang. You can read more about class Charactr in the design documentation.
| Field Summary | |
protected char |
groupType
|
protected java.util.Vector |
MiliUnit
|
protected Spaceship |
ship
|
protected char |
side
|
| Fields inherited from class Unit |
combat, environ, group, isChar, moved, name, orbit, unitType |
| Constructor Summary | |
Charactr(char s,
java.lang.String nm,
int com,
int spaclead,
Environ env)
|
|
Charactr(char s,
java.lang.String nm,
int com,
int spaclead,
Environ env,
java.lang.String hp,
java.lang.String t,
java.lang.String r,
java.lang.String sd,
java.lang.String iu,
int e,
int i,
int le,
int d,
int nv,
int li,
boolean pil)
This constructor initializes the attributes of a FITG character by inputting those values explicitly |
|
Charactr(java.lang.String input)
This constructor initializes the attributes of a FITG character by inputing and parsing a String, implicitly from the charactr data file. |
|
Charactr(java.lang.String inputString,
int dummyvariable)
This constructor takes the string from the varu-or-whatever.dat file and looks up the rest of the info according to that Note that the dummyvariable just gives this a different function header from the above but actually serves no purpose! |
|
| Method Summary | |
void |
addMUnitsLed(Charactr c)
|
void |
addPossession(java.lang.Object p)
|
void |
changeLife(int li)
|
boolean |
getAboardShip()
|
java.util.Vector |
getActive(java.util.Vector chara)
|
static Charactr[] |
getCharInitArray()
|
java.lang.String |
getCharName()
|
int |
getDiplomacy()
|
int |
getEndurance()
|
java.lang.String |
getHomePlanet()
|
javax.swing.ImageIcon |
getIcon()
|
java.lang.String |
getIconURL()
|
boolean |
getInPlay()
|
int |
getIntelligence()
|
boolean |
getIsDetected()
|
boolean |
getIsHealing()
|
boolean |
getIsLeader()
|
boolean |
getIsPilot()
|
boolean |
getIsPrisoner()
|
int |
getLeadership()
|
int |
getLife()
|
java.lang.String |
getLocation()
|
java.lang.String |
getLoyalty()
|
java.util.Vector |
getMUnitsLed()
|
int |
getNavigation()
|
java.util.Vector |
getPossessions()
|
java.lang.String |
getRace()
|
Spaceship |
getShip()
|
char |
getSide()
getSide() returns the loyalty (char) of the unit |
int |
getSpaceLeadership()
|
java.lang.String |
getSpecialDraws()
|
java.lang.String |
getTitle()
|
static void |
init()
This method initializes all the characters in FITG (rebel and imperial) and places them into a static array. |
void |
removeLeadMilUnit(MilitaryUnit M)
|
void |
removeMUnitsLed(Charactr c)
|
void |
setAboardShip(boolean b)
|
void |
setInPlay(boolean p)
|
void |
setIsDetected(boolean d)
|
void |
setisHealing(boolean h)
|
void |
setIsLeader(boolean le)
|
void |
setIsPilot(boolean b,
Spaceship s)
|
void |
setIsPrisoner(boolean b)
|
void |
setLeader(MilitaryUnit M)
|
| Methods inherited from class Unit |
getCombat, getEnviron, getGroupType, getMoved, getName, getOrbit, getUnitType, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveShip, moveTo, moveTo, moveToOrbitBox, moveToOrbitBox, moveToOrbitBox, reactionMove, reactionMove, setEnviron, setGroupType, setOrbit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected char groupType
protected char side
protected Spaceship ship
protected java.util.Vector MiliUnit
| Constructor Detail |
public Charactr(char s,
java.lang.String nm,
int com,
int spaclead,
Environ env)
public Charactr(char s,
java.lang.String nm,
int com,
int spaclead,
Environ env,
java.lang.String hp,
java.lang.String t,
java.lang.String r,
java.lang.String sd,
java.lang.String iu,
int e,
int i,
int le,
int d,
int nv,
int li,
boolean pil)
public Charactr(java.lang.String input)
public Charactr(java.lang.String inputString,
int dummyvariable)
| Method Detail |
public java.lang.String getCharName()
public java.lang.String getHomePlanet()
public java.lang.String getTitle()
public java.lang.String getRace()
public java.lang.String getLocation()
public java.lang.String getLoyalty()
public char getSide()
Unit
getSide in class Unitpublic int getEndurance()
public int getIntelligence()
public int getLeadership()
public int getSpaceLeadership()
public int getDiplomacy()
public int getNavigation()
public int getLife()
public boolean getIsDetected()
public boolean getInPlay()
public boolean getIsPilot()
public boolean getIsLeader()
public boolean getIsHealing()
public boolean getAboardShip()
public boolean getIsPrisoner()
public java.util.Vector getPossessions()
public java.util.Vector getMUnitsLed()
public javax.swing.ImageIcon getIcon()
public java.lang.String getIconURL()
public java.util.Vector getActive(java.util.Vector chara)
public Spaceship getShip()
public java.lang.String getSpecialDraws()
public static Charactr[] getCharInitArray()
public void changeLife(int li)
public void setIsDetected(boolean d)
public void setInPlay(boolean p)
public void setIsLeader(boolean le)
public void setisHealing(boolean h)
public void addPossession(java.lang.Object p)
public void setLeader(MilitaryUnit M)
public void removeLeadMilUnit(MilitaryUnit M)
public void addMUnitsLed(Charactr c)
public void removeMUnitsLed(Charactr c)
public void setIsPilot(boolean b,
Spaceship s)
public void setAboardShip(boolean b)
public void setIsPrisoner(boolean b)
public static void init()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||