CharStats
, CMCommon
, CMObject
, Modifiable
, Deity.DeityWorshipper
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class DefaultCharStats extends java.lang.Object implements CharStats
CharStats.CODES
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
arriveStr |
|
protected short[] |
bodyAlterations |
|
protected int[] |
breathables |
|
protected java.lang.String |
deityName |
|
protected java.lang.String |
displayClassLevel |
|
protected java.lang.String |
displayClassName |
|
protected java.lang.String |
genderName |
|
protected java.lang.String |
leaveStr |
|
protected CharClass[] |
myClasses |
|
protected java.lang.Integer[] |
myLevels |
|
protected Race |
myRace |
|
protected java.util.Map<java.lang.String,java.lang.Integer> |
profAdj |
|
protected DoubleFilterer<Item>[] |
proficiencies |
|
protected java.lang.String |
raceName |
|
protected short[] |
stats |
|
protected long |
unwearableBitmap |
|
protected java.lang.String |
worshipCharID |
DEFAULT_NUM_STATS, DEFAULT_STAT_ABBR, DEFAULT_STAT_DESC_ATTS, DEFAULT_STAT_DESCS, DEFAULT_STAT_MSG_MAP, DEFAULT_STAT_NAMES, STAT_AGE, STAT_CHARISMA, STAT_CONSTITUTION, STAT_CRIT_CHANCE_PCT_MAGIC, STAT_CRIT_CHANCE_PCT_WEAPON, STAT_CRIT_DAMAGE_PCT_MAGIC, STAT_CRIT_DAMAGE_PCT_WEAPON, STAT_DEXTERITY, STAT_FAITH, STAT_GENDER, STAT_INTELLIGENCE, STAT_MAX_CHARISMA_ADJ, STAT_MAX_CONSTITUTION_ADJ, STAT_MAX_DEXTERITY_ADJ, STAT_MAX_INTELLIGENCE_ADJ, STAT_MAX_STRENGTH_ADJ, STAT_MAX_WISDOM_ADJ, STAT_RECOVERRATE5_ADJ, STAT_SAVE_ACID, STAT_SAVE_BLUNT, STAT_SAVE_CHANTS, STAT_SAVE_COLD, STAT_SAVE_DETECTION, STAT_SAVE_DISEASE, STAT_SAVE_DOUBT, STAT_SAVE_ELECTRIC, STAT_SAVE_FIRE, STAT_SAVE_GAS, STAT_SAVE_GENERAL, STAT_SAVE_JUSTICE, STAT_SAVE_MAGIC, STAT_SAVE_MIND, STAT_SAVE_OVERLOOKING, STAT_SAVE_PARALYSIS, STAT_SAVE_PIERCE, STAT_SAVE_POISON, STAT_SAVE_PRAYERS, STAT_SAVE_SLASH, STAT_SAVE_SONGS, STAT_SAVE_SPELLS, STAT_SAVE_TRAPS, STAT_SAVE_UNDEAD, STAT_SAVE_WATER, STAT_STRENGTH, STAT_WEIGHTADJ, STAT_WISDOM, STAT_XP_ADJ_PCT, VALUE_ALLSTATS_DEFAULT
idConverter
Constructor | Description |
---|---|
DefaultCharStats() |
Modifier and Type | Method | Description |
---|---|---|
void |
addItemDeficiency(java.lang.String zapperMask) |
Adds a new weapon or armor deficiency, compiling it into
the deficiency filter.
|
void |
addItemProficiency(java.lang.String zapperMask) |
Adds a new weapon or armor proficiency, compiling it into
the proficiency filter.
|
void |
adjStat(int statNum,
int value) |
Adjusts the value of one of the STAT_ constants, representing attributes,
saving throws, and max attributes, from the CharStats interface.
|
void |
adjustAbilityAdjustment(java.lang.String ableID,
int newValue) |
Sets the adjustments to mob abilities, whether proficiency or
something else numeric.
|
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 deviation) |
Alter the number of a given body part which this mob has.
|
java.lang.String |
boygirl() |
Based on the apparent gender of the mob, return the appropriate word "Boy", "Girl", or "Child".
|
int |
combinedLevels() |
|
int |
combinedSubLevels() |
Returns the combined number of class levels the mob has in all of his classes,
except for the current one.
|
int |
compareTo(CMObject o) |
|
void |
copyInto(CharStats intoStats) |
Copies the internal data of this object into another of kind.
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
java.lang.String |
deityName() |
Returns the displayable name of this mobs current deity.
|
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 apparent gender of the mob.
|
int |
getAbilityAdjustment(java.lang.String ableID) |
Returns the adjustments to mob abilities, whether proficiency or
something else numeric.
|
java.lang.String |
getArriveStr() |
Returns the term seen when a character arrives into a room
By default, these come from the current
actual race, unless set to something new.
|
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[] |
getBreathables() |
Returns resource codes of what this race can breathe as
an atmosphere.
|
java.util.Collection<CharClass> |
getCharClasses() |
Returns all CharClass objects for this mob.
|
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.
|
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.
|
DoubleFilterer<Item>[] |
getItemProficiencies() |
Returns the list of special weapon or armor proficiencies,
or special detriments, that this character has.
|
java.lang.String |
getLeaveStr() |
Returns the term seen when a character leaves a room
By default, these come from the current
actual race, unless set to something new.
|
int |
getMaxStat(int abilityCode) |
A method that simply calculates the nomimal max of the given
ordinary stat code from available data.
|
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
|
Deity |
getMyDeity() |
Returns the Deity object of the mob that this player/mob worships.
|
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.
|
java.lang.String |
getNonBaseStatsAsString() |
Get saving throw and max stat info as an semicolon string list.
|
int |
getRacialStat(MOB mob,
int statNum) |
Get one of the basic attributes after racial adjustment.
|
int |
getSave(int which) |
Uses the saving throw stats stored here the mob, modified by basic attributes,
to return a final Saving Throw value for this mob.
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
int |
getStat(int abilityCode) |
Get the value of one of the STAT_ constants, representing attributes,
saving throws, and max attributes, from the CharStats interface.
|
java.lang.String |
getStat(java.lang.String abilityName) |
An alternative means of retreiving the values of those fields on this object which are modifiable at
run-time by builders.
|
int |
getStatCode(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.
|
java.lang.String[] |
getStatCodes() |
Returns an array of the string names of those fields which are modifiable on this object at run-time by
builders.
|
long |
getWearableRestrictionsBitmap() |
Returns the sum of local and race-based unwearability codes.
|
java.lang.String |
getWorshipCharID() |
Returns the name of the Deity mob that this player/mob worships.
|
java.lang.String |
heshe() |
Based on the apparent gender of the mob, return the appropriate word "he", "she", or "it".
|
java.lang.String |
HeShe() |
Based on the apparent gender of the mob, return the appropriate word "He", "She", or "It".
|
java.lang.String |
himher() |
Based on the apparent gender of the mob, return the appropriate word "him", "her", or "it".
|
java.lang.String |
himherself() |
Based on the apparent gender of the mob, return the appropriate word "himself", "herself", or "itself".
|
java.lang.String |
hisher() |
Based on the apparent gender of the mob, return the appropriate word "his", "her", or "its".
|
java.lang.String |
hisherself() |
Based on the apparent gender of the mob, return the appropriate word "hisself", "herself", or "itself".
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isLevelCapped(CharClass C) |
Returns true if this user is capped by the given
classes level cap (if one exists)
|
boolean |
isStat(java.lang.String code) |
An alternative means of retreiving the values of those fields on this object which are modifiable at
run-time by builders.
|
java.lang.String |
manwoman() |
Based on the apparent gender of the mob, return the appropriate word "Man", "Woman", or "Man".
|
java.lang.String |
MisterMadam() |
Based on the apparent gender of the mob, return the appropriate word "Mister", or "Madam".
|
java.lang.String |
MrMs() |
Based on the apparent gender of the mob, return the appropriate word "Mr.", or "Ms.".
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
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.
|
java.lang.String |
realGenderName() |
Returns the gender of the mob.
|
char |
reproductiveCode() |
Based on the gender of the mob, returns M, N, or F, reflective
of reproductive role.
|
void |
reset() |
Resets all the stats in this object to their factory defaults.
|
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 |
setArriveLeaveStr(java.lang.String arriveStr,
java.lang.String leaveStr) |
Changes the terms seen when a character arrives into a room
and leaves it.
|
void |
setBodyPartsFromStringAfterRace(java.lang.String str) |
Sets the body part situation for this mob from a string list.
|
void |
setBreathables(int[] newArray) |
Sets resource codes of what this race can breathe as
an atmosphere.
|
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 |
setDeityName(java.lang.String newDeityName) |
Changes the apparent deity of ths mob by setting a new name.
|
void |
setDisplayClassLevel(java.lang.String newLevel) |
Changes the apparent level of ths mob by setting a new name.
|
void |
setDisplayClassName(java.lang.String newName) |
Changes the apparent char class of ths mob by setting a new name.
|
void |
setGenderName(java.lang.String gname) |
Sets the apparent gender of the mob.
|
void |
setItemProficiencies(DoubleFilterer<Item>[] newArray) |
Sets the list of special weapon or armor proficiencies,
or special detriments, that this character has.
|
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 |
setNonBaseStatsFromString(java.lang.String str) |
set saving throw and max stat info from a semicolon string list.
|
void |
setPermanentStat(int abilityCode,
int value) |
Set one of the basic attributes to a given value.
|
void |
setRaceName(java.lang.String newRaceName) |
Changes the apparent race of ths mob by setting a new name.
|
void |
setRacialStat(int abilityCode,
int racialMax) |
Set one of the basic attributes to approx the value.
|
void |
setStat(int abilityCode,
int value) |
Set the value of one of the STAT_ constants, representing attributes,
saving throws, and max attributes, from the CharStats interface.
|
void |
setStat(java.lang.String code,
java.lang.String val) |
An alternative means of setting the values of those fields on this object which are modifiable at
run-time by builders.
|
void |
setWearableRestrictionsBitmap(long bitmap) |
Sets the sum of local and race-based unwearability codes.
|
void |
setWorshipCharID(java.lang.String newVal) |
Sets the name of the Deity mob that this player/mob worships.
|
java.lang.String |
sirmadam() |
Based on the apparent gender of the mob, return the appropriate word "sir", "madam", or "sir".
|
java.lang.String |
SirMadam() |
Based on the apparent gender of the mob, return the appropriate word "Sir", "Madam", or "Sir".
|
java.lang.String |
sondaughter() |
Based on the apparent gender of the mob, return the appropriate word "Son", "Daughter", or "Child".
|
protected short[] stats
protected CharClass[] myClasses
protected java.lang.Integer[] myLevels
protected Race myRace
protected java.lang.String raceName
protected java.lang.String genderName
protected java.lang.String displayClassName
protected java.lang.String displayClassLevel
protected java.lang.String worshipCharID
protected java.lang.String deityName
protected short[] bodyAlterations
protected long unwearableBitmap
protected int[] breathables
protected java.lang.String arriveStr
protected java.lang.String leaveStr
protected java.util.Map<java.lang.String,java.lang.Integer> profAdj
protected DoubleFilterer<Item>[] proficiencies
public java.lang.String ID()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public void setAllBaseValues(int def)
CharStats
setAllBaseValues
in interface CharStats
def
- the value to set all stats to.public void setAllValues(int def)
CharStats
setAllValues
in interface CharStats
def
- the value to set all stats to.public void reset()
CharStats
public void copyInto(CharStats intoStats)
CharStats
public void setMyClasses(java.lang.String classes)
CharStats
setMyClasses
in interface CharStats
classes
- the semicolon list of character class namespublic void setMyLevels(java.lang.String levels)
CharStats
setMyLevels
in interface CharStats
levels
- the semicolon list of levelspublic java.lang.String getMyClassesStr()
CharStats
getMyClassesStr
in interface CharStats
public java.lang.String getMyLevelsStr()
CharStats
getMyLevelsStr
in interface CharStats
public java.lang.String getArriveStr()
CharStats
getArriveStr
in interface CharStats
Race
,
CharStats.setArriveLeaveStr(String,String)
public java.lang.String getLeaveStr()
CharStats
getLeaveStr
in interface CharStats
Race
,
CharStats.setArriveLeaveStr(String,String)
public java.lang.String getWorshipCharID()
Deity.DeityWorshipper
getWorshipCharID
in interface Deity.DeityWorshipper
Deity.DeityWorshipper.setWorshipCharID(String)
,
Deity.DeityWorshipper.getMyDeity()
,
Deity.DeityWorshipper.setDeityName(String)
,
Deity.DeityWorshipper.deityName()
public void setWorshipCharID(java.lang.String newVal)
Deity.DeityWorshipper
setWorshipCharID
in interface Deity.DeityWorshipper
newVal
- the name of the Deity mob that this player/mob worships.Deity.DeityWorshipper.setWorshipCharID(String)
,
Deity.DeityWorshipper.getMyDeity()
,
Deity.DeityWorshipper.deityName()
public void setDeityName(java.lang.String newDeityName)
Deity.DeityWorshipper
setDeityName
in interface Deity.DeityWorshipper
newDeityName
- the name of the mobs apparent deityDeity.DeityWorshipper.deityName()
public java.lang.String deityName()
Deity.DeityWorshipper
deityName
in interface Deity.DeityWorshipper
Deity.DeityWorshipper.getWorshipCharID()
,
Deity.DeityWorshipper.setWorshipCharID(String)
,
Deity.DeityWorshipper.getMyDeity()
public Deity getMyDeity()
Deity.DeityWorshipper
getMyDeity
in interface Deity.DeityWorshipper
Deity.DeityWorshipper.getWorshipCharID()
,
Deity.DeityWorshipper.setWorshipCharID(String)
,
Deity.DeityWorshipper.deityName()
public void setArriveLeaveStr(java.lang.String arriveStr, java.lang.String leaveStr)
CharStats
setArriveLeaveStr
in interface CharStats
arriveStr
- the arrive stringleaveStr
- the leave stringRace
,
CharStats.getArriveStr()
,
CharStats.getLeaveStr()
public long getWearableRestrictionsBitmap()
CharStats
getWearableRestrictionsBitmap
in interface CharStats
Item
public void setWearableRestrictionsBitmap(long bitmap)
CharStats
setWearableRestrictionsBitmap
in interface CharStats
bitmap
- a bitmap of unwearable locationsItem
public int numClasses()
CharStats
numClasses
in interface CharStats
public int combinedSubLevels()
CharStats
combinedSubLevels
in interface CharStats
public int combinedLevels()
public void setDisplayClassName(java.lang.String newName)
CharStats
setDisplayClassName
in interface CharStats
newName
- the name of the mobs apparent current classCharClass
,
CharStats.displayClassName()
,
CharStats.displayClassLevel(MOB, boolean)
,
CharStats.displayClassLevelOnly(MOB)
public java.lang.String displayClassName()
CharStats
displayClassName
in interface CharStats
CharClass
,
CharStats.setDisplayClassName(String)
,
CharStats.displayClassLevel(MOB, boolean)
,
CharStats.displayClassLevelOnly(MOB)
public void setDisplayClassLevel(java.lang.String newLevel)
CharStats
setDisplayClassLevel
in interface CharStats
newLevel
- the name of the mobs apparent levelCharClass
,
CharStats.displayClassName()
,
CharStats.displayClassLevel(MOB, boolean)
,
CharStats.displayClassLevelOnly(MOB)
,
CharStats.setDisplayClassName(String)
public java.lang.String displayClassLevel(MOB mob, boolean shortForm)
CharStats
displayClassLevel
in interface CharStats
mob
- the mob whose class and overall level to displayshortForm
- if true, display only the class and level, no extra wordingCharClass
,
CharStats.displayClassName()
,
CharStats.setDisplayClassName(String)
,
CharStats.displayClassLevelOnly(MOB)
public java.lang.String displayClassLevelOnly(MOB mob)
CharStats
displayClassLevelOnly
in interface CharStats
mob
- the mob whose class and overall level to displayCharClass
,
CharStats.displayClassName()
,
CharStats.setDisplayClassName(String)
,
CharStats.displayClassLevel(MOB, boolean)
public java.lang.String getNonBaseStatsAsString()
CharStats
getNonBaseStatsAsString
in interface CharStats
public void setNonBaseStatsFromString(java.lang.String str)
CharStats
setNonBaseStatsFromString
in interface CharStats
str
- semicolon stringpublic void setRaceName(java.lang.String newRaceName)
CharStats
setRaceName
in interface CharStats
newRaceName
- the name of the mobs apparent raceRace
,
CharStats.raceName()
public java.lang.String raceName()
CharStats
raceName
in interface CharStats
Race
,
CharStats.setRaceName(String)
public CharClass getMyClass(int i)
CharStats
getMyClass
in interface CharStats
i
- the index into the charclass list.CharClass
public int getClassLevel(java.lang.String aClass)
CharStats
getClassLevel
in interface CharStats
aClass
- the name of the Character Class to checkCharClass
public int getClassLevel(CharClass aClass)
CharStats
getClassLevel
in interface CharStats
aClass
- the CharClass object to checkCharClass
public void setClassLevel(CharClass aClass, int level)
CharStats
setClassLevel
in interface CharStats
aClass
- the character class to set a level forlevel
- the level to set for the given character classCharStats.setCurrentClass(CharClass)
,
CharClass
public boolean isLevelCapped(CharClass C)
CharStats
isLevelCapped
in interface CharStats
C
- the class to checkCharClass.getLevelCap()
public void setCurrentClassLevel(int level)
CharStats
setCurrentClassLevel
in interface CharStats
level
- The chararacter class level to set the current class topublic void setCurrentClass(CharClass aClass)
CharStats
setCurrentClass
in interface CharStats
aClass
- The charclass object to set the current class toCharStats.getCurrentClass()
,
CharClass
public CharClass getCurrentClass()
CharStats
getCurrentClass
in interface CharStats
CharStats.numClasses()
,
CharStats.getCharClasses()
,
CharClass
public java.util.Collection<CharClass> getCharClasses()
CharStats
getCharClasses
in interface CharStats
CharStats.numClasses()
,
CharClass
public int getCurrentClassLevel()
CharStats
getCurrentClassLevel
in interface CharStats
CharStats.numClasses()
public Race getMyRace()
CharStats
public void setMyRace(Race newVal)
CharStats
setMyRace
in interface CharStats
newVal
- the Race of the mobRace.startRacing(MOB, boolean)
,
Race
public int[] getBreathables()
CharStats
getBreathables
in interface CharStats
RawMaterial
,
CharStats.setBreathables(int[])
public void setBreathables(int[] newArray)
CharStats
setBreathables
in interface CharStats
newArray
- a list of resource codes that this race can breatheRawMaterial
,
CharStats.getBreathables()
public int getBodyPart(int racialPartNumber)
CharStats
getBodyPart
in interface CharStats
racialPartNumber
- the BODY_ constant from Race interfaceRace
public java.lang.String getBodyPartsAsString()
CharStats
getBodyPartsAsString
in interface CharStats
public void setBodyPartsFromStringAfterRace(java.lang.String str)
CharStats
setBodyPartsFromStringAfterRace
in interface CharStats
str
- the string list representing the body part situationpublic int getBodypartAlteration(int racialPartNumber)
CharStats
getBodypartAlteration
in interface CharStats
racialPartNumber
- the BODY_ constant from Race interfaceRace
public void alterBodypart(int racialPartNumber, int deviation)
CharStats
alterBodypart
in interface CharStats
racialPartNumber
- the BODY_ constant from Race interfacedeviation
- the amount to change by, positive or negativeRace
public int ageCategory()
CharStats
ageCategory
in interface CharStats
Race
public java.lang.String ageName()
CharStats
ageName
in interface CharStats
Race.AGE_DESCS
public int getSave(int which)
CharStats
public CMObject copyOf()
CMObject
public int getAbilityAdjustment(java.lang.String ableID)
CharStats
getAbilityAdjustment
in interface CharStats
ableID
- the ability ID, with an appropriate prefixpublic void adjustAbilityAdjustment(java.lang.String ableID, int newValue)
CharStats
adjustAbilityAdjustment
in interface CharStats
ableID
- the ability ID, with an appropriate prefixnewValue
- the numeric value associated with the adjustment.public void setGenderName(java.lang.String gname)
CharStats
setGenderName
in interface CharStats
gname
- the name of the mobs gender to displayCharStats.genderName()
,
CharStats.realGenderName()
public char reproductiveCode()
CharStats
reproductiveCode
in interface CharStats
public java.lang.String realGenderName()
CharStats
realGenderName
in interface CharStats
CharStats.setGenderName(String)
public java.lang.String genderName()
CharStats
genderName
in interface CharStats
CharStats.setGenderName(String)
public java.lang.String himher()
CharStats
public java.lang.String hisher()
CharStats
public java.lang.String himherself()
CharStats
himherself
in interface CharStats
public java.lang.String hisherself()
CharStats
hisherself
in interface CharStats
public java.lang.String heshe()
CharStats
public java.lang.String sirmadam()
CharStats
public java.lang.String SirMadam()
CharStats
public java.lang.String MrMs()
CharStats
public java.lang.String MisterMadam()
CharStats
MisterMadam
in interface CharStats
public java.lang.String manwoman()
CharStats
public java.lang.String sondaughter()
CharStats
sondaughter
in interface CharStats
public java.lang.String boygirl()
CharStats
public java.lang.String HeShe()
CharStats
public int getStat(int abilityCode)
CharStats
public void setPermanentStat(int abilityCode, int value)
CharStats
setPermanentStat
in interface CharStats
abilityCode
- which STAT_ constant to get a value forvalue
- the value of the given STATCharStats
public int getMaxStat(int abilityCode)
CharStats
getMaxStat
in interface CharStats
abilityCode
- (str, int, etc)public int getRacialStat(MOB mob, int statNum)
CharStats
getRacialStat
in interface CharStats
mob
- the mob to get adjustments forstatNum
- which STAT_ constant to getCharStats
public void setRacialStat(int abilityCode, int racialMax)
CharStats
setRacialStat
in interface CharStats
abilityCode
- which STAT_ constant to get an approx value forracialMax
- the value of the max, and approxvalue of the given STATCharStats
public void setStat(int abilityCode, int value)
CharStats
public void adjStat(int statNum, int value)
CharStats
public int getStatCode(java.lang.String abilityName)
CharStats
getStatCode
in interface CharStats
abilityName
- name of which constant to determine the STAT_ constant forCharStats
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String getStat(java.lang.String abilityName)
Modifiable
getStat
in interface Modifiable
abilityName
- the name of the field to read.Modifiable.getStatCodes()
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public DoubleFilterer<Item>[] getItemProficiencies()
CharStats
getItemProficiencies
in interface CharStats
CharStats.setItemProficiencies(DoubleFilterer[])
public void setItemProficiencies(DoubleFilterer<Item>[] newArray)
CharStats
setItemProficiencies
in interface CharStats
newArray
- a list of proficiency or deficiency codesCharStats.getItemProficiencies()
,
CharStats.addItemDeficiency(String)
,
CharStats.addItemProficiency(String)
public void addItemProficiency(java.lang.String zapperMask)
CharStats
addItemProficiency
in interface CharStats
zapperMask
- the zapper maskCharStats.getItemProficiencies()
,
CharStats.addItemDeficiency(String)
,
MaskingLibrary
public void addItemDeficiency(java.lang.String zapperMask)
CharStats
addItemDeficiency
in interface CharStats
zapperMask
- the zapper maskCharStats.getItemProficiencies()
,
CharStats.addItemProficiency(String)
,
MaskingLibrary