CMObject, Modifiable, MsgListener, StatsAffecting, Tickable, Race, java.lang.Cloneable, java.lang.Comparable<CMObject>public class GenRace extends StdRace
| Modifier and Type | Field | Description |
|---|---|---|
protected PhyStats |
adjPStats |
|
protected CharState |
adjState |
|
protected CharStats |
adjStats |
|
int[] |
agingChart |
|
protected java.lang.String |
arriveStr |
|
int |
availability |
|
protected static java.lang.String[] |
CODES |
|
protected boolean[] |
culturalAbilityGains |
|
protected int[] |
culturalAbilityLvls |
|
protected java.lang.String[] |
culturalAbilityNames |
|
protected int[] |
culturalAbilityProfs |
|
protected boolean |
destroyBodyAfterUse |
|
protected int |
disableFlags |
|
protected Race |
eventBuddy |
|
long |
forbiddenWornBits |
|
protected Race |
healthBuddy |
|
int |
heightVariance |
|
protected java.lang.String |
helpEntry |
|
protected java.lang.String |
ID |
|
boolean |
isRideable |
|
protected java.lang.String |
leaveStr |
|
int |
lightestWeight |
|
protected java.lang.String |
name |
|
protected int[] |
parts |
|
protected int[] |
racialAbilityLevels |
|
protected java.lang.String[] |
racialAbilityNames |
|
protected java.lang.String[] |
racialAbilityParms |
|
protected int[] |
racialAbilityProfs |
|
protected boolean[] |
racialAbilityQuals |
|
java.lang.String |
racialCategory |
|
protected int[] |
racialEffectLevels |
|
protected java.lang.String[] |
racialEffectNames |
|
protected java.lang.String[] |
racialEffectParms |
|
protected java.util.List<RawMaterial> |
resourceChoices |
|
protected CharStats |
setStats |
|
int |
shortestFemale |
|
int |
shortestMale |
|
protected int[] |
sortedBreathables |
|
protected CharState |
startAdjState |
|
protected Race |
weaponBuddy |
|
int |
weightVariance |
|
int |
xpAdjustmentPct |
|
protected java.lang.String[] |
xtraValues |
AGE_ANCIENT, AGE_CHILD, AGE_DESCS, AGE_INFANT, AGE_MATURE, AGE_MIDDLEAGED, AGE_OLD, AGE_TODDLER, AGE_VENERABLE, AGE_YOUNGADULT, BODY_ANTENNA, BODY_ARM, BODY_EAR, BODY_EYE, BODY_FOOT, BODY_GILL, BODY_HAND, BODY_HEAD, BODY_LEG, BODY_MOUTH, BODY_NECK, BODY_NOSE, BODY_PARTS, BODY_TAIL, BODY_TORSO, BODY_WAIST, BODY_WEARGRID, BODY_WEARVECTOR, BODY_WING, BODYPARTHASH, BODYPARTHASH_RL_LOWER, BODYPARTSTR, GENFLAG_DESCS, GENFLAG_INFATIGUEABLE, GENFLAG_NOCHARM, GENFLAG_NOCLASS, GENFLAG_NOEXP, GENFLAG_NOFERTILE, GENFLAG_NOLEVELS, YEARS_AGE_LIVES_FOREVERabilitiesDesc, baseStatChgDesc, breatheAirArray, breatheAirWaterArray, breatheAnythingArray, breatheWaterArray, dispChgDesc, empty, emptyIDs, languagesDesc, mappedCulturalAbilities, naturalAbilImmunities, naturalWeaponChoices, outfitChoices, racialAbilityMap, racialEffectMap, sensesChgDesc, usageCountSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET| Constructor | Description |
|---|---|
GenRace() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState) |
This method is called by the recoverCharState() method on other MOB objects.
|
void |
affectCharStats(MOB affectedMob,
CharStats affectableStats) |
This method is called by the recoverCharStats() method on other MOB objects.
|
void |
affectPhyStats(Physical affected,
PhyStats affectableStats) |
This method is called by the recoverPhyStats() method on other Environmental objects.
|
java.lang.String |
arriveStr() |
Returns the string describing what folks see when a member of this race enters a room.
|
int |
availabilityCode() |
Returns one or a combination of the Area.THEME_*
constants from the Area interface.
|
int[] |
bodyMask() |
Returns an array indexed by body part codes as defined by
the BODY_* constants in the Race interface.
|
boolean |
classless() |
Whether this race can be associated with a character class.
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
protected boolean[] |
culturalAbilityAutoGains() |
|
protected int[] |
culturalAbilityLevels() |
|
java.lang.String[] |
culturalAbilityNames() |
|
int[] |
culturalAbilityProficiencies() |
|
protected boolean |
destroyBodyAfterUse() |
|
void |
executeMsg(Environmental myHost,
CMMsg msg) |
The general message event handler for the object.
|
boolean |
expless() |
Whether players of this race can gain or lose experience points.
|
boolean |
fertile() |
|
long |
forbiddenWornBits() |
A bitmap showing which on locations a member of this
race can not wear clothing, even if the members have one
or more of the required limbs.
|
int[] |
getAgingChart() |
Returns an integer array equal in size and index to the
Race.AGE_* constants in the Race interface.
|
int[] |
getBreathables() |
Returns resource codes of what this race can breathe as
an atmosphere.
|
protected int |
getCodeNum(java.lang.String code) |
|
Weapon |
getNaturalWeapon() |
Returns a Weapon object representing what a member of this
race fights with when unarmed.
|
protected java.lang.String |
getRaceLocatorID(Race R) |
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
java.lang.String |
getStat(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[] |
getStatCodes() |
Returns an array of the string names of those fields which are modifiable on this object at run-time by
builders.
|
int |
getXPAdjustment() |
Returns the amount, as a positive or negative % to adjust all experience gains.
|
java.lang.String |
healthText(MOB viewer,
MOB mob) |
Returns a description of the given mobs description, by
consulting the mobs curState().getHitPoints method.
|
int |
heightVariance() |
The amount from 0-this to add to the minimum height
to achieve a random height.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
infatigueable() |
Whether mobs of this race can gain fatigue points.
|
boolean |
isGeneric() |
Whether this race object represents a Generic Race, or one which is modifiable by
builders at run-time.
|
java.lang.String |
leaveStr() |
Returns the string describing what folks see when a member of this race leaves a room.
|
boolean |
leveless() |
Whether players of this race can be associated with an experience level.
|
int |
lightestWeight() |
The lightest weight for a member of this race
|
Race |
makeGenRace() |
Converts this race to a generic race (if it isn't already)
and returns it.
|
java.util.List<RawMaterial> |
myResources() |
Returns a list of RawMaterial objects (usually GenFoodResource, GenLiquidResource,
or GenResource items) representing what is left over of a member of this race
after they've been butchered and cut up.
|
java.lang.String |
name() |
Return a nice, displayable name for this race
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
int |
practicesAtFirstLevel() |
|
protected int[] |
racialAbilityLevels() |
|
protected java.lang.String[] |
racialAbilityNames() |
|
java.lang.String[] |
racialAbilityParms() |
|
protected int[] |
racialAbilityProficiencies() |
|
protected boolean[] |
racialAbilityQuals() |
|
java.lang.String |
racialCategory() |
Which racial category this race falls in.
|
protected int[] |
racialEffectLevels() |
|
protected java.lang.String[] |
racialEffectNames() |
|
protected java.lang.String[] |
racialEffectParms() |
|
java.lang.String |
racialParms() |
If this race is modifiable at run time, this method will return an xml document
describing the several attributes of this race.
|
boolean |
sameAs(Race E) |
|
void |
setRacialParms(java.lang.String parms) |
If this race is modifiable at run time, this method will use the given xml document
describing the several attributes of this race to populate this races fields and attributes.
|
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.
|
int |
shortestFemale() |
The minimum height of females of this race.
|
int |
shortestMale() |
The minimum height of males of this race.
|
void |
startRacing(MOB mob,
boolean verifyOnly) |
After a mob is set or changed to a new race, this method
should be called to finalize or initialize any settings
from this race.
|
boolean |
tick(Tickable ticking,
int tickID) |
this is the method which is called periodically by the threading engine.
|
int |
trainsAtFirstLevel() |
|
void |
unaffectCharStats(MOB affectedMob,
CharStats affectableStats) |
This method is called by the recoverCharStats() method on other Stats Affecting objects,
when those objects are altering the Race away from this current race object to something
else.
|
protected boolean |
uncharmable() |
|
boolean |
useRideClass() |
Whether this race is usually rideable; helps determine the appropriate java class to use.
|
int |
weightVariance() |
The amount from 0-this to add to the minumum weight
to achieve a random weight.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabilityImmunities, adjustExperienceGain, agingAffects, canBreedWith, cleanOutfit, clrStatChgDesc, compareTo, culturalAbilities, getAbilitiesDesc, getCorpseContainer, getDispositionChgDesc, getHumanoidWeapons, getLanguagesDesc, getNaturalWeapons, getPracAdjDesc, getSensesChgDesc, getStatAdjDesc, getTickStatus, getTrainAdjDesc, giveMobAbility, giveMobAbility, grantAbilities, grantAbilities, healthBuddy, initializeClass, isStat, L, level, makeMobName, makeResource, makeResource, makeStatChgDesc, mapCulturalAbilities, mixRace, numRacialEffects, outfit, racialAbilities, racialEffects, racialEffectsList, setHeightWeight, usageCountprotected java.lang.String ID
protected java.lang.String name
public int availability
public int[] agingChart
protected java.lang.String[] xtraValues
public boolean isRideable
public int shortestMale
public int shortestFemale
public int heightVariance
public int lightestWeight
public int weightVariance
public int xpAdjustmentPct
public long forbiddenWornBits
public java.lang.String racialCategory
protected int disableFlags
protected CharStats setStats
protected CharStats adjStats
protected PhyStats adjPStats
protected CharState adjState
protected CharState startAdjState
protected java.util.List<RawMaterial> resourceChoices
protected Race healthBuddy
protected Race eventBuddy
protected Race weaponBuddy
protected java.lang.String helpEntry
protected java.lang.String[] racialEffectNames
protected int[] racialEffectLevels
protected java.lang.String[] racialEffectParms
protected java.lang.String[] racialAbilityNames
protected int[] racialAbilityLevels
protected int[] racialAbilityProfs
protected boolean[] racialAbilityQuals
protected java.lang.String[] racialAbilityParms
protected java.lang.String[] culturalAbilityNames
protected int[] culturalAbilityProfs
protected int[] culturalAbilityLvls
protected boolean[] culturalAbilityGains
protected int[] sortedBreathables
protected boolean destroyBodyAfterUse
protected java.lang.String arriveStr
protected java.lang.String leaveStr
protected int[] parts
protected static java.lang.String[] CODES
public java.lang.String ID()
CMObjectpublic java.lang.String name()
Racepublic int practicesAtFirstLevel()
practicesAtFirstLevel in class StdRacepublic int trainsAtFirstLevel()
trainsAtFirstLevel in class StdRacepublic long forbiddenWornBits()
RaceforbiddenWornBits in interface RaceforbiddenWornBits in class StdRaceItempublic java.lang.String racialCategory()
RaceracialCategory in interface RaceracialCategory in class StdRacepublic boolean isGeneric()
Racepublic int getXPAdjustment()
RacegetXPAdjustment in interface RacegetXPAdjustment in class StdRacepublic int shortestFemale()
RaceshortestFemale in interface RaceshortestFemale in class StdRacepublic int heightVariance()
RaceheightVariance in interface RaceheightVariance in class StdRacepublic int lightestWeight()
RacelightestWeight in interface RacelightestWeight in class StdRacepublic int weightVariance()
RaceweightVariance in interface RaceweightVariance in class StdRacepublic int shortestMale()
RaceshortestMale in interface RaceshortestMale in class StdRacepublic boolean classless()
Racepublic boolean leveless()
Racepublic boolean expless()
Racepublic boolean infatigueable()
Raceinfatigueable in interface Raceinfatigueable in class StdRaceprotected boolean uncharmable()
uncharmable in class StdRacepublic int[] bodyMask()
Racepublic int availabilityCode()
RaceavailabilityCode in interface RaceavailabilityCode in class StdRaceAreapublic int[] getAgingChart()
RacegetAgingChart in interface RacegetAgingChart in class StdRaceRaceprotected java.lang.String[] racialEffectNames()
racialEffectNames in class StdRaceprotected int[] racialEffectLevels()
racialEffectLevels in class StdRaceprotected java.lang.String[] racialEffectParms()
racialEffectParms in class StdRacepublic int[] getBreathables()
RacegetBreathables in interface RacegetBreathables in class StdRaceRawMaterialpublic boolean useRideClass()
RaceuseRideClass in interface RaceuseRideClass in class StdRaceprotected java.lang.String[] racialAbilityNames()
racialAbilityNames in class StdRaceprotected int[] racialAbilityLevels()
racialAbilityLevels in class StdRaceprotected int[] racialAbilityProficiencies()
racialAbilityProficiencies in class StdRaceprotected boolean[] racialAbilityQuals()
racialAbilityQuals in class StdRacepublic java.lang.String[] racialAbilityParms()
racialAbilityParms in class StdRacepublic java.lang.String[] culturalAbilityNames()
culturalAbilityNames in class StdRacepublic int[] culturalAbilityProficiencies()
culturalAbilityProficiencies in class StdRaceprotected int[] culturalAbilityLevels()
culturalAbilityLevels in class StdRaceprotected boolean[] culturalAbilityAutoGains()
culturalAbilityAutoGains in class StdRaceprotected boolean destroyBodyAfterUse()
destroyBodyAfterUse in class StdRacepublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectnewInstance in class StdRacepublic CMObject copyOf()
CMObjectpublic Weapon getNaturalWeapon()
RacegetNaturalWeapon in interface RacegetNaturalWeapon in class StdRaceWeapon,
Race.getNaturalWeapons()public java.lang.String arriveStr()
Racepublic java.lang.String leaveStr()
Racepublic Race makeGenRace()
RacemakeGenRace in interface RacemakeGenRace in class StdRacepublic java.lang.String healthText(MOB viewer, MOB mob)
RacehealthText in interface RacehealthText in class StdRaceviewer - the mob observing the health of this onemob - the mob whose health to checkMOB.curState(),
CharState.getHitPoints()public void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffectingaffectPhyStats in interface StatsAffectingaffectPhyStats in class StdRaceaffected - the host of the PhyStats object being affectedaffectableStats - the particular PhyStats object being affectedPhyStats,
Environmental,
Affectable.basePhyStats(),
Affectable.phyStats(),
Affectable.recoverPhyStats()public void affectCharStats(MOB affectedMob, CharStats affectableStats)
StatsAffectingaffectCharStats in interface StatsAffectingaffectCharStats in class StdRaceaffectedMob - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()public void unaffectCharStats(MOB affectedMob, CharStats affectableStats)
RaceunaffectCharStats in interface RaceunaffectCharStats in class StdRaceaffectedMob - the mob of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
StatsAffecting,
StatsAffecting.affectCharStats(MOB, CharStats)public void affectCharState(MOB affectedMob, CharState affectableMaxState)
StatsAffectingaffectCharState in interface StatsAffectingaffectCharState in class StdRaceaffectedMob - the host of the CharState object being affectedaffectableMaxState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()public java.util.List<RawMaterial> myResources()
RacemyResources in interface RacemyResources in class StdRaceRawMaterialprotected java.lang.String getRaceLocatorID(Race R)
public java.lang.String racialParms()
RaceracialParms in interface RaceracialParms in class StdRaceRace.isGeneric(),
Race.setRacialParms(String)public void setRacialParms(java.lang.String parms)
RacesetRacialParms in interface RacesetRacialParms in class StdRaceparms - an xml document describing this raceRace.isGeneric(),
Race.racialParms()public java.lang.String getStat(java.lang.String code)
ModifiablegetStat in interface ModifiablegetStat in class StdRacecode - the name of the field to read.Modifiable.getStatCodes()public boolean tick(Tickable ticking, int tickID)
Tickabletick in interface Tickabletick in class StdRaceticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in TickableTickable,
ServiceEngine,
TickableGrouppublic void executeMsg(Environmental myHost, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdRacemyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenerokMessage in class StdRacemyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg,
CMMsg.source()public void startRacing(MOB mob, boolean verifyOnly)
RacestartRacing in interface RacestartRacing in class StdRacemob - the mob or player being set to this raceverifyOnly - true flag unless this is a new player characterpublic void setStat(java.lang.String code,
java.lang.String val)
ModifiablesetStat in interface ModifiablesetStat in class StdRacecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public int getSaveStatIndex()
ModifiablegetSaveStatIndex in interface ModifiablegetSaveStatIndex in class StdRaceModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
ModifiablegetStatCodes in interface ModifiablegetStatCodes in class StdRaceModifiable.getStat(String),
Modifiable.setStat(String, String)protected int getCodeNum(java.lang.String code)
getCodeNum in class StdRace