|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CharStats
An object to access and change fields representing the varias aspects of a MOB
MOB| Field Summary | |
|---|---|
static int |
NUM_BASE_STATS
constant for number of stat codes 0 - this-1 which are base stats |
static int |
NUM_SAVE_START
constant for first stat code which is a saving throw |
static int |
NUM_STATS
constant for total number of stat codes |
static java.lang.String[] |
STAT_ABBR
string array of abbreviations of each stat code, ordered by numeric value |
static int |
STAT_AGE
stat constant for age |
static int |
STAT_CHARISMA
stat constant for constitution |
static int |
STAT_CONSTITUTION
stat constant for constitution |
static java.lang.String[] |
STAT_DESC_ATTS
string array of attributable descriptions of each stat code, ordered by numeric value |
static java.lang.String[] |
STAT_DESCS
string array of descriptions of each stat code, ordered by numeric value |
static int |
STAT_DEXTERITY
stat constant for dexterity |
static int |
STAT_FAITH
constant for total number of stat codes |
static int |
STAT_GENDER
stat constant for gender |
static int |
STAT_INTELLIGENCE
stat constant for intelligence |
static int |
STAT_MAX_CHARISMA_ADJ
stat constant for mac charisma adjustment |
static int |
STAT_MAX_CONSTITUTION_ADJ
stat constant for nax constitution adjustment |
static int |
STAT_MAX_DEXTERITY_ADJ
stat constant for max dextity adjustment |
static int |
STAT_MAX_INTELLIGENCE_ADJ
stat constant for max intelligence adjustment |
static int |
STAT_MAX_STRENGTH_ADJ
stat constant for max strength adjustment |
static int |
STAT_MAX_WISDOM_ADJ
stat constant for max wisdom adjustment |
static int[] |
STAT_MSG_MAP
an appropriate CMMsg MSG type to correspond to the given saving throw, indexed as STAT_SAVE_ constant |
static java.lang.String[] |
STAT_NAMES
string array of descriptions of each stat code, ordered by numeric value |
static int |
STAT_SAVE_ACID
stat constant for save vs acid |
static int |
STAT_SAVE_COLD
stat constant for save vs cold |
static int |
STAT_SAVE_DETECTION
stat constant for save vs detection when hiding |
static int |
STAT_SAVE_DISEASE
stat constant for save vs disease |
static int |
STAT_SAVE_ELECTRIC
stat constant for save vs electricity |
static int |
STAT_SAVE_FIRE
stat constant for save vs fire |
static int |
STAT_SAVE_GAS
stat constant for save vs gas |
static int |
STAT_SAVE_GENERAL
stat constant for save vs somethingelse |
static int |
STAT_SAVE_JUSTICE
stat constant for save vs humiliation |
static int |
STAT_SAVE_MAGIC
stat constant for save vs magic |
static int |
STAT_SAVE_MIND
stat constant for save vs mind attacks/illusion |
static int |
STAT_SAVE_OVERLOOKING
stat constant for save vs overlooking hidden things |
static int |
STAT_SAVE_PARALYSIS
stat constant for save vs paralysis |
static int |
STAT_SAVE_POISON
stat constant for save vs poison |
static int |
STAT_SAVE_TRAPS
stat constant for save vs traps |
static int |
STAT_SAVE_UNDEAD
stat constant for save vs undead attacks |
static int |
STAT_SAVE_WATER
stat constant for save vs water |
static int |
STAT_STRENGTH
stat constant for strength |
static int |
STAT_WISDOM
stat constant for charisma |
static int |
VALUE_ALLSTATS_DEFAULT
stat constant for strength |
| Method Summary | |
|---|---|
int |
ageCategory()
Returns the age category for this mob, based on the age stat constant stored here. |
java.lang.String |
ageName()
Returns the string name of the age category for this mob, based on the age stat constant stored here. |
void |
alterBodypart(int racialPartNumber,
int number)
Alter the number of a given body part which this mob has. |
int |
combinedSubLevels()
Returns the combined number of class levels the mob has in all of his classes, except for the current one. |
void |
copyInto(CharStats intoStats)
Copies the internal data of this object into another of kind. |
java.lang.String |
displayClassLevel(MOB mob,
boolean shortForm)
Returns a combination of the displayClassName and displayClassLevel for the given mob. |
java.lang.String |
displayClassLevelOnly(MOB mob)
Returns either the given mobs authentic classlevel/total level, or the value set through setDisplayClassLevel method. |
java.lang.String |
displayClassName()
Returns the displayable name of this mobs current class. |
java.lang.String |
genderName()
Returns the apparant gender of the mob. |
int |
getBodyPart(int racialPartNumber)
Return the number of a given body part which this mob has. |
int |
getBodypartAlteration(int racialPartNumber)
Check the difference between the number of a given body part which this mob has and the number he or she should have. |
java.lang.String |
getBodyPartsAsString()
Returns the entire current body part situation as a string list. |
int |
getClassLevel(CharClass aClass)
Returns the number of levels this mob has in the given character class. |
int |
getClassLevel(java.lang.String aClass)
Returns the number of levels this mob has in the given character class by name. |
int |
getCode(java.lang.String abilityName)
This method cross-references the given stat name string with the STAT_DESCS string list in the CharStats interface to return the STAT_ constant which the given string represents. |
CharClass |
getCurrentClass()
Returns the CharClass object for this mob which corresponds to the the final index. |
int |
getCurrentClassLevel()
Returns the number of levels that this mob has in the CharClass object which corresponds to the final index. |
CharClass |
getMyClass(int i)
Returns the CharClass object for this mob which corresponds to the the given index. |
java.lang.String |
getMyClassesStr()
Returns the enumerated set of character class names stored here as a semicolon list of string names |
java.lang.String |
getMyLevelsStr()
Returns the enumerated set of character class levels stored here as a semicolon list of levels. |
Race |
getMyRace()
Returns the race of the mob. |
int |
getSave(int which)
Uses the saving throw stats stored here the the mob, modified by basic attributes, to return a final Saving Throw value for this mob. |
java.lang.String |
getSavesAsString()
Get saving throw and max stat info as an semicolon string list. |
int |
getStat(int statNum)
Get the value of one of the STAT_ constants, representing attributes, saving throws, and max attributes, from the CharStats interface. |
int |
getStat(java.lang.String abilityName)
Get the value of one of the mob stats, representing attributes, saving throws, and max attributes, from the CharStats interface. |
long |
getWearableRestrictionsBitmap()
Returns the sum of local and race-based unwearability codes. |
java.lang.String |
heshe()
Based on the apparant gender of the mob, return the appropriate word "he", "she", or "it". |
java.lang.String |
HeShe()
Based on the apparant gender of the mob, return the appropriate word "He", "She", or "It". |
java.lang.String |
himher()
Based on the apparant gender of the mob, return the appropriate word "him", "her", or "it". |
java.lang.String |
hisher()
Based on the apparant gender of the mob, return the appropriate word "his", "her", or "its". |
boolean |
isLevelCapped(CharClass C)
Returns true if this user is capped by the given classes level cap (if one exists) |
int |
numClasses()
Returns the number of character classes that this mob has 0 or more levels in. |
java.lang.String |
raceName()
Returns the displayable name of this mobs current race. |
void |
setAllBaseValues(int def)
Resets all of the basic 1-6 stats in this object, to the same given value |
void |
setAllValues(int def)
Resets all of the stats in this object, attributes and saves alike, to the same given value |
void |
setBodyPartsFromStringAfterRace(java.lang.String str)
Sets the body part situation for this mob from a string list. |
void |
setClassLevel(CharClass aClass,
int level)
Changes the number of class levels the mob has in the given character class to the given level. |
void |
setCurrentClass(CharClass aClass)
Adds the character class to the mob to the given class, automatically making the class level 0, and making the class current. |
void |
setCurrentClassLevel(int level)
Sets the current class level for the mob to the given level. |
void |
setDisplayClassLevel(java.lang.String newlevel)
Changes the apparant level of ths mob by setting a new name. |
void |
setDisplayClassName(java.lang.String newname)
Changes the apparant char class of ths mob by setting a new name. |
void |
setGenderName(java.lang.String gname)
Sets the apparant gender of the mob. |
void |
setMyClasses(java.lang.String classes)
Creates the enumerated set of character class objects stored here from a semicolon list of string names |
void |
setMyLevels(java.lang.String levels)
Creates the enumerated set of character class levels stored here from a semicolon list of levels. |
void |
setMyRace(Race newVal)
Sets the race of the mob. |
void |
setPermanentStat(int statNum,
int value)
Set one of the basic attributes to a given value. |
void |
setRaceName(java.lang.String newRaceName)
Changes the apparant race of ths mob by setting a new name. |
void |
setRacialStat(int statNum,
int value)
Set one of the basic attributes to approx the value. |
void |
setSavesFromString(java.lang.String str)
set saving throw and max stat info from a semicolon string list. |
void |
setStat(int statNum,
int value)
Set the value of one of the STAT_ constants, representing attributes, saving throws, and max attributes, from the CharStats interface. |
void |
setWearableRestrictionsBitmap(long bitmap)
Sets the sum of local and race-based unwearability codes. |
java.lang.String |
sirmadam()
Based on the apparant gender of the mob, return the appropriate word "sir", "madam", or "sir". |
java.lang.String |
SirMadam()
Based on the apparant gender of the mob, return the appropriate word "Sir", "Madam", or "Sir". |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final int VALUE_ALLSTATS_DEFAULT
static final int STAT_STRENGTH
static final int STAT_INTELLIGENCE
static final int STAT_DEXTERITY
static final int STAT_CONSTITUTION
static final int STAT_CHARISMA
static final int STAT_WISDOM
static final int NUM_BASE_STATS
static final int STAT_GENDER
static final int NUM_SAVE_START
static final int STAT_SAVE_PARALYSIS
static final int STAT_SAVE_FIRE
static final int STAT_SAVE_COLD
static final int STAT_SAVE_WATER
static final int STAT_SAVE_GAS
static final int STAT_SAVE_MIND
static final int STAT_SAVE_GENERAL
static final int STAT_SAVE_JUSTICE
static final int STAT_SAVE_ACID
static final int STAT_SAVE_ELECTRIC
static final int STAT_SAVE_POISON
static final int STAT_SAVE_UNDEAD
static final int STAT_SAVE_MAGIC
static final int STAT_SAVE_DISEASE
static final int STAT_SAVE_TRAPS
static final int STAT_MAX_STRENGTH_ADJ
static final int STAT_MAX_INTELLIGENCE_ADJ
static final int STAT_MAX_DEXTERITY_ADJ
static final int STAT_MAX_CONSTITUTION_ADJ
static final int STAT_MAX_CHARISMA_ADJ
static final int STAT_MAX_WISDOM_ADJ
static final int STAT_AGE
static final int STAT_SAVE_DETECTION
static final int STAT_SAVE_OVERLOOKING
static final int STAT_FAITH
static final int NUM_STATS
static final java.lang.String[] STAT_ABBR
static final java.lang.String[] STAT_DESCS
static final java.lang.String[] STAT_NAMES
static final java.lang.String[] STAT_DESC_ATTS
static final int[] STAT_MSG_MAP
| Method Detail |
|---|
void copyInto(CharStats intoStats)
intoStats - another CharStats object.int getStat(int statNum)
statNum - which STAT_ constant to get a value for
CharStatsint getStat(java.lang.String abilityName)
abilityName - name of which constant to get a value for
CharStats,
STAT_DESCS
void setStat(int statNum,
int value)
statNum - which STAT_ constant to get a value forvalue - the value of the given STATCharStats
void setPermanentStat(int statNum,
int value)
statNum - which STAT_ constant to get a value forvalue - the value of the given STATCharStats
void setRacialStat(int statNum,
int value)
statNum - which STAT_ constant to get an approx value forvalue - the value of the max, and approxvalue of the given STATCharStatsint getCode(java.lang.String abilityName)
abilityName - name of which constant to determine the STAT_ constant for
CharStatsint getSave(int which)
which - which STAT_SAVE_ constant from CharStats interface to use
CharStatsjava.lang.String getSavesAsString()
void setSavesFromString(java.lang.String str)
str - semicolon stringint getBodyPart(int racialPartNumber)
racialPartNumber - the BODY_ constant from Race interface
Race
void alterBodypart(int racialPartNumber,
int number)
racialPartNumber - the BODY_ constant from Race interfacenumber - the amount to change by, positive or negativeRaceint getBodypartAlteration(int racialPartNumber)
racialPartNumber - the BODY_ constant from Race interface
Racejava.lang.String getBodyPartsAsString()
void setBodyPartsFromStringAfterRace(java.lang.String str)
str - the string list representing the body part situationint numClasses()
CharClass getMyClass(int i)
i - the index into the charclass list.
CharClassCharClass getCurrentClass()
numClasses(),
CharClassint getCurrentClassLevel()
numClasses()void setMyClasses(java.lang.String classes)
classes - the semicolon list of character class namesvoid setMyLevels(java.lang.String levels)
levels - the semicolon list of levelsjava.lang.String getMyClassesStr()
java.lang.String getMyLevelsStr()
void setCurrentClass(CharClass aClass)
aClass - The charclass object to set the current class togetCurrentClass(),
CharClassvoid setCurrentClassLevel(int level)
level - The chararacter class level to set the current class toint getClassLevel(CharClass aClass)
aClass - the CharClass object to check
CharClassint getClassLevel(java.lang.String aClass)
aClass - the name of the Character Class to check
CharClassint combinedSubLevels()
boolean isLevelCapped(CharClass C)
C - the class to check
CharClass.getLevelCap()
void setClassLevel(CharClass aClass,
int level)
aClass - the character class to set a level forlevel - the level to set for the given character classsetCurrentClass(CharClass),
CharClassRace getMyRace()
Racevoid setMyRace(Race newVal)
newVal - the Race of the mobRace.startRacing(MOB, boolean),
Racejava.lang.String raceName()
Race,
setRaceName(String)void setRaceName(java.lang.String newRaceName)
newRaceName - the name of the mobs apparant raceRace,
setRaceName(String)void setDisplayClassName(java.lang.String newname)
newname - the name of the mobs apparant current classCharClass,
displayClassName(),
displayClassLevel(MOB, boolean),
displayClassLevelOnly(MOB)void setDisplayClassLevel(java.lang.String newlevel)
newlevel - the name of the mobs apparant levelCharClass,
displayClassName(),
displayClassLevel(MOB, boolean),
displayClassLevelOnly(MOB),
setDisplayClassName(String)java.lang.String displayClassName()
CharClass,
setDisplayClassName(String),
displayClassLevel(MOB, boolean),
displayClassLevelOnly(MOB)
java.lang.String displayClassLevel(MOB mob,
boolean shortForm)
mob - the mob whose class and overall level to displayshortForm - if true, display only the class and level, no extra wording
CharClass,
displayClassName(),
setDisplayClassName(String),
displayClassLevelOnly(MOB)java.lang.String displayClassLevelOnly(MOB mob)
mob - the mob whose class and overall level to display
CharClass,
displayClassName(),
setDisplayClassName(String),
displayClassLevel(MOB, boolean)void setAllValues(int def)
def - the value to set all stats to.void setAllBaseValues(int def)
def - the value to set all stats to.long getWearableRestrictionsBitmap()
Itemvoid setWearableRestrictionsBitmap(long bitmap)
bitmap - a bitmap of unwearable locationsItemvoid setGenderName(java.lang.String gname)
gname - the name of the mobs gender to displaygenderName()java.lang.String genderName()
setGenderName(String)java.lang.String himher()
java.lang.String hisher()
java.lang.String heshe()
java.lang.String HeShe()
java.lang.String sirmadam()
java.lang.String SirMadam()
int ageCategory()
Racejava.lang.String ageName()
Race.AGE_DESCS
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||