CMObject
, Modifiable
, MsgListener
, StatsAffecting
, Tickable
, Race
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
Aarakocran
, AirElemental
, Animal
, Arachnid
, Avariel
, Bat
, Bear
, Beaver
, Beholder
, Bird
, Birdman
, Bullywug
, Cat
, Centaur
, Centipede
, Chicken
, Cow
, Crab
, Cricket
, Deer
, Deva
, Dog
, Doll
, Draconian
, Dragon
, Drider
, Dryad
, Dwarf
, EarthElemental
, ElectricityElemental
, Elf
, Equine
, FaerieDragon
, Fido
, FireElemental
, Fish
, Fox
, Frog
, GenRace
, Giant
, GiantAnimal
, GiantInsect
, GiantLizard
, GiantScorpion
, GiantSpider
, GiantTurtle
, GiantWorm
, Gnoll
, Gnome
, Goat
, Goblin
, Grasshopper
, GreatAmphibian
, GreatBird
, GreatCat
, GreatLizard
, GrizzlyBear
, HalfElf
, Halfling
, Hobbit
, Hobgoblin
, Human
, Humanoid
, Insect
, Kobold
, Lizard
, LizardMan
, ManScorpion
, Mephit
, Merfolk
, MetalGolem
, Millipede
, Minotaur
, Mold
, Monkey
, Moose
, Mustelid
, Mustie
, Nymph
, Orc
, Owl
, Pachyderm
, Pegacorn
, Pegasus
, Penguin
, Pig
, Planetar
, PolarBear
, Rabbit
, Raven
, Rodent
, Scarab
, SchoolMonster
, Scorpion
, SeaHorse
, Selkie
, Shambler
, Sheep
, Slime
, SmallElfKin
, Smurf
, Snake
, Solar
, SongBird
, Spider
, Stone
, StoneGolem
, Svirfneblin
, Tarantula
, Toadstool
, Treant
, TreeGolem
, Troglodyte
, Troll
, Tumbleweed
, Turtle
, UmberHulk
, Undead
, Unicorn
, Unique
, Vine
, WaterElemental
, WaterFowl
, Wemic
, WereAmphibian
, WereAnimal
, Wolf
, WoodGolem
, Worm
, Wyvern
public class StdRace extends java.lang.Object implements Race
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
abilitiesDesc |
|
protected java.lang.String |
baseStatChgDesc |
|
protected static int[] |
breatheAirArray |
|
protected static int[] |
breatheAirWaterArray |
|
protected static int[] |
breatheAnythingArray |
|
protected static int[] |
breatheWaterArray |
|
protected static java.lang.String[] |
CODES |
|
protected java.lang.String |
dispChgDesc |
|
protected static java.util.List |
empty |
|
protected static SearchIDList |
emptyIDs |
|
protected java.lang.String |
languagesDesc |
|
protected boolean |
mappedCulturalAbilities |
|
protected java.util.Set<java.lang.String> |
naturalAbilImmunities |
|
protected Weapon[] |
naturalWeaponChoices |
|
protected java.util.List<Item> |
outfitChoices |
|
protected java.util.Map<java.lang.Integer,SearchIDList<Ability>> |
racialAbilityMap |
|
protected java.util.Map<java.lang.Integer,SearchIDList<Ability>> |
racialEffectMap |
|
protected java.lang.String |
sensesChgDesc |
|
protected int |
usageCount |
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_FOREVER
STATUS_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 |
---|---|
StdRace() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String[] |
abilityImmunities() |
Returns the list of ability IDs of skills that this
race is flatly and quietly immune to, whether
malicious or not -- it just won't happen.
|
int |
adjustExperienceGain(MOB host,
MOB mob,
MOB victim,
int amount) |
Whenever a player or mob of this race gains experience, this method gets a chance
to modify the amount before the gain actually occurs.
|
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState) |
This method is called by the recoverCharState() method on other MOB objects.
|
void |
affectCharStats(MOB affectedMob,
CharStats charStats) |
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.
|
void |
agingAffects(MOB mob,
CharStats baseStats,
CharStats charStats) |
Apply any affects of the given mob at the given age to the given base and/or
current char stats.
|
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 |
canBreedWith(Race R,
boolean crossBreed) |
Returns true if the given race is actually the same as the
current race.
|
boolean |
classless() |
Whether this race can be associated with a character class.
|
protected void |
cleanOutfit(java.util.List<Item> items) |
|
protected void |
clrStatChgDesc() |
|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
QuadVector<java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.Boolean> |
culturalAbilities() |
Return a vector of skills, spells, and other ability ids granted to the given
mob when they are created as this race.
|
protected boolean[] |
culturalAbilityAutoGains() |
|
protected int[] |
culturalAbilityLevels() |
|
protected java.lang.String[] |
culturalAbilityNames() |
|
protected 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.
|
java.lang.String |
getAbilitiesDesc() |
Returns the list of racial abilities granted to those of this race
or nothing.
|
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) |
|
DeadBody |
getCorpseContainer(MOB mob,
Room room) |
Returns the corpse of a member of this race, populates it with the equipment of
the given mob, and places it in the given room.
|
java.lang.String |
getDispositionChgDesc() |
Returns the list of modifications to disposition done by this race
or nothing.
|
protected Weapon[] |
getHumanoidWeapons() |
|
java.lang.String |
getLanguagesDesc() |
Returns the list of racial languages granted to those of this race
or nothing.
|
Weapon |
getNaturalWeapon() |
Returns a Weapon object representing what a member of this
race fights with when unarmed.
|
Weapon[] |
getNaturalWeapons() |
Returns all Weapon objects representing what a member of this
race fights with when unarmed.
|
java.lang.String |
getPracAdjDesc() |
Returns the adjustment to practices made by this race (or nothing)
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
java.lang.String |
getSensesChgDesc() |
Returns the list of modifications to senses done by this race
or nothing.
|
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 |
getStatAdjDesc() |
Returns a list of the stat adjustments made by this race
|
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 |
getTickStatus() |
A coded status for this object during the period where
its tick method is being called.
|
java.lang.String |
getTrainAdjDesc() |
Returns the adjustment to trains made by this race (or nothing)
|
int |
getXPAdjustment() |
Returns the amount, as a positive or negative % to adjust all experience gains.
|
protected boolean |
giveMobAbility(MOB mob,
Ability A,
int proficiency,
java.lang.String defaultParm,
boolean isBorrowedRace) |
|
protected boolean |
giveMobAbility(MOB mob,
Ability A,
int proficiency,
java.lang.String defaultParm,
boolean isBorrowedRace,
boolean autoInvoke) |
|
void |
grantAbilities(MOB mob,
boolean isBorrowedRace) |
Typically called when a mob gains a level with this base-race, to allow the race to
assign any new skills.
|
protected void |
grantAbilities(MOB mob,
boolean isBorrowedRace,
boolean skipCultural) |
|
Race |
healthBuddy() |
|
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.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isGeneric() |
Whether this race object represents a Generic Race, or one which is modifiable by
builders at run-time.
|
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 |
L(java.lang.String str,
java.lang.String... xs) |
|
java.lang.String |
leaveStr() |
Returns the string describing what folks see when a member of this race leaves a room.
|
void |
level(MOB mob,
java.util.List<java.lang.String> gainedAbilityIDs) |
This method is called whenever a player gains a level while a member of this race.
|
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.lang.String |
makeMobName(char gender,
int age) |
Sends back a generic mob name appropriate to a mob of this
race, at the given gender and age-group.
|
protected RawMaterial |
makeResource(java.lang.String name,
int type) |
|
protected RawMaterial |
makeResource(java.lang.String name,
int type,
java.lang.String subType) |
|
protected void |
makeStatChgDesc() |
|
protected void |
mapCulturalAbilities() |
|
Race |
mixRace(Race race,
java.lang.String newRaceID,
java.lang.String newRaceName) |
Converts this race to a generic race (if it isn't already)
and mixes its attributes with the race passed 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.
|
int |
numRacialEffects(MOB mob) |
Returns the number of racial effects eligible to the given lob.
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
java.util.List<Item> |
outfit(MOB myChar) |
Returns a vector of Item objects representing the standard
clothing, weapons, or other objects commonly given to players
of this race just starting out.
|
protected int |
practicesAtFirstLevel() |
|
SearchIDList<Ability> |
racialAbilities(MOB mob) |
Return a vector of skills, spells, and other abilities granted to the given
mob of the given mobs level.
|
protected int[] |
racialAbilityLevels() |
|
protected java.lang.String[] |
racialAbilityNames() |
|
protected 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() |
|
ChameleonList<Ability> |
racialEffects(MOB mob) |
Return a vector of skills, spells, and other abilities granted to the given
mob of the given mobs level.
|
java.util.List<Ability> |
racialEffectsList(MOB mob) |
|
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 |
setHeightWeight(PhyStats stats,
char gender) |
Will initialize a player or mobs height and weight based
on this races parameters.
|
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 myChar,
int tickID) |
this is the method which is called periodically by the threading engine.
|
protected int |
trainsAtFirstLevel() |
|
void |
unaffectCharStats(MOB affected,
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() |
|
int |
usageCount(int alter) |
Returns the number of registered usages of this race as of the
moment of the call.
|
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.
|
protected static final int[] breatheAnythingArray
protected static final int[] breatheAirArray
protected static final int[] breatheWaterArray
protected static final int[] breatheAirWaterArray
protected static final java.util.List empty
protected static final SearchIDList emptyIDs
protected java.lang.String baseStatChgDesc
protected java.lang.String sensesChgDesc
protected java.lang.String dispChgDesc
protected java.lang.String abilitiesDesc
protected java.lang.String languagesDesc
protected boolean mappedCulturalAbilities
protected java.util.List<Item> outfitChoices
protected Weapon[] naturalWeaponChoices
protected java.util.Set<java.lang.String> naturalAbilImmunities
protected int usageCount
protected java.util.Map<java.lang.Integer,SearchIDList<Ability>> racialAbilityMap
protected java.util.Map<java.lang.Integer,SearchIDList<Ability>> racialEffectMap
protected static java.lang.String[] CODES
public java.lang.String ID()
CMObject
public java.lang.String name()
Race
public int shortestMale()
Race
shortestMale
in interface Race
public int shortestFemale()
Race
shortestFemale
in interface Race
public int heightVariance()
Race
heightVariance
in interface Race
public int lightestWeight()
Race
lightestWeight
in interface Race
public int weightVariance()
Race
weightVariance
in interface Race
public long forbiddenWornBits()
Race
forbiddenWornBits
in interface Race
Item
public java.lang.String racialCategory()
Race
racialCategory
in interface Race
public boolean isGeneric()
Race
public boolean classless()
Race
public boolean leveless()
Race
public boolean expless()
Race
public int getXPAdjustment()
Race
getXPAdjustment
in interface Race
public int[] bodyMask()
Race
public int[] getAgingChart()
Race
getAgingChart
in interface Race
Race
public int[] getBreathables()
Race
getBreathables
in interface Race
RawMaterial
public boolean useRideClass()
Race
useRideClass
in interface Race
protected int practicesAtFirstLevel()
protected int trainsAtFirstLevel()
protected java.lang.String[] racialEffectNames()
protected int[] racialEffectLevels()
protected java.lang.String[] racialEffectParms()
protected java.lang.String[] racialAbilityNames()
protected java.lang.String[] racialAbilityParms()
protected int[] racialAbilityLevels()
protected int[] racialAbilityProficiencies()
protected boolean[] racialAbilityQuals()
protected java.lang.String[] culturalAbilityNames()
protected int[] culturalAbilityLevels()
protected boolean[] culturalAbilityAutoGains()
protected int[] culturalAbilityProficiencies()
public java.lang.String[] abilityImmunities()
Race
abilityImmunities
in interface Race
protected boolean uncharmable()
protected boolean destroyBodyAfterUse()
public int availabilityCode()
Race
availabilityCode
in interface Race
Area
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public boolean fertile()
public boolean infatigueable()
Race
infatigueable
in interface Race
public CMObject copyOf()
CMObject
public Race healthBuddy()
public boolean canBreedWith(Race R, boolean crossBreed)
Race
canBreedWith
in interface Race
R
- the race to checkcrossBreed
- false to enforce race similaritiespublic void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffecting
affectPhyStats
in interface StatsAffecting
affected
- 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 charStats)
StatsAffecting
affectCharStats
in interface StatsAffecting
affectedMob
- the host of the CharStats object being affectedcharStats
- the particular CharStats object being affectedCharStats
,
MOB
,
MOB.baseCharStats()
,
MOB.charStats()
,
MOB.recoverCharStats()
public void unaffectCharStats(MOB affected, CharStats affectableStats)
Race
unaffectCharStats
in interface Race
affected
- the mob of the CharStats object being affectedaffectableStats
- the particular CharStats object being affectedCharStats
,
StatsAffecting
,
StatsAffecting.affectCharStats(MOB, CharStats)
public java.lang.String makeMobName(char gender, int age)
Race
makeMobName
in interface Race
gender
- the gender of the mobage
- the age categorypublic void agingAffects(MOB mob, CharStats baseStats, CharStats charStats)
Race
agingAffects
in interface Race
mob
- the mob to apply changes tobaseStats
- permanent charstats changescharStats
- temporary charstats changesCharState
public void affectCharState(MOB affectedMob, CharState affectableMaxState)
StatsAffecting
affectCharState
in interface StatsAffecting
affectedMob
- the host of the CharState object being affectedaffectableMaxState
- the particular CharState object being affectedCharState
,
MOB
,
MOB.baseState()
,
MOB.curState()
,
MOB.recoverMaxState()
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executedCMMsg
,
CMMsg.source()
public void executeMsg(Environmental myHost, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public java.lang.String arriveStr()
Race
public java.lang.String leaveStr()
Race
public void level(MOB mob, java.util.List<java.lang.String> gainedAbilityIDs)
Race
public int adjustExperienceGain(MOB host, MOB mob, MOB victim, int amount)
Race
adjustExperienceGain
in interface Race
host
- the player or mob whose race object this ismob
- the player or mob gaining experiencevictim
- if applicable, the mob or player who died to give the expamount
- the amount of exp on track for gainingpublic int getTickStatus()
Tickable
getTickStatus
in interface Tickable
Tickable.tick(Tickable, int)
public boolean tick(Tickable myChar, int tickID)
Tickable
tick
in interface Tickable
myChar
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
public java.lang.String L(java.lang.String str, java.lang.String... xs)
protected boolean giveMobAbility(MOB mob, Ability A, int proficiency, java.lang.String defaultParm, boolean isBorrowedRace)
protected boolean giveMobAbility(MOB mob, Ability A, int proficiency, java.lang.String defaultParm, boolean isBorrowedRace, boolean autoInvoke)
public void grantAbilities(MOB mob, boolean isBorrowedRace)
Race
grantAbilities
in interface Race
mob
- the mob to give abilities to.isBorrowedRace
- whether the skills are savable (false) or temporary (true)AbilityContainer.addAbility(Ability)
protected void grantAbilities(MOB mob, boolean isBorrowedRace, boolean skipCultural)
protected void mapCulturalAbilities()
public void startRacing(MOB mob, boolean verifyOnly)
Race
startRacing
in interface Race
mob
- the mob or player being set to this raceverifyOnly
- true flag unless this is a new player characterpublic Weapon getNaturalWeapon()
Race
getNaturalWeapon
in interface Race
Weapon
,
Race.getNaturalWeapons()
public Weapon[] getNaturalWeapons()
Race
getNaturalWeapons
in interface Race
Weapon
,
Race.getNaturalWeapon()
protected void cleanOutfit(java.util.List<Item> items)
public java.util.List<Item> outfit(MOB myChar)
Race
public java.lang.String healthText(MOB viewer, MOB mob)
Race
healthText
in interface Race
viewer
- the mob observing the health of this onemob
- the mob whose health to checkMOB.curState()
,
CharState.getHitPoints()
protected final Weapon[] getHumanoidWeapons()
public java.util.List<RawMaterial> myResources()
Race
myResources
in interface Race
RawMaterial
public void setHeightWeight(PhyStats stats, char gender)
Race
setHeightWeight
in interface Race
stats
- the PhyStats object to changegender
- the mobs gender 'M' or 'F'PhyStats
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
protected RawMaterial makeResource(java.lang.String name, int type)
protected RawMaterial makeResource(java.lang.String name, int type, java.lang.String subType)
public DeadBody getCorpseContainer(MOB mob, Room room)
Race
getCorpseContainer
in interface Race
mob
- the mob to use as a template for the bodyroom
- the room to place the corpse inRace.myResources()
public int numRacialEffects(MOB mob)
Race
numRacialEffects
in interface Race
mob
- the mob to grant the abilities topublic ChameleonList<Ability> racialEffects(MOB mob)
Race
racialEffects
in interface Race
mob
- the mob to grant the abilities toAbility
,
Race.numRacialEffects(MOB)
public Race makeGenRace()
Race
makeGenRace
in interface Race
public Race mixRace(Race race, java.lang.String newRaceID, java.lang.String newRaceName)
Race
public QuadVector<java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.Boolean> culturalAbilities()
Race
culturalAbilities
in interface Race
Ability
public SearchIDList<Ability> racialAbilities(MOB mob)
Race
racialAbilities
in interface Race
mob
- the mob to grant the abilities toAbility
public java.lang.String getStatAdjDesc()
Race
getStatAdjDesc
in interface Race
public java.lang.String getSensesChgDesc()
Race
getSensesChgDesc
in interface Race
public java.lang.String getDispositionChgDesc()
Race
getDispositionChgDesc
in interface Race
public java.lang.String getTrainAdjDesc()
Race
getTrainAdjDesc
in interface Race
public java.lang.String getPracAdjDesc()
Race
getPracAdjDesc
in interface Race
public java.lang.String getAbilitiesDesc()
Race
getAbilitiesDesc
in interface Race
public java.lang.String getLanguagesDesc()
Race
getLanguagesDesc
in interface Race
public java.lang.String racialParms()
Race
racialParms
in interface Race
Race.isGeneric()
,
Race.setRacialParms(String)
public int usageCount(int alter)
Race
usageCount
in interface Race
alter
- amount to change the usage by, + or -, or 0public void setRacialParms(java.lang.String parms)
Race
setRacialParms
in interface Race
parms
- an xml document describing this raceRace.isGeneric()
,
Race.racialParms()
protected void clrStatChgDesc()
protected void makeStatChgDesc()
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 code)
Modifiable
getStat
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 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()
protected int getCodeNum(java.lang.String code)
public boolean sameAs(Race E)