|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EnvStats
The EnvStats interface is a state object that holds some basic information about just about every Environmental object in the game. Not all stats are relevant for ALL Environmentals, but most, especially the big ones. Environmentals always keep two instances of this object, a base one, representing his base unmodified state, and current one, representing his state after spells and other affects have had their say.
CMModifiable,
Environmental.baseEnvStats(),
Environmental.envStats()| Field Summary | |
|---|---|
static long |
ALLMASK
All bits in a Integer, cast into a long |
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_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_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_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 |
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 |
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 |
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_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 |
NUM_STATS
the size of the internal stats integer array |
static int |
SENSE_CONTENTSUNSEEN
a bit setting, as from sensesMask(), flagging this item/room as having unseeable contents |
static int |
SENSE_ITEMNEVERSAVED
a bit setting, as from sensesMask(), flagging this item/room as never being savable |
static int |
SENSE_ITEMNODROP
a bit setting, as from sensesMask(), flagging this item/room as undroppable |
static int |
SENSE_ITEMNOMAXRANGE
a bit setting, as from sensesMask(), flagging this item/room |
static int |
SENSE_ITEMNOMINRANGE
a bit setting, as from sensesMask(), flagging this item/room |
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_ITEMNOTGET
a bit setting, as from sensesMask(), flagging this item/room as ungettable |
static int |
SENSE_ITEMREADABLE
a bit setting, as from sensesMask(), flagging this item/room as readable |
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_UNLOCATABLE
a bit setting, as from sensesMask(), flagging this item/room as being unlocatable |
static int |
SENSE_UNUSEDMASK15
a bit setting, as from sensesMask(), flagging this item/room |
static int |
SENSE_UNUSEDMASK16
a bit setting, as from sensesMask(), flagging this item/room |
static int |
SENSE_UNUSEDMASK17
a bit setting, as from sensesMask(), flagging this item/room |
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 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 |
| Method Summary | |
|---|---|
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 Environmental. |
java.lang.String[] |
ambiances()
Returns a list of ambiances (extra words, visible fields) that are tacked onto the display text of this Environmental. |
int |
armor()
Returns the defensive capability number of this Environmental. |
int |
attackAdjustment()
Returns the rawcombat attack prowess of this Environmental Usually mobs or weapons |
void |
copyInto(EnvStats intoStats)
Copies the internal data of this object into another of kind. |
int |
damage()
Returns the maximum damaging ability of this Environmental |
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 Environmental. |
int |
disposition()
Returns a bitmask for disposition related flags of Environmentals (IS_ constants). |
java.lang.String |
getCombatStats()
Returns a single string summary of several important stats from this object. |
int |
height()
Returns the height of this Environmental, in inches |
int |
level()
Returns the experience level of the mob, item, exit, Environmental. |
java.lang.String |
newName()
Returns a modified name for this Environmental, usually null for no change. |
int |
rejuv()
Returns the number of ticks before an Environmental removed from the game (due to death, destruction, or just removal from home) is restored. |
boolean |
sameAs(EnvStats 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 Environmentals (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 Environmental. |
void |
setAttackAdjustment(int newAdjustment)
Sets the rawcombat attack prowess of this Environmental Usually mobs or weapons |
void |
setDamage(int newDamage)
Sets the maximum damaging ability of this Environmental |
void |
setDisposition(int newDisposition)
Sets a bitmask for disposition related flags of Environmentals (IS_ constants). |
void |
setHeight(int newHeight)
Sets the height of this Environmental, in inches |
void |
setLevel(int newLevel)
Sets the experience level of the mob, item, exit, Environmental. |
void |
setName(java.lang.String newName)
Sets a modified name for this Environmental, usually null for no change. |
void |
setRejuv(int newRejuv)
Sets the number of ticks before an Environmental 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 Environmentals (SENSE_ constants). |
void |
setSpeed(double newSpeed)
Sets the number of actions this mob can do per tick |
void |
setWeight(int newWeight)
Sets the weight of this Environmental, in pounds. |
double |
speed()
Returns the number of actions this mob can do per tick. |
int |
weight()
Returns the weight of this Environmental, in pounds. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
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 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 SENSE_UNLOCATABLE
static final int SENSE_ITEMNOMINRANGE
static final int SENSE_ITEMNOMAXRANGE
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_ITEMNEVERSAVED
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_UNUSEDMASK15
static final int SENSE_UNUSEDMASK16
static final int SENSE_UNUSEDMASK17
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 java.lang.String[] CAN_SEE_CODES
static final java.lang.String[] CAN_SEE_DESCS
static final java.lang.String[] CAN_SEE_VERBS
static final java.lang.String[] IS_CODES
static final java.lang.String[] IS_DESCS
static final java.lang.String[] IS_VERBS
| Method Detail |
|---|
int sensesMask()
SENSE_ITEMNEVERSAVED,
CAN_NOT_SEE,
setSensesMask(int)void setSensesMask(int newMask)
newMask - a bitmask made up of SENSE_ constants or CAN_ constantsSENSE_ITEMNEVERSAVED,
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 Environmentalweight()int height()
setHeight(int)void setHeight(int newHeight)
newHeight - the new height of this Environmental, in inches (0=indeterminate)height()int armor()
setArmor(int)void setArmor(int newArmor)
newArmor - the defensive capability number of this Environmentalarmor()int damage()
setDamage(int)void setDamage(int newDamage)
newDamage - the new maximum damaging ability of this Environmentaldamage()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 EnvironmentalattackAdjustment()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)void addAmbiance(java.lang.String ambiance)
ambiance - a new ambiance stringambiances(),
delAmbiance(String)void delAmbiance(java.lang.String ambiance)
ambiance - the old ambiance stringjava.lang.String getCombatStats()
boolean sameAs(EnvStats E)
E - the EnvStats to compare to
void copyInto(EnvStats intoStats)
intoStats - another EnvStats object.void setAllValues(int def)
def - a value to set all the stats to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||