PhyStats.Ambiance| Modifier and Type | Field | Description | 
|---|---|---|
| protected java.lang.String[] | ambiances | |
| protected java.lang.String | replacementName | |
| protected double | speed | |
| protected int[] | stats | 
idConverterALLMASK, CAN_GRUNT_WHEN_STUPID, CAN_NOT_AUTO_ATTACK, CAN_NOT_BE_CAMPED, CAN_NOT_BREATHE, CAN_NOT_HEAR, CAN_NOT_MOVE, CAN_NOT_SEE, CAN_NOT_SMELL, CAN_NOT_SPEAK, CAN_NOT_TASTE, CAN_NOT_THINK, CAN_NOT_TRACK, CAN_SEE_BONUS, CAN_SEE_CODES, CAN_SEE_DARK, CAN_SEE_DESCS, CAN_SEE_EVIL, CAN_SEE_GOOD, CAN_SEE_HIDDEN, CAN_SEE_HIDDEN_ITEMS, CAN_SEE_INFRARED, CAN_SEE_INVISIBLE, CAN_SEE_METAL, CAN_SEE_SNEAKERS, CAN_SEE_VERBS, CAN_SEE_VICTIM, IS_BONUS, IS_BOUND, IS_CATALOGED, IS_CLIMBING, IS_CLOAKED, IS_CODES, IS_CUSTOM, IS_DARK, IS_DESCS, IS_EVIL, IS_FALLING, IS_FLYING, IS_GLOWING, IS_GOLEM, IS_GOOD, IS_HIDDEN, IS_INVISIBLE, IS_LIGHTSOURCE, IS_NOT_SEEN, IS_SITTING, IS_SLEEPING, IS_SNEAKING, IS_SWIMMING, IS_UNATTACKABLE, IS_UNHELPFUL, IS_UNSAVABLE, IS_VERBS, NO_REJUV, NUM_STATS, ONE_JUV, SENSE_ALWAYSCOMPRESSED, SENSE_CODES, SENSE_CONTENTSUNSEEN, SENSE_HIDDENINPLAINSIGHT, SENSE_INSIDEACCESSIBLE, SENSE_ITEMNOAUTOWEAR, SENSE_ITEMNODROP, SENSE_ITEMNOREMOVE, SENSE_ITEMNORUIN, SENSE_ITEMNOSCRAP, SENSE_ITEMNOTGET, SENSE_ITEMNOWISH, SENSE_ITEMREADABLE, SENSE_ROOMCRUNCHEDIN, SENSE_ROOMGRIDSYNC, SENSE_ROOMNOMOVEMENT, SENSE_ROOMUNEXPLORABLE, SENSE_ROOMUNMAPPABLE, SENSE_UNCAMPABLE, SENSE_UNDESTROYABLE, SENSE_UNLOCATABLE, STAT_ABILITY, STAT_ARMOR, STAT_ATTACK, STAT_DAMAGE, STAT_DESCS, STAT_DISPOSITION, STAT_HEIGHT, STAT_LEVEL, STAT_REJUV, STAT_SENSES, STAT_WEIGHT| Constructor | Description | 
|---|---|
| DefaultPhyStats() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| int | ability() | Returns the ability level (a secondary level, e.g. | 
| void | addAmbiance(java.lang.String ambiance) | Adds an ambiance (extra word, visible field) to the list that are tacked
 onto the display text of this Physical. | 
| java.lang.String[] | ambiances() | Returns a list of ambiances (extra words, visible fields) that are tacked
 onto the display text of this Physical. | 
| int | armor() | Returns the defensive capability number of this Physical, unless the item
 is a weapon, in which case this is a 32 bit masked flag representing
 min/max range, and ammo capacity. | 
| int | attackAdjustment() | Returns the rawcombat attack prowess of this Physical
 Usually mobs or weapons | 
| int | compareTo(CMObject o) | |
| void | copyInto(PhyStats intoStats) | Copies the internal data of this object into another of kind. | 
| CMObject | copyOf() | Similar to Cloneable.clone(), but does its best to make sure that
 any internal objects to this class are also copyOfed. | 
| int | damage() | Returns the maximum damaging ability of this Physical | 
| void | delAmbiance(java.lang.String ambiance) | Removes an ambiance (extra word, visible field) from the list that are tacked
 onto the display text of this Physical. | 
| int | disposition() | Returns a bitmask for disposition related flags of Physicals (IS_ constants). | 
| protected int | getCodeNum(java.lang.String code) | |
| java.lang.String | getCombatStats() | Returns a single string summary of several important stats from this object. | 
| int | getSaveStatIndex() | Returns the index into the stat codes array where extra savable fields begins. | 
| int | getStat(int statNum) | Get the value of one of the STAT_ constants from the PhyStats interface. | 
| 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 | height() | Returns the height of this Physical, in inches | 
| java.lang.String | ID() | The CoffeeMud Java Class ID shared by all instances of
 this object. | 
| void | initializeClass() | Called ONCE after all objects are loaded, but before the map is read in
 during initialization. | 
| boolean | isAmbiance(PhyStats.Ambiance ambiance) | Check to see if the given ambiance exists in the list. | 
| boolean | isAmbiance(java.lang.String ambiance) | Check to see if the given ambiance exists in the list. | 
| boolean | isStat(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. | 
| int | level() | Returns the experience level of the mob, item, exit, Physical. | 
| int | movesReqToPull() | Returns the number of move points required to pull
 It is derived from the weight. | 
| int | movesReqToPush() | Returns the number of move points required to push
 It is derived from the weight. | 
| java.lang.String | name() | The displayable name of this object. | 
| CMObject | newInstance() | Returns a new instance of this class. | 
| java.lang.String | newName() | Returns a modified name for this Physical, usually null for no change. | 
| int | rejuv() | Returns the number of ticks before a Physical removed from the game
 (due to death, destruction, or just removal from home) is restored. | 
| void | reset() | Resets all the stats in this object to their factory defaults. | 
| boolean | sameAs(PhyStats E) | Returns whether the given object is substantially the same as this one | 
| int | sensesMask() | Returns a bitmask for sense related flags of mobs (CAN_ constants), or
 miscellaneous runtime flags for items and other Physicals (SENSE_ constants). | 
| void | setAbility(int newAdjustment) | Sets the ability level (a secondary level, e.g. | 
| void | setAllValues(int def) | Sets all the stats in this object to the given value | 
| void | setArmor(int newArmor) | Sets the defensive capability number of this Physical, unless the item
 is a weapon, in which case this is a 32 bit masked flag representing
 min/max range, and ammo capacity. | 
| void | setAttackAdjustment(int newAdjustment) | Sets the rawcombat attack prowess of this Physical
 Usually mobs or weapons | 
| void | setDamage(int newDamage) | Sets the maximum damaging ability of this Physical | 
| void | setDisposition(int newDisposition) | Sets a bitmask for disposition related flags of Physicals (IS_ constants). | 
| void | setHeight(int newHeight) | Sets the height of this Physical, in inches | 
| void | setLevel(int newLevel) | Sets the experience level of the mob, item, exit, Physical. | 
| void | setName(java.lang.String newName) | Sets a modified name for this Physical, usually null for no change. | 
| void | setRejuv(int newRejuv) | Sets the number of ticks before a Physical removed from the game
 (due to death, destruction, or just removal from home) is restored. | 
| void | setSensesMask(int newMask) | Sets a bitmask for sense related flags of mobs (CAN_ constants), or
 miscellaneous runtime flags for items and other Physicals (SENSE_ constants). | 
| void | setSpeed(double newSpeed) | Sets the number of actions this mob can do per tick | 
| void | setStat(int statNum,
       int value) | Set the value of one of the STAT_ constants from the PhyStats interface. | 
| 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. | 
| void | setWeight(int newWeight) | Sets the weight of this Physical, in pounds. | 
| double | speed() | Returns the number of actions this mob can do per tick. | 
| int | weight() | Returns the weight of this Physical, in pounds. | 
protected int[] stats
protected double speed
protected java.lang.String replacementName
protected java.lang.String[] ambiances
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public void setAllValues(int def)
PhyStatssetAllValues in interface PhyStatsdef - a value to set all the stats topublic void reset()
PhyStatspublic int sensesMask()
PhyStatssensesMask in interface PhyStatsPhyStats.SENSE_ITEMNOREMOVE, 
PhyStats.CAN_NOT_SEE, 
PhyStats.setSensesMask(int)public int disposition()
PhyStatsdisposition in interface PhyStatsPhyStats.IS_BONUS, 
PhyStats.setDisposition(int)public int level()
PhyStatslevel in interface PhyStatsPhyStats.setLevel(int)public int ability()
PhyStatsability in interface PhyStatsPhyStats.setAbility(int)public int rejuv()
PhyStatsrejuv in interface PhyStatsPhyStats.setRejuv(int)public int weight()
PhyStatsweight in interface PhyStatsPhyStats.setWeight(int)public int height()
PhyStatsheight in interface PhyStatsPhyStats.setHeight(int)public int armor()
PhyStatsWeapon.MASK_MAXRANGEBITSarmor in interface PhyStatsPhyStats.setArmor(int)public int damage()
PhyStatsdamage in interface PhyStatsPhyStats.setDamage(int)public double speed()
PhyStatsspeed in interface PhyStatsPhyStats.setSpeed(double)public int attackAdjustment()
PhyStatsattackAdjustment in interface PhyStatsPhyStats.setAttackAdjustment(int)public java.lang.String newName()
PhyStatsnewName in interface PhyStatsPhyStats.setName(String)public java.lang.String[] ambiances()
PhyStatsambiances in interface PhyStatsPhyStats.addAmbiance(String), 
PhyStats.delAmbiance(String), 
PhyStats.isAmbiance(String)public void setRejuv(int newRejuv)
PhyStatssetRejuv in interface PhyStatsnewRejuv - the new number of ticks before rejuv (0==never)PhyStats.rejuv()public void setLevel(int newLevel)
PhyStatssetLevel in interface PhyStatsnewLevel - the new experience levelPhyStats.level()public void setArmor(int newArmor)
PhyStatsWeapon.MASK_MAXRANGEBITSsetArmor in interface PhyStatsnewArmor - the defensive capability number of this PhysicalPhyStats.armor()public void setDamage(int newDamage)
PhyStatssetDamage in interface PhyStatsnewDamage - the new maximum damaging ability of this PhysicalPhyStats.damage()public void setWeight(int newWeight)
PhyStatssetWeight in interface PhyStatsnewWeight - the new weight of this PhysicalPhyStats.weight()public void setSpeed(double newSpeed)
PhyStatssetSpeed in interface PhyStatsnewSpeed - the new number of actions this mob can do per tickPhyStats.speed()public void setAttackAdjustment(int newAdjustment)
PhyStatssetAttackAdjustment in interface PhyStatsnewAdjustment - the new raw combat attack prowess of this PhysicalPhyStats.attackAdjustment()public void setAbility(int newAdjustment)
PhyStatssetAbility in interface PhyStatsnewAdjustment - the new ability level (or misc integer)PhyStats.ability()public void setDisposition(int newDisposition)
PhyStatssetDisposition in interface PhyStatsnewDisposition - a bitmask of disposition flagsPhyStats.IS_BONUS, 
PhyStats.disposition()public void setSensesMask(int newMask)
PhyStatssetSensesMask in interface PhyStatsnewMask - a bitmask made up of SENSE_ constants or CAN_ constantsPhyStats.SENSE_ITEMNOREMOVE, 
PhyStats.CAN_NOT_SEE, 
PhyStats.setSensesMask(int)public void setHeight(int newHeight)
PhyStatssetHeight in interface PhyStatsnewHeight - the new height of this Physical, in inches (0=indeterminate)PhyStats.height()public void setName(java.lang.String newName)
PhyStatssetName in interface PhyStatsnewName - the modified name, or nullPhyStats.newName()public int getStat(int statNum)
PhyStatspublic void setStat(int statNum,
                    int value)
PhyStatspublic java.lang.String getCombatStats()
PhyStatsgetCombatStats in interface PhyStatspublic void addAmbiance(java.lang.String ambiance)
PhyStatsaddAmbiance in interface PhyStatsambiance - a new ambiance stringPhyStats.ambiances(), 
PhyStats.delAmbiance(String), 
PhyStats.isAmbiance(String), 
PhyStats.isAmbiance(Ambiance), 
PhyStats.Ambiancepublic void delAmbiance(java.lang.String ambiance)
PhyStatsdelAmbiance in interface PhyStatsambiance - the old ambiance stringPhyStats.ambiances(), 
PhyStats.addAmbiance(String), 
PhyStats.isAmbiance(String)public boolean isAmbiance(java.lang.String ambiance)
PhyStatsisAmbiance in interface PhyStatsambiance - the ambiance to look forPhyStats.addAmbiance(String), 
PhyStats.delAmbiance(String), 
PhyStats.ambiances(), 
PhyStats.Ambiance, 
PhyStats.isAmbiance(Ambiance)public boolean isAmbiance(PhyStats.Ambiance ambiance)
PhyStatsisAmbiance in interface PhyStatsambiance - the ambiance to look forPhyStats.addAmbiance(String), 
PhyStats.delAmbiance(String), 
PhyStats.ambiances(), 
PhyStats.Ambiance, 
PhyStats.isAmbiance(String)public int movesReqToPull()
PhyStatsmovesReqToPull in interface PhyStatspublic int movesReqToPush()
PhyStatsmovesReqToPush in interface PhyStatspublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic void copyInto(PhyStats intoStats)
PhyStatspublic CMObject copyOf()
CMObjectpublic int getSaveStatIndex()
ModifiablegetSaveStatIndex in interface ModifiableModifiable.getStatCodes(), 
Modifiable.getStat(String), 
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
ModifiablegetStatCodes in interface ModifiableModifiable.getStat(String), 
Modifiable.setStat(String, String)public boolean isStat(java.lang.String code)
ModifiableisStat in interface Modifiablecode - the name of the field to read.Modifiable.getStatCodes()protected int getCodeNum(java.lang.String code)
public boolean sameAs(PhyStats E)
PhyStatspublic void setStat(java.lang.String code,
                    java.lang.String val)
ModifiablesetStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public java.lang.String getStat(java.lang.String code)
ModifiablegetStat in interface Modifiablecode - the name of the field to read.Modifiable.getStatCodes()