java.lang.Cloneable, CMObject, java.lang.Comparable<CMObject>, Modifiable, MsgListener, StatsAffecting, TickableAarakocran, AirElemental, Alligator, Angelfish, Animal, Ape, Arachnid, AshMephit, Avariel, Badger, Barghest, Bat, Bear, Beaver, Beholder, Bird, Birdman, Blob, Buffalo, Bull, Bullywug, Calf, Cat, Centaur, Centipede, Chicken, Chimp, ClayGolem, Clockwork, ClownFish, Cobra, CornSnake, Cow, Crab, Cricket, Crocodile, Cub, Deer, Demodand, Demon, Deva, Devil, DireBear, DireBoar, DireCat, DireOtter, DireRat, DireWolf, Dog, Doll, Dolphin, Draconian, Dragon, Drider, Drow, Dryad, Duck, Duergar, Dummy, DustMephit, Dwarf, Eagle, EarthElemental, ElectricityElemental, Elephant, Elf, Equine, Faerie, FaerieDragon, Fey, Fido, FireElemental, Fish, FleshGolem, Flower, Fox, Frog, GardenSnake, Gargoyle, GenRace, Ghast, Ghost, Ghoul, Giant, GiantAmphibian, GiantAnimal, GiantBear, GiantBoar, GiantCrab, GiantFish, GiantInsect, GiantLizard, GiantOtter, GiantRat, GiantScorpion, GiantSeaHorse, GiantSpider, GiantTurtle, GiantWolf, GiantWorm, Githyanki, Gnoll, Gnome, Goat, Goblin, Goose, Gorilla, Grasshopper, GreatAmphibian, GreatBird, GreatCat, GreatFish, GreatLizard, Griffon, GrizzlyBear, HalfElf, Halfling, HalfOgre, Harpy, Hawk, Hobbit, Hobgoblin, Horse, Human, Humanoid, IceMephit, Insect, Jelly, Kitten, Kobold, Lich, LightMephit, LightningMephit, Lion, Lizard, LizardMan, MagmaMephit, ManScorpion, Manticore, Mephit, Merfolk, MetalGolem, Millipede, Mindflayer, MineralMephit, Minotaur, Mold, Monkey, Moose, Mouse, Mummy, Mustelid, Mustie, Naga, Nymph, Ogre, OozeMephit, Orangutan, Orc, Otter, Owl, Pachyderm, Pegacorn, Pegasus, Penguin, Pig, Pixie, Planetar, Plant, PlayerRace, PolarBear, Porcupine, Puma, Puppy, Python, Rabbit, Rat, Raven, Robin, Rodent, SaltMephit, Sasquatch, Scarab, SchoolMonster, Scorpion, SeaHorse, Seal, Selkie, Shadow, Shambler, Shark, Sheep, Shrimp, Skeleton, Slaad, Slime, SmallElfKin, SmallFish, SmokeMephit, Smurf, Snake, Solar, SongBird, Spectre, Spider, Spirit, Squirrel, StdRace, SteamMephit, Stone, StoneGolem, Svirfneblin, Swordfish, Tabaxi, Tarantula, Tiefling, Toadstool, Treant, TreeGolem, Troglodyte, Troll, Tumbleweed, Tuna, Turtle, UmberHulk, Undead, Unicorn, Unique, Vampire, Vine, VoidMephit, Walrus, WaterElemental, WaterFowl, Wemic, WereAmphibian, WereAnimal, WereBat, WereBear, WereRat, WereWolf, Whale, Wolf, Wolverine, WoodGolem, Worm, Wyvern, Yugoloth, Zombiepublic interface Race extends Tickable, StatsAffecting, MsgListener, CMObject, Modifiable
| Modifier and Type | Field | Description |
|---|---|---|
static int |
AGE_ANCIENT |
Age constant for the very very old
|
static int |
AGE_CHILD |
Age constant for a child
|
static java.lang.String[] |
AGE_DESCS |
Constant string list for the names of the age constants, in their order of value
|
static int |
AGE_INFANT |
Age constant for an infant
|
static int |
AGE_MATURE |
Age constant for the mature adult
|
static int |
AGE_MIDDLEAGED |
Age constant for the middle aged adult
|
static int |
AGE_OLD |
Age constant for the old
|
static int |
AGE_TODDLER |
Age constant for a toddler
|
static int |
AGE_VENERABLE |
Age constant for the very old
|
static int |
AGE_YOUNGADULT |
Age constant for a yound adultt
|
static int |
BODY_ANTENNA |
body part constant representing antenna
|
static int |
BODY_ARM |
body part constant representing arm
|
static int |
BODY_EAR |
body part constant representing ears
|
static int |
BODY_EYE |
body part constant representing eyes
|
static int |
BODY_FOOT |
body part constant representing feet
|
static int |
BODY_GILL |
body part constant representing gills
|
static int |
BODY_HAND |
body part constant representing hand
|
static int |
BODY_HEAD |
body part constant representing head
|
static int |
BODY_LEG |
body part constant representing legs
|
static int |
BODY_MOUTH |
body part constant representing mouth
|
static int |
BODY_NECK |
body part constant representing neck
|
static int |
BODY_NOSE |
body part constant representing noses
|
static int |
BODY_PARTS |
the number of body part constants
|
static int |
BODY_TAIL |
body part constant representing tails
|
static int |
BODY_TORSO |
body part constant representing torso
|
static int |
BODY_WAIST |
body part constant representing waists
|
static long[][] |
BODY_WEARGRID |
2 dimentional array, indexed first by body_ part constant, with each row
having two values: the first being the Wearable.WORN_ location which is affected
by having or losing this body part, and then the number of such body parts
necessary to gain or lose one such wear location.
|
static long[] |
BODY_WEARVECTOR |
array mapping worn locations to body parts, indexed by body parts.
|
static int |
BODY_WING |
body part constant representing wings
|
static java.util.Map<java.lang.Object,java.lang.Integer> |
BODYPARTHASH |
constant hash of BODYPARTSTR
|
static java.util.Map<java.lang.String,java.lang.Integer> |
BODYPARTHASH_RL_LOWER |
|
static java.lang.String[] |
BODYPARTSTR |
constant string list naming each of the BODY_* constants in the order of their value
|
static java.lang.String[] |
GENFLAG_DESCS |
constant string list naming each of the GENFLAG_* constants in the order of their value
|
static int |
GENFLAG_INFATIGUEABLE |
constant used to set and check the infatigueable flag on generic races
|
static int |
GENFLAG_NOCHARM |
constant used to set and check the charming flag on generic races
|
static int |
GENFLAG_NOCLASS |
constant used to set and check the classless flag on generic races
|
static int |
GENFLAG_NOEXP |
constant used to set and check the expless flag on generic races
|
static int |
GENFLAG_NOFERTILE |
constant used to set and check the fertility flag on generic races
|
static int |
GENFLAG_NOLEVELS |
constant used to set and check the levelless flag on generic races
|
static int |
YEARS_AGE_LIVES_FOREVER |
Age in Years constant for an immortal thing
|
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| 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 |
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.
|
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.
|
boolean |
expless() |
Whether players of this race can gain or lose experience points.
|
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.
|
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.
|
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)
|
java.lang.String |
getSensesChgDesc() |
Returns the list of modifications to senses done by this race
or nothing.
|
java.lang.String |
getStatAdjDesc() |
Returns a list of the stat adjustments made by this race
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
int |
numRacialEffects(MOB mob) |
Returns the number of racial effects eligible to the given lob.
|
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.
|
SearchIDList<Ability> |
racialAbilities(MOB mob) |
Return a vector of skills, spells, and other abilities granted to the given
mob of the given mobs level.
|
java.lang.String |
racialCategory() |
Which racial category this race falls in.
|
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.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.
|
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.
|
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.
|
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.
|
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.
|
getSaveStatIndex, getStat, getStatCodes, isStat, setStatexecuteMsg, okMessageaffectCharState, affectCharStats, affectPhyStatsgetTickStatus, tickstatic final int AGE_INFANT
static final int AGE_TODDLER
static final int AGE_CHILD
static final int AGE_YOUNGADULT
static final int AGE_MATURE
static final int AGE_MIDDLEAGED
static final int AGE_OLD
static final int AGE_VENERABLE
static final int AGE_ANCIENT
static final java.lang.String[] AGE_DESCS
static final int YEARS_AGE_LIVES_FOREVER
static final int BODY_ANTENNA
static final int BODY_EYE
static final int BODY_EAR
static final int BODY_HEAD
static final int BODY_NECK
static final int BODY_ARM
static final int BODY_HAND
static final int BODY_TORSO
static final int BODY_LEG
static final int BODY_FOOT
static final int BODY_NOSE
static final int BODY_GILL
static final int BODY_MOUTH
static final int BODY_WAIST
static final int BODY_TAIL
static final int BODY_WING
static final int BODY_PARTS
static final java.lang.String[] BODYPARTSTR
static final java.util.Map<java.lang.Object,java.lang.Integer> BODYPARTHASH
static final int GENFLAG_NOCLASS
static final int GENFLAG_NOLEVELS
static final int GENFLAG_NOEXP
static final int GENFLAG_NOCHARM
static final int GENFLAG_NOFERTILE
static final int GENFLAG_INFATIGUEABLE
static final java.lang.String[] GENFLAG_DESCS
static final java.util.Map<java.lang.String,java.lang.Integer> BODYPARTHASH_RL_LOWER
static final long[] BODY_WEARVECTOR
static final long[][] BODY_WEARGRID
java.lang.String name()
name in interface CMObjectname in interface TickableEnvironmental.Name()java.lang.String racialCategory()
int availabilityCode()
Areavoid startRacing(MOB mob, boolean verifyOnly)
mob - the mob or player being set to this raceverifyOnly - true flag unless this is a new player charactervoid grantAbilities(MOB mob, boolean isBorrowedRace)
mob - the mob to give abilities to.isBorrowedRace - whether the skills are savable (false) or temporary (true)AbilityContainer.addAbility(Ability)void setHeightWeight(PhyStats stats, char gender)
stats - the PhyStats object to changegender - the mobs gender 'M' or 'F'PhyStatsint shortestMale()
int shortestFemale()
int heightVariance()
int lightestWeight()
int weightVariance()
int[] getAgingChart()
Racelong forbiddenWornBits()
Itemint[] bodyMask()
Race makeGenRace()
Race mixRace(Race race, java.lang.String newRaceID, java.lang.String newRaceName)
race - the race to use as a baselinenewRaceID - the id of the new racenewRaceName - the name of the new racejava.util.List<Item> outfit(MOB myChar)
myChar - one who will receive the objectsjava.lang.String healthText(MOB viewer, MOB mob)
viewer - the mob observing the health of this onemob - the mob whose health to checkMOB.curState(),
CharState.getHitPoints()java.lang.String[] abilityImmunities()
java.lang.String makeMobName(char gender,
int age)
gender - the gender of the mobage - the age categoryWeapon getNaturalWeapon()
Weapon,
getNaturalWeapons()Weapon[] getNaturalWeapons()
Weapon,
getNaturalWeapon()int[] getBreathables()
RawMaterialjava.util.List<RawMaterial> myResources()
RawMaterialDeadBody getCorpseContainer(MOB mob, Room room)
mob - the mob to use as a template for the bodyroom - the room to place the corpse inmyResources()boolean isGeneric()
boolean useRideClass()
java.lang.String racialParms()
isGeneric(),
setRacialParms(String)void setRacialParms(java.lang.String parms)
parms - an xml document describing this raceisGeneric(),
racialParms()java.lang.String arriveStr()
java.lang.String leaveStr()
void level(MOB mob, java.util.List<java.lang.String> gainedAbilityIDs)
mob - the mob to level upgainedAbilityIDs - the set of abilities/skill IDs gained during this leveling processvoid unaffectCharStats(MOB affected, CharStats affectableStats)
affected - the mob of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
StatsAffecting,
StatsAffecting.affectCharStats(MOB, CharStats)int adjustExperienceGain(MOB host, MOB mob, MOB victim, int amount)
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 gainingboolean canBreedWith(Race R, boolean crossBreed)
R - the race to checkcrossBreed - false to enforce race similaritiesboolean classless()
CharClassboolean leveless()
boolean expless()
boolean infatigueable()
QuadVector<java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.Boolean> culturalAbilities()
AbilitySearchIDList<Ability> racialAbilities(MOB mob)
mob - the mob to grant the abilities toAbilityChameleonList<Ability> racialEffects(MOB mob)
mob - the mob to grant the abilities toAbility,
numRacialEffects(MOB)int numRacialEffects(MOB mob)
mob - the mob to grant the abilities tovoid agingAffects(MOB mob, CharStats baseStats, CharStats charStats)
mob - the mob to apply changes tobaseStats - permanent charstats changescharStats - temporary charstats changesCharStateint getXPAdjustment()
java.lang.String getStatAdjDesc()
java.lang.String getPracAdjDesc()
java.lang.String getTrainAdjDesc()
java.lang.String getSensesChgDesc()
java.lang.String getDispositionChgDesc()
java.lang.String getAbilitiesDesc()
java.lang.String getLanguagesDesc()
int usageCount(int alter)
alter - amount to change the usage by, + or -, or 0