|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Items.Basic.StdItem
com.planet_ink.coffee_mud.Items.Basic.StdContainer
com.planet_ink.coffee_mud.Items.Armor.StdArmor
public class StdArmor
| Field Summary | |
|---|---|
static long |
deviation20
|
static long |
strangeDeviations
|
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
|---|
capacity, containType, hasALid, hasALock, isLocked, isOpen |
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
|---|
affects, baseEnvStats, baseGoldValue, behaviors, CODES, databaseID, description, destroyed, displayText, dispossessionTime, envStats, imageName, material, miscText, myContainer, myUses, myWornCode, name, owner, properWornBitmap, riding, scripts, secretIdentity, tickStatus, wornLogicalAnd, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Armor |
|---|
LAYERMASK_MULTIWEAR, LAYERMASK_SEETHROUGH |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Container |
|---|
CONTAIN_ANYTHING, CONTAIN_BODIES, CONTAIN_CAGED, CONTAIN_CLOTHES, CONTAIN_COINS, CONTAIN_DAGGERS, CONTAIN_DESCS, CONTAIN_DRINKABLES, CONTAIN_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_READABLES, CONTAIN_SCROLLS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
|---|
IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_CODES, WORN_DEPENDENCYGRID, WORN_DESCS, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_ORDER, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WEIGHT_POINTS, WORN_WEIGHTS, WORN_WIELD, WORNREQ_ANY, WORNREQ_UNWORNONLY, WORNREQ_WORNONLY |
| Constructor Summary | |
|---|---|
StdArmor()
|
|
| Method Summary | |
|---|---|
void |
affectCharStats(MOB affected,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
void |
affectEnvStats(Environmental affected,
EnvStats affectableStats)
This method is called by the recoverEnvStats() method on other Environmental objects. |
protected java.lang.String |
armorHealth()
|
boolean |
canWear(MOB mob,
long where)
Returns whether it is practical for the given mob to wear this Item on the given worn location as given by the wornCode. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
short |
getClothingLayer()
|
short |
getLayerAttributes()
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
void |
recoverEnvStats()
This method copies the baseEnvStats() object into the envStats() object, then makes repeated calls to all surrounding objects with affectEnvStats(Environmental,EnvStats) method. |
java.lang.String |
secretIdentity()
This method returns the calculated and expanded description of the properties of the item as would be discovered through the Identify spell. |
void |
setClothingLayer(short newLayer)
|
void |
setLayerAttributes(short newAttributes)
|
void |
setUsesRemaining(int newUses)
Sets the uses remaining field, which is a general numeric value whose meaning differs for different Item types. |
boolean |
subjectToWearAndTear()
Whether the usesRemaining() number above is used to determine the percentage health of the item. |
int |
value()
The default value of the item, represented in the base CoffeeMud currency. |
| Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
|---|
canContain, capacity, containTypes, emptyPlease, getContents, hasALid, hasALock, isLocked, isOpen, keyName, reallyGetContents, setCapacity, setContainTypes, setKeyName, setLidsNLocks, setMiscText, tick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Container |
|---|
canContain, capacity, containTypes, emptyPlease, getContents, hasALid, hasALock, isLocked, isOpen, keyName, setCapacity, setContainTypes, setKeyName, setLidsNLocks |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
|---|
amWearingAt, baseGoldValue, compareProperLocations, container, databaseID, fitsOn, material, numberOfItems, owner, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, readableText, recursiveWeight, removeFromOwnerContainer, setBaseValue, setContainer, setDatabaseID, setMaterial, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadableText, setSecretIdentity, stopTicking, ultimateContainer, unWear, usesRemaining, wearAt, wearEvenIfImpossible, wearIfPossible, whereCantWear |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider |
|---|
riding, setRiding |
| Field Detail |
|---|
public static final long strangeDeviations
public static final long deviation20
| Constructor Detail |
|---|
public StdArmor()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdContainerpublic void setUsesRemaining(int newUses)
Item
setUsesRemaining in interface ItemsetUsesRemaining in class StdItemnewUses - a new general numeric value for this field.public short getClothingLayer()
getClothingLayer in interface Armorpublic void setClothingLayer(short newLayer)
setClothingLayer in interface Armorpublic short getLayerAttributes()
getLayerAttributes in interface Armorpublic void setLayerAttributes(short newAttributes)
setLayerAttributes in interface Armor
public boolean canWear(MOB mob,
long where)
Item
canWear in interface ItemcanWear in class StdItemmob - the player or mob being evaluatedwhere - the worn location to check and see if this Item can be worn there.
Itemprotected java.lang.String armorHealth()
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdContainermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdContainermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic void recoverEnvStats()
Environmental
recoverEnvStats in interface EnvironmentalrecoverEnvStats in class StdItemEnvironmental.baseEnvStats(),
Environmental.envStats(),
Environmental.addEffect(Ability),
Behavable.addBehavior(Behavior),
EnvStats
public void affectEnvStats(Environmental affected,
EnvStats affectableStats)
StatsAffecting
affectEnvStats in interface StatsAffectingaffectEnvStats in class StdItemaffected - the host of the EnvStats object being affectedaffectableStats - the particular EnvStats object being affectedEnvStats,
Environmental,
Environmental.baseEnvStats(),
Environmental.envStats(),
Environmental.recoverEnvStats()
public void affectCharStats(MOB affected,
CharStats affectableStats)
StatsAffecting
affectCharStats in interface StatsAffectingaffectCharStats in class StdItemaffected - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()public int value()
Item
value in interface Itemvalue in class StdItempublic boolean subjectToWearAndTear()
Item
subjectToWearAndTear in interface ItemsubjectToWearAndTear in class StdItempublic java.lang.String secretIdentity()
Item
secretIdentity in interface ItemsecretIdentity in class StdItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||