java.lang.Cloneable
, CMCommon
, CMObject
, java.lang.Comparable<CMObject>
, Modifiable
DefaultPhyStats
public interface PhyStats extends CMCommon, Modifiable
Modifiable
,
Affectable.basePhyStats()
,
Affectable.phyStats()
Modifier and Type | Interface | Description |
---|---|---|
static class |
PhyStats.Ambiance |
Official Ambiance system strings, since this is the only
open ended modifiable system.
|
Modifier and Type | Field | Description |
---|---|---|
static long |
ALLMASK |
All bits in a Integer, cast into a long
|
static int |
CAN_GRUNT_WHEN_STUPID |
a bit setting, as from sensesMask(), flagging this mob being able to grunt, when sufficiently stupid
|
static int |
CAN_NOT_AUTO_ATTACK |
a bit setting, as from sensesMask(), flagging this mob as unable to engage in standard combat ticks
|
static int |
CAN_NOT_BE_CAMPED |
a bit setting, as from sensesMask(), flagging this mob as not respawning when being camped
, or is a player exempt from pvp level limits
|
static int |
CAN_NOT_BREATHE |
a bit setting, as from sensesMask(), flagging this mob as unable to breathe
|
static int |
CAN_NOT_HEAR |
a bit setting, as from sensesMask(), flagging this mob as unable to hear
|
static int |
CAN_NOT_MOVE |
a bit setting, as from sensesMask(), flagging this mob as unable to move
|
static int |
CAN_NOT_SEE |
a bit setting, as from sensesMask(), flagging this mob as unable to see
|
static int |
CAN_NOT_SMELL |
a bit setting, as from sensesMask(), flagging this mob as unable to smell
|
static int |
CAN_NOT_SPEAK |
a bit setting, as from sensesMask(), flagging this mob as unable to speak
|
static int |
CAN_NOT_TASTE |
a bit setting, as from sensesMask(), flagging this mob as unable to taste
|
static int |
CAN_NOT_THINK |
a bit setting, as from sensesMask(), flagging this mob as unable to think clearly
|
static int |
CAN_NOT_TRACK |
a bit setting, as from sensesMask(), flagging this mob as unable to engage in long tasks
|
static int |
CAN_SEE_BONUS |
a bit setting, as from sensesMask(), flagging this mob as able to see bonus
|
static java.lang.String[] |
CAN_SEE_CODES |
STAT codes list, indexed by the 2nd root of the various sensesMask() CAN_SEE bitmasks
|
static int |
CAN_SEE_DARK |
a bit setting, as from sensesMask(), flagging this mob as able to see dark
|
static java.lang.String[] |
CAN_SEE_DESCS |
Descriptions, indexed by the 2nd root of the various CAN_SEE sensesMask() bitmasks
|
static int |
CAN_SEE_EVIL |
a bit setting, as from sensesMask(), flagging this mob as able to see evil
|
static int |
CAN_SEE_GOOD |
a bit setting, as from sensesMask(), flagging this mob as able to see good
|
static int |
CAN_SEE_HIDDEN |
a bit setting, as from sensesMask(), flagging this mob as able to see hidden
|
static int |
CAN_SEE_HIDDEN_ITEMS |
a bit setting, as from sensesMask(), flagging this mob as able to see hidden items
|
static int |
CAN_SEE_INFRARED |
a bit setting, as from sensesMask(), flagging this mob as able to see infrared
|
static int |
CAN_SEE_INVISIBLE |
a bit setting, as from sensesMask(), flagging this mob as able to see invisible
|
static int |
CAN_SEE_METAL |
a bit setting, as from sensesMask(), flagging this mob as able to see metals
|
static int |
CAN_SEE_SNEAKERS |
a bit setting, as from sensesMask(), flagging this mob as able to see sneakers
|
static java.lang.String[] |
CAN_SEE_VERBS |
Descriptive verbs, indexed by the 2nd root of the various CAN_SEE sensesMask() bitmasks
|
static int |
CAN_SEE_VICTIM |
a bit setting, as from sensesMask(), flagging this mob as able to see their victims
|
static int |
IS_BONUS |
a bit setting, as from disposition(), flagging this object as being magical
|
static int |
IS_BOUND |
a bit setting, as from disposition(), flagging this object as being bound
|
static int |
IS_CATALOGED |
a bit setting, as from disposition(), flagging this object as being cataloged
|
static int |
IS_CLIMBING |
a bit setting, as from disposition(), flagging this object as climbing
|
static int |
IS_CLOAKED |
a bit setting, as from disposition(), flagging this object as being cloaked
|
static java.lang.String[] |
IS_CODES |
STAT codes, indexed by the 2nd root of the various IS_ disposition() bitmasks
|
static int |
IS_CUSTOM |
a bit setting, as from disposition(), flagging this object as a custom word for the above
|
static int |
IS_DARK |
a bit setting, as from disposition(), flagging this object as being in the dark
|
static java.lang.String[] |
IS_DESCS |
Descriptions, indexed by the 2nd root of the various IS_ disposition() bitmasks
|
static int |
IS_EVIL |
a bit setting, as from disposition(), flagging this object as being evil
|
static int |
IS_FALLING |
a bit setting, as from disposition(), flagging this object as falling (or sinking)
|
static int |
IS_FLYING |
a bit setting, as from disposition(), flagging this object as flying
|
static int |
IS_GLOWING |
a bit setting, as from disposition(), flagging this object as glowing, which is an ambiance
|
static int |
IS_GOLEM |
a bit setting, as from disposition(), flagging this object as being a golem
|
static int |
IS_GOOD |
a bit setting, as from disposition(), flagging this object as being good
|
static int |
IS_HIDDEN |
a bit setting, as from disposition(), flagging this object as being hidden
|
static int |
IS_INVISIBLE |
a bit setting, as from disposition(), flagging this object as being invisible
|
static int |
IS_LIGHTSOURCE |
a bit setting, as from disposition(), flagging this object as being a lightsource, which is NOT an ambiance, but is contageous
|
static int |
IS_NOT_SEEN |
a bit setting, as from disposition(), flagging this object as not being seen
|
static int |
IS_SITTING |
a bit setting, as from disposition(), flagging this object as sitting/crawling
|
static int |
IS_SLEEPING |
a bit setting, as from disposition(), flagging this object as being asleep
|
static int |
IS_SNEAKING |
a bit setting, as from disposition(), flagging this object as sneaking
|
static int |
IS_SWIMMING |
a bit setting, as from disposition(), flagging this object as swimming
|
static int |
IS_UNATTACKABLE |
a bit setting, as from disposition(), flagging this object as being unattackable
|
static int |
IS_UNHELPFUL |
a bit setting, as from disposition(), flagging this object as a non-helping follower, or non-useful exits
|
static int |
IS_UNSAVABLE |
a bit setting, as from disposition(), flagging this object as being unsavable
|
static java.lang.String[] |
IS_VERBS |
Descriptive verbs, indexed by the 2nd root of the various IS_ disposition() bitmasks
|
static int |
NO_REJUV |
Constant shortcut for setting the rejuvenation rate on a mob so that it will NOT rejuv.
|
static int |
NUM_STATS |
the size of the internal stats integer array
|
static int |
ONE_JUV |
Constant shortcut for setting the rejuvenation rate on a mob so that it will exist only at boot.
|
static int |
SENSE_ALWAYSCOMPRESSED |
a bit setting, as from sensesMask(), flagging this item/room is always viewed compressed
|
static java.lang.String[] |
SENSE_CODES |
STAT codes list, indexed by the 2nd root of the various sensesMask() SENSE_ bitmasks
|
static int |
SENSE_CONTENTSUNSEEN |
a bit setting, as from sensesMask(), flagging this item/room as having unseeable contents
|
static int |
SENSE_HIDDENINPLAINSIGHT |
a bit setting, as from sensesMask(), flagging this ...
|
static int |
SENSE_INSIDEACCESSIBLE |
a bit setting, as from sensesMask(), flagging this ...
|
static int |
SENSE_ITEMNOAUTOWEAR |
a bit setting, as from sensesMask(), flagging this item as not being auto-wearable in percolator
|
static int |
SENSE_ITEMNODROP |
a bit setting, as from sensesMask(), flagging this item/room as undroppable
|
static int |
SENSE_ITEMNOREMOVE |
a bit setting, as from sensesMask(), flagging this item/room as unremovable
|
static int |
SENSE_ITEMNORUIN |
a bit setting, as from sensesMask(), flagging this item/room as being unruinable
|
static int |
SENSE_ITEMNOSCRAP |
a bit setting, as from sensesMask(), flagging this as being unscrappable ...
|
static int |
SENSE_ITEMNOTGET |
a bit setting, as from sensesMask(), flagging this item/room as ungettable
|
static int |
SENSE_ITEMNOWISH |
a bit setting, as from sensesMask(), flagging this item/room being unwishable for
|
static int |
SENSE_ITEMREADABLE |
a bit setting, as from sensesMask(), flagging this item/room as readable
|
static int |
SENSE_ROOMCRUNCHEDIN |
a bit setting, as from sensesMask(), flagging this room as allowing GET even when sitting
|
static int |
SENSE_ROOMGRIDSYNC |
a bit setting, as from sensesMask(), flagging this item/room as being flagged for synchronization
|
static int |
SENSE_ROOMNOMOVEMENT |
a bit setting, as from sensesMask(), flagging this item/room as not allowing movement
|
static int |
SENSE_ROOMUNEXPLORABLE |
a bit setting, as from sensesMask(), flagging this item/room as being unexplorable
|
static int |
SENSE_ROOMUNMAPPABLE |
a bit setting, as from sensesMask(), flagging this item/room as being unmappable
|
static int |
SENSE_UNCAMPABLE |
a bit setting, as from sensesMask(), flagging this mob as not respawning when being camped
|
static int |
SENSE_UNDESTROYABLE |
a bit setting, as from sensesMask(), flagging this item/room and unable to be destroyed
|
static int |
SENSE_UNLOCATABLE |
a bit setting, as from sensesMask(), flagging this item/room as being unlocatable
|
static int |
STAT_ABILITY |
an index into the internal stats integer array for ability
|
static int |
STAT_ARMOR |
an index into the internal stats integer array for armor
|
static int |
STAT_ATTACK |
an index into the internal stats integer array for attack
|
static int |
STAT_DAMAGE |
an index into the internal stats integer array for damage
|
static java.lang.String[] |
STAT_DESCS |
Descriptions for the above
|
static int |
STAT_DISPOSITION |
an index into the internal stats integer array for disposition
|
static int |
STAT_HEIGHT |
an index into the internal stats integer array for height
|
static int |
STAT_LEVEL |
an index into the internal stats integer array for level
|
static int |
STAT_REJUV |
an index into the internal stats integer array for rejuv
|
static int |
STAT_SENSES |
an index into the internal stats integer array for senses
|
static int |
STAT_WEIGHT |
an index into the internal stats integer array for weight
|
idConverter
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
|
void |
copyInto(PhyStats intoStats) |
Copies the internal data of this object into another of kind.
|
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).
|
java.lang.String |
getCombatStats() |
Returns a single string summary of several important stats from this object.
|
int |
getStat(int statNum) |
Get the value of one of the STAT_ constants from the PhyStats interface.
|
int |
height() |
Returns the height of this Physical, in inches
|
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.
|
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 |
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 |
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.
|
copyOf, ID, initializeClass, name, newInstance
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
static final int NO_REJUV
static final int ONE_JUV
static final int STAT_LEVEL
static final int STAT_SENSES
static final int STAT_ARMOR
static final int STAT_DAMAGE
static final int STAT_ATTACK
static final int STAT_DISPOSITION
static final int STAT_REJUV
static final int STAT_WEIGHT
static final int STAT_ABILITY
static final int STAT_HEIGHT
static final int NUM_STATS
static final java.lang.String[] STAT_DESCS
static final int CAN_NOT_SEE
static final int CAN_SEE_HIDDEN
static final int CAN_SEE_INVISIBLE
static final int CAN_SEE_EVIL
static final int CAN_SEE_GOOD
static final int CAN_SEE_SNEAKERS
static final int CAN_SEE_BONUS
static final int CAN_SEE_DARK
static final int CAN_SEE_INFRARED
static final int CAN_NOT_HEAR
static final int CAN_NOT_MOVE
static final int CAN_NOT_SMELL
static final int CAN_NOT_TASTE
static final int CAN_NOT_SPEAK
static final int CAN_NOT_BREATHE
static final int CAN_SEE_VICTIM
static final int CAN_SEE_METAL
static final int CAN_NOT_THINK
static final int CAN_NOT_TRACK
static final int CAN_NOT_AUTO_ATTACK
static final int CAN_NOT_BE_CAMPED
static final int CAN_GRUNT_WHEN_STUPID
static final int CAN_SEE_HIDDEN_ITEMS
static final java.lang.String[] CAN_SEE_CODES
static final java.lang.String[] CAN_SEE_DESCS
static final java.lang.String[] CAN_SEE_VERBS
static final int SENSE_UNLOCATABLE
static final int SENSE_ITEMREADABLE
static final int SENSE_ITEMNOTGET
static final int SENSE_ITEMNODROP
static final int SENSE_ITEMNOREMOVE
static final int SENSE_CONTENTSUNSEEN
static final int SENSE_ROOMCRUNCHEDIN
static final int SENSE_ITEMNOAUTOWEAR
static final int SENSE_ROOMUNEXPLORABLE
static final int SENSE_ROOMNOMOVEMENT
static final int SENSE_ROOMUNMAPPABLE
static final int SENSE_ROOMGRIDSYNC
static final int SENSE_ITEMNORUIN
static final int SENSE_ITEMNOWISH
static final int SENSE_ALWAYSCOMPRESSED
static final int SENSE_UNDESTROYABLE
static final int SENSE_INSIDEACCESSIBLE
static final int SENSE_ITEMNOSCRAP
static final int SENSE_HIDDENINPLAINSIGHT
static final int SENSE_UNCAMPABLE
static final java.lang.String[] SENSE_CODES
static final long ALLMASK
static final int IS_NOT_SEEN
static final int IS_HIDDEN
static final int IS_INVISIBLE
static final int IS_EVIL
static final int IS_GOOD
static final int IS_SNEAKING
static final int IS_BONUS
static final int IS_DARK
static final int IS_GOLEM
static final int IS_SLEEPING
static final int IS_SITTING
static final int IS_FLYING
static final int IS_SWIMMING
static final int IS_GLOWING
static final int IS_CLIMBING
static final int IS_FALLING
static final int IS_LIGHTSOURCE
static final int IS_BOUND
static final int IS_CLOAKED
static final int IS_UNSAVABLE
static final int IS_CATALOGED
static final int IS_UNATTACKABLE
static final int IS_CUSTOM
static final int IS_UNHELPFUL
static final java.lang.String[] IS_CODES
static final java.lang.String[] IS_DESCS
static final java.lang.String[] IS_VERBS
int sensesMask()
SENSE_ITEMNOREMOVE
,
CAN_NOT_SEE
,
setSensesMask(int)
void setSensesMask(int newMask)
newMask
- a bitmask made up of SENSE_ constants or CAN_ constantsSENSE_ITEMNOREMOVE
,
CAN_NOT_SEE
,
setSensesMask(int)
int disposition()
IS_BONUS
,
setDisposition(int)
void setDisposition(int newDisposition)
newDisposition
- a bitmask of disposition flagsIS_BONUS
,
disposition()
int level()
setLevel(int)
void setLevel(int newLevel)
newLevel
- the new experience levellevel()
int ability()
setAbility(int)
void setAbility(int newAdjustment)
newAdjustment
- the new ability level (or misc integer)ability()
int rejuv()
setRejuv(int)
void setRejuv(int newRejuv)
newRejuv
- the new number of ticks before rejuv (0==never)rejuv()
int weight()
setWeight(int)
void setWeight(int newWeight)
newWeight
- the new weight of this Physicalweight()
int movesReqToPull()
int movesReqToPush()
int height()
setHeight(int)
void setHeight(int newHeight)
newHeight
- the new height of this Physical, in inches (0=indeterminate)height()
int armor()
Weapon.MASK_MAXRANGEBITS
setArmor(int)
void setArmor(int newArmor)
Weapon.MASK_MAXRANGEBITS
newArmor
- the defensive capability number of this Physicalarmor()
int damage()
setDamage(int)
void setDamage(int newDamage)
newDamage
- the new maximum damaging ability of this Physicaldamage()
double speed()
setSpeed(double)
void setSpeed(double newSpeed)
newSpeed
- the new number of actions this mob can do per tickspeed()
int attackAdjustment()
setAttackAdjustment(int)
void setAttackAdjustment(int newAdjustment)
newAdjustment
- the new raw combat attack prowess of this PhysicalattackAdjustment()
java.lang.String newName()
setName(String)
void setName(java.lang.String newName)
newName
- the modified name, or nullnewName()
java.lang.String[] ambiances()
addAmbiance(String)
,
delAmbiance(String)
,
isAmbiance(String)
boolean isAmbiance(java.lang.String ambiance)
ambiance
- the ambiance to look foraddAmbiance(String)
,
delAmbiance(String)
,
ambiances()
,
PhyStats.Ambiance
,
isAmbiance(Ambiance)
boolean isAmbiance(PhyStats.Ambiance ambiance)
ambiance
- the ambiance to look foraddAmbiance(String)
,
delAmbiance(String)
,
ambiances()
,
PhyStats.Ambiance
,
isAmbiance(String)
void addAmbiance(java.lang.String ambiance)
ambiance
- a new ambiance stringambiances()
,
delAmbiance(String)
,
isAmbiance(String)
,
isAmbiance(Ambiance)
,
PhyStats.Ambiance
void delAmbiance(java.lang.String ambiance)
ambiance
- the old ambiance stringambiances()
,
addAmbiance(String)
,
isAmbiance(String)
java.lang.String getCombatStats()
boolean sameAs(PhyStats E)
E
- the PhyStats to compare tovoid copyInto(PhyStats intoStats)
intoStats
- another PhyStats object.void setAllValues(int def)
def
- a value to set all the stats toint getStat(int statNum)
statNum
- which STAT_ constant to get a value forPhyStats
void setStat(int statNum, int value)
statNum
- which STAT_ constant to get a value forvalue
- the value of the given STATPhyStats
void reset()