|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Race
A, well, Race
| Field Summary | |
|---|---|
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_ANTENEA
body part constant representing antenea |
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 Item.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.Hashtable |
BODYPARTHASH
constant hash of BODYPARTSTR |
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_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 |
| Method Summary | |
|---|---|
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 |
classless()
Whether this race can be associated with a character class. |
DVector |
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. |
boolean |
fertile()
Whether this race, generally speaking, can procreate. |
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. |
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 |
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 |
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.Vector 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. |
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. |
Weapon |
myNaturalWeapon()
Returns a Weapon object representing what a member of this race fights with when unarmed. |
java.util.Vector |
myResources()
Returns a Vector 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 |
java.util.Vector |
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. |
java.util.Vector |
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. |
java.util.Vector |
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(EnvStats 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. |
int |
weightVariance()
The amount from 0-this to add to the minumum weight to achieve a random weight. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg, okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
static 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 BODY_ANTENEA
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.Hashtable 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 java.lang.String[] GENFLAG_DESCS
static final long[] BODY_WEARVECTOR
static final long[][] BODY_WEARGRID
| Method Detail |
|---|
java.lang.String name()
name in interface Tickablejava.lang.String racialCategory()
int availabilityCode()
Area
void startRacing(MOB mob,
boolean verifyOnly)
mob - the mob or player being set to this raceverifyOnly - true flag unless this is a new player character
void setHeightWeight(EnvStats stats,
char gender)
stats - the EnvStats object to changegender - the mobs gender 'M' or 'F'EnvStatsint 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)
boolean fertile()
java.util.Vector outfit(MOB myChar)
myChar - one who will receive the objects
java.lang.String healthText(MOB viewer,
MOB mob)
mob - the mob whose health to check
MOB.curState(),
CharState.getHitPoints()Weapon myNaturalWeapon()
Weaponjava.util.Vector myResources()
RawMaterial
DeadBody getCorpseContainer(MOB mob,
Room room)
mob - the mob to use as a template for the bodyroom - the room to place the corpse in
myResources()boolean isGeneric()
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.Vector gainedAbilityIDs)
mob - the mob to level upgainedAbilityIDs - the set of abilities/skill IDs gained during this leveling process
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 gaining
boolean classless()
CharClassboolean leveless()
boolean expless()
DVector culturalAbilities()
Abilityjava.util.Vector racialAbilities(MOB mob)
mob - the mob to grant the abilities to
Abilityjava.util.Vector racialEffects(MOB mob)
mob - the mob to grant the abilities to
Ability
void agingAffects(MOB mob,
CharStats baseStats,
CharStats charStats)
mob - the mob to apply changes tobaseStats - permanent charstats changescharStats - temporary charstats changesCharState
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||