|
|||||||||
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 CMObject
ID
in class StdRace
public java.lang.String name()
Race
name
in interface CMObject
name
in interface Tickable
name
in interface Race
name
in class StdRace
Environmental.Name()
public int practicesAtFirstLevel()
practicesAtFirstLevel
in class StdRace
public int trainsAtFirstLevel()
trainsAtFirstLevel
in class StdRace
public long forbiddenWornBits()
Race
forbiddenWornBits
in interface Race
forbiddenWornBits
in class StdRace
Item
public java.lang.String racialCategory()
Race
racialCategory
in interface Race
racialCategory
in class StdRace
public boolean isGeneric()
Race
isGeneric
in interface Race
isGeneric
in class StdRace
public int getXPAdjustment()
Race
getXPAdjustment
in interface Race
getXPAdjustment
in class StdRace
public int shortestFemale()
Race
shortestFemale
in interface Race
shortestFemale
in class StdRace
public int heightVariance()
Race
heightVariance
in interface Race
heightVariance
in class StdRace
public int lightestWeight()
Race
lightestWeight
in interface Race
lightestWeight
in class StdRace
public int weightVariance()
Race
weightVariance
in interface Race
weightVariance
in class StdRace
public int shortestMale()
Race
shortestMale
in interface Race
shortestMale
in class StdRace
public boolean classless()
Race
classless
in interface Race
classless
in class StdRace
CharClass
public boolean leveless()
Race
leveless
in interface Race
leveless
in class StdRace
public boolean expless()
Race
expless
in interface Race
expless
in class StdRace
public boolean fertile()
fertile
in class StdRace
public boolean infatigueable()
infatigueable
in class StdRace
protected boolean uncharmable()
uncharmable
in class StdRace
public int[] bodyMask()
Race
bodyMask
in interface Race
bodyMask
in class StdRace
public int availabilityCode()
Race
availabilityCode
in interface Race
availabilityCode
in class StdRace
Area
public int[] getAgingChart()
Race
getAgingChart
in interface Race
getAgingChart
in class StdRace
Race
protected java.lang.String[] racialEffectNames()
racialEffectNames
in class StdRace
protected int[] racialEffectLevels()
racialEffectLevels
in class StdRace
protected java.lang.String[] racialEffectParms()
racialEffectParms
in class StdRace
public int[] getBreathables()
Race
getBreathables
in interface Race
getBreathables
in class StdRace
RawMaterial
public boolean useRideClass()
Race
useRideClass
in interface Race
useRideClass
in class StdRace
protected java.lang.String[] racialAbilityNames()
racialAbilityNames
in class StdRace
protected int[] racialAbilityLevels()
racialAbilityLevels
in class StdRace
protected int[] racialAbilityProficiencies()
racialAbilityProficiencies
in class StdRace
protected boolean[] racialAbilityQuals()
racialAbilityQuals
in class StdRace
public java.lang.String[] racialAbilityParms()
racialAbilityParms
in class StdRace
public java.lang.String[] culturalAbilityNames()
culturalAbilityNames
in class StdRace
public int[] culturalAbilityProficiencies()
culturalAbilityProficiencies
in class StdRace
protected int[] culturalAbilityLevels()
culturalAbilityLevels
in class StdRace
protected boolean[] culturalAbilityAutoGains()
culturalAbilityAutoGains
in class StdRace
protected boolean destroyBodyAfterUse()
destroyBodyAfterUse
in class StdRace
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
newInstance
in class StdRace
public CMObject copyOf()
CMObject
copyOf
in interface CMObject
copyOf
in class StdRace
public Weapon myNaturalWeapon()
Race
myNaturalWeapon
in interface Race
myNaturalWeapon
in class StdRace
Weapon
public java.lang.String arriveStr()
Race
arriveStr
in interface Race
arriveStr
in class StdRace
public java.lang.String leaveStr()
Race
leaveStr
in interface Race
leaveStr
in class StdRace
public Race makeGenRace()
Race
makeGenRace
in interface Race
makeGenRace
in class StdRace
public java.lang.String healthText(MOB viewer, MOB mob)
Race
healthText
in interface Race
healthText
in class StdRace
viewer
- 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 StatsAffecting
affectPhyStats
in class StdRace
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 affectableStats)
StatsAffecting
affectCharStats
in interface StatsAffecting
affectCharStats
in class StdRace
affectedMob
- 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 StatsAffecting
affectCharState
in class StdRace
affectedMob
- 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 Race
myResources
in class StdRace
RawMaterial
protected java.lang.String getRaceLocatorID(Race R)
public java.lang.String racialParms()
Race
racialParms
in interface Race
racialParms
in class StdRace
Race.isGeneric()
,
Race.setRacialParms(String)
public void setRacialParms(java.lang.String parms)
Race
setRacialParms
in interface Race
setRacialParms
in class StdRace
parms
- an xml document describing this raceRace.isGeneric()
,
Race.racialParms()
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
getStat
in class StdRace
code
- the name of the field to read.
Modifiable.getStatCodes()
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class StdRace
ticking
- 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 MsgListener
executeMsg
in class StdRace
myHost
- 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 MsgListener
okMessage
in class StdRace
myHost
- 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 Race
startRacing
in class StdRace
mob
- the mob or player being set to this raceverifyOnly
- true flag unless this is a new player characterpublic void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
setStat
in class StdRace
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
getSaveStatIndex
in class StdRace
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
getStatCodes
in class StdRace
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
protected int getCodeNum(java.lang.String code)
getCodeNum
in class StdRace
public boolean sameAs(Race E)
sameAs
in class StdRace
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |