|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Races.StdRace
com.planet_ink.coffee_mud.Races.GenRace
public class GenRace
| Field Summary | |
|---|---|
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
|
| Fields inherited from class com.planet_ink.coffee_mud.Races.StdRace |
|---|
abilitiesDesc, baseStatChgDesc, breatheAirArray, breatheAirWaterArray, breatheAnythingArray, breatheWaterArray, dispChgDesc, empty, emptyIDs, languagesDesc, mappedCulturalAbilities, naturalAbilImmunities, naturalWeapon, naturalWeaponChoices, outfitChoices, racialAbilityMap, racialEffectMap, sensesChgDesc, usageCount |
| Fields inherited from interface com.planet_ink.coffee_mud.Races.interfaces.Race |
|---|
AGE_ANCIENT, AGE_CHILD, AGE_DESCS, AGE_INFANT, AGE_MATURE, AGE_MIDDLEAGED, AGE_OLD, AGE_TODDLER, AGE_VENERABLE, AGE_YOUNGADULT, BODY_ANTENEA, 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 |
| Constructor Summary | |
|---|---|
GenRace()
|
|
| Method Summary | |
|---|---|
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)
|
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()
|
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. |
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 |
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()
|
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. |
| Methods inherited from class com.planet_ink.coffee_mud.Races.StdRace |
|---|
abilityImmunities, adjustExperienceGain, agingAffects, canBreedWith, clrStatChgDesc, compareTo, culturalAbilities, funHumanoidWeapon, getAbilitiesDesc, getCorpseContainer, getDispositionChgDesc, getLanguagesDesc, 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, usageCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public GenRace()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdRacepublic java.lang.String name()
Race
name in interface CMObjectname in interface Tickablename in interface Racename in class StdRaceEnvironmental.Name()public int practicesAtFirstLevel()
practicesAtFirstLevel in class StdRacepublic int trainsAtFirstLevel()
trainsAtFirstLevel in class StdRacepublic long forbiddenWornBits()
Race
forbiddenWornBits in interface RaceforbiddenWornBits in class StdRaceItempublic java.lang.String racialCategory()
Race
racialCategory in interface RaceracialCategory in class StdRacepublic boolean isGeneric()
Race
isGeneric in interface RaceisGeneric in class StdRacepublic int getXPAdjustment()
Race
getXPAdjustment in interface RacegetXPAdjustment in class StdRacepublic int shortestFemale()
Race
shortestFemale in interface RaceshortestFemale in class StdRacepublic int heightVariance()
Race
heightVariance in interface RaceheightVariance in class StdRacepublic int lightestWeight()
Race
lightestWeight in interface RacelightestWeight in class StdRacepublic int weightVariance()
Race
weightVariance in interface RaceweightVariance in class StdRacepublic int shortestMale()
Race
shortestMale in interface RaceshortestMale in class StdRacepublic boolean classless()
Race
classless in interface Raceclassless in class StdRaceCharClasspublic boolean leveless()
Race
leveless in interface Raceleveless in class StdRacepublic boolean expless()
Race
expless in interface Raceexpless in class StdRacepublic boolean fertile()
fertile in class StdRacepublic boolean infatigueable()
infatigueable in class StdRaceprotected boolean uncharmable()
uncharmable in class StdRacepublic int[] bodyMask()
Race
bodyMask in interface RacebodyMask in class StdRacepublic int availabilityCode()
Race
availabilityCode in interface RaceavailabilityCode in class StdRaceAreapublic int[] getAgingChart()
Race
getAgingChart 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()
Race
getBreathables in interface RacegetBreathables in class StdRaceRawMaterialpublic boolean useRideClass()
Race
useRideClass 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()
CMObject
newInstance in interface CMObjectnewInstance in class StdRacepublic CMObject copyOf()
CMObject
copyOf in interface CMObjectcopyOf in class StdRacepublic Weapon myNaturalWeapon()
Race
myNaturalWeapon in interface RacemyNaturalWeapon in class StdRaceWeaponpublic java.lang.String arriveStr()
Race
arriveStr in interface RacearriveStr in class StdRacepublic java.lang.String leaveStr()
Race
leaveStr in interface RaceleaveStr in class StdRacepublic Race makeGenRace()
Race
makeGenRace in interface RacemakeGenRace in class StdRace
public java.lang.String healthText(MOB viewer,
MOB mob)
Race
healthText in interface RacehealthText in class StdRaceviewer - the mob observing the health of this onemob - the mob whose health to check
MOB.curState(),
CharState.getHitPoints()
public void affectPhyStats(Physical affected,
PhyStats affectableStats)
StatsAffecting
affectPhyStats 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)
StatsAffecting
affectCharStats 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 affectCharState(MOB affectedMob,
CharState affectableMaxState)
StatsAffecting
affectCharState 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()
Race
myResources in interface RacemyResources in class StdRaceRawMaterialprotected java.lang.String getRaceLocatorID(Race R)
public java.lang.String racialParms()
Race
racialParms in interface RaceracialParms in class StdRaceRace.isGeneric(),
Race.setRacialParms(String)public void setRacialParms(java.lang.String parms)
Race
setRacialParms in interface RacesetRacialParms in class StdRaceparms - an xml document describing this raceRace.isGeneric(),
Race.racialParms()public java.lang.String getStat(java.lang.String code)
Modifiable
getStat in interface ModifiablegetStat in class StdRacecode - the name of the field to read.
Modifiable.getStatCodes()
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickabletick in class StdRaceticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGroup
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdRacemyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdRacemyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public void startRacing(MOB mob,
boolean verifyOnly)
Race
startRacing in interface RacestartRacing in class StdRacemob - the mob or player being set to this raceverifyOnly - true flag unless this is a new player character
public void setStat(java.lang.String code,
java.lang.String val)
Modifiable
setStat in interface ModifiablesetStat in class StdRacecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public int getSaveStatIndex()
Modifiable
getSaveStatIndex in interface ModifiablegetSaveStatIndex in class StdRaceModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
Modifiable
getStatCodes in interface ModifiablegetStatCodes in class StdRaceModifiable.getStat(String),
Modifiable.setStat(String, String)protected int getCodeNum(java.lang.String code)
getCodeNum in class StdRacepublic boolean sameAs(Race E)
sameAs in class StdRace
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||