|
|||||||||
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 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 |
Method Summary | |
---|---|
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)
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. |
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 |
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. |
Weapon |
myNaturalWeapon()
Returns a Weapon object representing what a member of this race fights with when unarmed. |
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 elligible 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. |
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. |
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, affectPhyStats |
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.Modifiable |
---|
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 YEARS_AGE_LIVES_FOREVER
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.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
Method Detail |
---|
java.lang.String name()
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
java.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 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'PhyStats
int shortestMale()
int shortestFemale()
int heightVariance()
int lightestWeight()
int weightVariance()
int[] getAgingChart()
Race
long forbiddenWornBits()
Item
int[] 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 race
java.util.List<Item> outfit(MOB myChar)
myChar
- one who will receive the objects
java.lang.String healthText(MOB viewer, MOB mob)
viewer
- the mob observing the health of this onemob
- the mob whose health to check
MOB.curState()
,
CharState.getHitPoints()
java.lang.String[] abilityImmunities()
java.lang.String makeMobName(char gender, int age)
gender
- the gender of the mobage
- the age category
Weapon myNaturalWeapon()
Weapon
int[] getBreathables()
RawMaterial
java.util.List<RawMaterial> 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()
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 processint 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 canBreedWith(Race R)
R
- the race to check
boolean classless()
CharClass
boolean leveless()
boolean expless()
QuadVector<java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.Boolean> culturalAbilities()
Ability
SearchIDList<Ability> racialAbilities(MOB mob)
mob
- the mob to grant the abilities to
Ability
ChameleonList<Ability> racialEffects(MOB mob)
mob
- the mob to grant the abilities to
Ability
,
numRacialEffects(MOB)
int numRacialEffects(MOB mob)
mob
- the mob to grant the abilities to
void agingAffects(MOB mob, CharStats baseStats, CharStats charStats)
mob
- the mob to apply changes tobaseStats
- permanent charstats changescharStats
- temporary charstats changesCharState
int 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
- TODO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |