|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.beings.races.Race
Implements all the basic data for a race. Races include attribute modifiers, racial skills and other details for members of that race. Races form the basis for all further data that a being is made up from.
| Constructor Summary | |
|---|---|
Race(java.lang.String name,
java.lang.String attribute,
int hpPercentage,
int pwPercentage,
int dvMod,
int pvMod,
int speedMod,
int stMod,
int leMod,
int wiMod,
int dxMod,
int toMod,
int chMod,
int apMod,
int maMod,
int peMod,
int xpMod,
Gender[] genders)
Instantiates a new type of race. |
|
| Method Summary | |
|---|---|
int |
getAttributeModifier(int index)
Returns the attribute modifier for a given attribute. |
int |
getBasicAttribute(int attribute)
Returns a basic attribute value for a given atribute and a member of this race. |
int |
getDVModifier()
Returns the DV modifier of the given race. |
int |
getExperienceModifier()
|
int |
getHpPercentageModifier()
|
static Race |
getPCRace(int index)
Returns a specific race by index. |
static Race[] |
getPCRaces()
Returns an array of the available PC races. |
Gender[] |
getPermittedGenders()
Returns an array of the permitted genders for this race. |
int |
getPVModifier()
Returns the PV modifier of the given race. |
int |
getPwPercentageModifier()
|
java.lang.String |
getRaceAttribute()
Returns the racial attribute for this race. |
int |
getSpeedModifier()
|
java.lang.String |
toString()
Returns the name of the race. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Race(java.lang.String name,
java.lang.String attribute,
int hpPercentage,
int pwPercentage,
int dvMod,
int pvMod,
int speedMod,
int stMod,
int leMod,
int wiMod,
int dxMod,
int toMod,
int chMod,
int apMod,
int maMod,
int peMod,
int xpMod,
Gender[] genders)
name - the name of the raceattribute - the attribute descriptor for members of this racehpPercentage - the hit point modifier (in percent)pwPercentage - the power point modifier (in percent)dvMod - the absolute DV modifierpvMod - the absolute PV modifierspeedMod - the absolute speed modifierstMod - the absolute strength modifier for members of this raceleMod - the absolute learning modifier for members of this racewiMod - the absolute willpower modifier for members of this racedxMod - the absolute dexterity modifier for members of this racetoMod - the absolute toughness modifier for members of this racechMod - the absolute charisma modifier for members of this raceapMod - the absolute appearance modifier for members of this racemaMod - the absolute mana modifier for members of this racepeMod - the absolute perception modifier for members of this racexpMod - the experience point modifier (in percent)| Method Detail |
|---|
public int getBasicAttribute(int attribute)
attribute - the basic attribute value to be determined
public int getAttributeModifier(int index)
index - the index of the attribute
public java.lang.String toString()
toString in class java.lang.Objectpublic static Race[] getPCRaces()
public static Race getPCRace(int index)
index - the index of the race
public Gender[] getPermittedGenders()
public java.lang.String getRaceAttribute()
public int getPVModifier()
public int getDVModifier()
public int getHpPercentageModifier()
public int getPwPercentageModifier()
public int getSpeedModifier()
public int getExperienceModifier()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||