PhyStats.Ambiance
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String[] |
ambiances |
|
protected java.lang.String |
replacementName |
|
protected double |
speed |
|
protected int[] |
stats |
idConverter
ALLMASK, 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()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public void setAllValues(int def)
PhyStats
setAllValues
in interface PhyStats
def
- a value to set all the stats topublic void reset()
PhyStats
public int sensesMask()
PhyStats
sensesMask
in interface PhyStats
PhyStats.SENSE_ITEMNOREMOVE
,
PhyStats.CAN_NOT_SEE
,
PhyStats.setSensesMask(int)
public int disposition()
PhyStats
disposition
in interface PhyStats
PhyStats.IS_BONUS
,
PhyStats.setDisposition(int)
public int level()
PhyStats
level
in interface PhyStats
PhyStats.setLevel(int)
public int ability()
PhyStats
ability
in interface PhyStats
PhyStats.setAbility(int)
public int rejuv()
PhyStats
rejuv
in interface PhyStats
PhyStats.setRejuv(int)
public int weight()
PhyStats
weight
in interface PhyStats
PhyStats.setWeight(int)
public int height()
PhyStats
height
in interface PhyStats
PhyStats.setHeight(int)
public int armor()
PhyStats
Weapon.MASK_MAXRANGEBITS
armor
in interface PhyStats
PhyStats.setArmor(int)
public int damage()
PhyStats
damage
in interface PhyStats
PhyStats.setDamage(int)
public double speed()
PhyStats
speed
in interface PhyStats
PhyStats.setSpeed(double)
public int attackAdjustment()
PhyStats
attackAdjustment
in interface PhyStats
PhyStats.setAttackAdjustment(int)
public java.lang.String newName()
PhyStats
newName
in interface PhyStats
PhyStats.setName(String)
public java.lang.String[] ambiances()
PhyStats
ambiances
in interface PhyStats
PhyStats.addAmbiance(String)
,
PhyStats.delAmbiance(String)
,
PhyStats.isAmbiance(String)
public void setRejuv(int newRejuv)
PhyStats
setRejuv
in interface PhyStats
newRejuv
- the new number of ticks before rejuv (0==never)PhyStats.rejuv()
public void setLevel(int newLevel)
PhyStats
setLevel
in interface PhyStats
newLevel
- the new experience levelPhyStats.level()
public void setArmor(int newArmor)
PhyStats
Weapon.MASK_MAXRANGEBITS
setArmor
in interface PhyStats
newArmor
- the defensive capability number of this PhysicalPhyStats.armor()
public void setDamage(int newDamage)
PhyStats
setDamage
in interface PhyStats
newDamage
- the new maximum damaging ability of this PhysicalPhyStats.damage()
public void setWeight(int newWeight)
PhyStats
setWeight
in interface PhyStats
newWeight
- the new weight of this PhysicalPhyStats.weight()
public void setSpeed(double newSpeed)
PhyStats
setSpeed
in interface PhyStats
newSpeed
- the new number of actions this mob can do per tickPhyStats.speed()
public void setAttackAdjustment(int newAdjustment)
PhyStats
setAttackAdjustment
in interface PhyStats
newAdjustment
- the new raw combat attack prowess of this PhysicalPhyStats.attackAdjustment()
public void setAbility(int newAdjustment)
PhyStats
setAbility
in interface PhyStats
newAdjustment
- the new ability level (or misc integer)PhyStats.ability()
public void setDisposition(int newDisposition)
PhyStats
setDisposition
in interface PhyStats
newDisposition
- a bitmask of disposition flagsPhyStats.IS_BONUS
,
PhyStats.disposition()
public void setSensesMask(int newMask)
PhyStats
setSensesMask
in interface PhyStats
newMask
- a bitmask made up of SENSE_ constants or CAN_ constantsPhyStats.SENSE_ITEMNOREMOVE
,
PhyStats.CAN_NOT_SEE
,
PhyStats.setSensesMask(int)
public void setHeight(int newHeight)
PhyStats
setHeight
in interface PhyStats
newHeight
- the new height of this Physical, in inches (0=indeterminate)PhyStats.height()
public void setName(java.lang.String newName)
PhyStats
setName
in interface PhyStats
newName
- the modified name, or nullPhyStats.newName()
public int getStat(int statNum)
PhyStats
public void setStat(int statNum, int value)
PhyStats
public java.lang.String getCombatStats()
PhyStats
getCombatStats
in interface PhyStats
public void addAmbiance(java.lang.String ambiance)
PhyStats
addAmbiance
in interface PhyStats
ambiance
- a new ambiance stringPhyStats.ambiances()
,
PhyStats.delAmbiance(String)
,
PhyStats.isAmbiance(String)
,
PhyStats.isAmbiance(Ambiance)
,
PhyStats.Ambiance
public void delAmbiance(java.lang.String ambiance)
PhyStats
delAmbiance
in interface PhyStats
ambiance
- the old ambiance stringPhyStats.ambiances()
,
PhyStats.addAmbiance(String)
,
PhyStats.isAmbiance(String)
public boolean isAmbiance(java.lang.String ambiance)
PhyStats
isAmbiance
in interface PhyStats
ambiance
- the ambiance to look forPhyStats.addAmbiance(String)
,
PhyStats.delAmbiance(String)
,
PhyStats.ambiances()
,
PhyStats.Ambiance
,
PhyStats.isAmbiance(Ambiance)
public boolean isAmbiance(PhyStats.Ambiance ambiance)
PhyStats
isAmbiance
in interface PhyStats
ambiance
- the ambiance to look forPhyStats.addAmbiance(String)
,
PhyStats.delAmbiance(String)
,
PhyStats.ambiances()
,
PhyStats.Ambiance
,
PhyStats.isAmbiance(String)
public int movesReqToPull()
PhyStats
movesReqToPull
in interface PhyStats
public int movesReqToPush()
PhyStats
movesReqToPush
in interface PhyStats
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public void copyInto(PhyStats intoStats)
PhyStats
public CMObject copyOf()
CMObject
public int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
protected int getCodeNum(java.lang.String code)
public boolean sameAs(PhyStats E)
PhyStats
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()