Class Race

java.lang.Object
  |
  +--Race

public class Race
extends java.lang.Object


Field Summary
protected  int endurance
           
protected  char environtype
           
protected  int[] homeworld
           
protected  boolean isHandtohand
           
protected  boolean isStarFaring
           
protected  java.lang.String name
           
protected  int strength
           
 
Constructor Summary
Race(java.lang.String newname, char newtype, int newstren, int newendur, boolean ctype, boolean isSF, int[] newarray)
          Constructor Method
 
Method Summary
static Race get(java.lang.String Name)
          get(String) returns the race of the same name
 int getEndurance()
          getEndurance() returns the endurance of a race
 char getEnvirontype()
          getEnvirontype() returns the environ type of a race
 boolean getisHandtohand()
          getisHandtohand() returns if the race fights hand to hand in combat
 boolean getisStarFaring()
          getisStarFaring() returns if the race is starfaring
 java.lang.String getName()
          getName() returns the name of a race
 int getStrength()
          getStrength() returns the strength of a race
static void init()
          Init() Initializer of all races in FITG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

environtype

protected char environtype

strength

protected int strength

endurance

protected int endurance

isHandtohand

protected boolean isHandtohand

isStarFaring

protected boolean isStarFaring

homeworld

protected int[] homeworld
Constructor Detail

Race

public Race(java.lang.String newname,
            char newtype,
            int newstren,
            int newendur,
            boolean ctype,
            boolean isSF,
            int[] newarray)
Constructor Method

Parameters:
newname - Race Name
newtype - Environ Type
newstren - Strength
newendur - Endurance
ctype - Is Hand to Hand Creature
isSF - Is Star Faring
newarray - Array of Homeworlds
Method Detail

get

public static Race get(java.lang.String Name)
get(String) returns the race of the same name

Parameters:
Name - Race's name
Returns:
Race

getName

public java.lang.String getName()
getName() returns the name of a race

Returns:
Race's name

getEnvirontype

public char getEnvirontype()
getEnvirontype() returns the environ type of a race

Returns:
Race's Environ Type

getStrength

public int getStrength()
getStrength() returns the strength of a race

Returns:
Race's Strength Rating

getEndurance

public int getEndurance()
getEndurance() returns the endurance of a race

Returns:
Race's Endurance Rating

getisHandtohand

public boolean getisHandtohand()
getisHandtohand() returns if the race fights hand to hand in combat

Returns:
True - Hand to Hand Combat, False - Fire Fight

getisStarFaring

public boolean getisStarFaring()
getisStarFaring() returns if the race is starfaring

Returns:
True - StarFaring Race

init

public static void init()
Init() Initializer of all races in FITG