|
|||||||||
| 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.StdLimb
public class StdLimb
| Field Summary | |
|---|---|
protected int |
partnum
|
protected long |
wearplace
|
| 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.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 | |
|---|---|
StdLimb()
|
|
| Method Summary | |
|---|---|
void |
affectCharStats(MOB affected,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
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. |
protected boolean |
canWearComplete(MOB mob)
|
boolean |
fitsOn(long wornCode)
Whether this item is designated as being wearable on the given worn codes defined in the Item interface. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
okMessage(Environmental host,
CMMsg msg)
The general message event previewer for the object. |
protected int |
partNum()
|
void |
setName(java.lang.String name)
Sets the raw unmodified name of this object as stored in the database. |
void |
setSecretIdentity(java.lang.String id)
This method is used to change the string returned by rawSecretIdentity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int partnum
protected long wearplace
| Constructor Detail |
|---|
public StdLimb()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdItempublic void setName(java.lang.String name)
Environmental
setName in interface EnvironmentalsetName in class StdItemname - the raw base name of this object on the map.Environmental.Name()
public boolean okMessage(Environmental host,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdItemhost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()public void setSecretIdentity(java.lang.String id)
Item
setSecretIdentity in interface ItemsetSecretIdentity in class StdItemid - the secret properties of this item. Empty string means it has none.protected int partNum()
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 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.
Itempublic boolean fitsOn(long wornCode)
Item
fitsOn in interface ItemfitsOn in class StdItemwornCode - the worn code to check, as defined in the Item interface
Itemprotected boolean canWearComplete(MOB mob)
canWearComplete in class StdItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||