|
|||||||||
| 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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Armor |
|---|
Armor.SizeDeviation |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
Wearable.CODES |
| Field Summary | |
|---|---|
protected short |
layer
|
protected short |
layerAttributes
|
protected int |
partnum
|
protected java.lang.String |
raceID
|
protected long |
wearplace
|
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
|---|
affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Armor |
|---|
LAYERMASK_DESCS, LAYERMASK_MULTIWEAR, LAYERMASK_SEETHROUGH |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, 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_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD |
| 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. |
int |
getBodyPartCode()
Gets the racial body part code that corresponds with the part of the body that this false limb replaces. |
short |
getClothingLayer()
Returns the layer at which this item is worn. |
short |
getLayerAttributes()
Returns the bitmask for the several layer attribute flags. |
java.lang.String |
getRaceID()
This sets a true false limb from an actual limb apart from each other. |
Armor.SizeDeviation |
getSizingDeviation(MOB mob)
Returns a coded description of how well this item fits on the given mob. |
long |
getWearLocations()
Gets the single wear location that this limb both helps to provide, and appears to be worn underneath other clothing. |
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. |
void |
setBodyPartCode(int partNumber)
Sets the racial body part code that corresponds with the part of the body that this false limb replaces. |
void |
setClothingLayer(short newLayer)
Sets the layer at which this item is worn. |
void |
setLayerAttributes(short newAttributes)
Sets the bitmask for the several layer attribute flags. |
void |
setName(java.lang.String name)
Sets the raw unmodified name of this object as stored in the database. |
void |
setRaceID(java.lang.String raceID)
This sets a true false limb from an actual limb apart from each other. |
void |
setSecretIdentity(java.lang.String id)
This method is used to change the string returned by rawSecretIdentity. |
void |
setWearLocations(long wearPlace)
Sets the single wear location that this limb both helps to provide, and appears to be worn underneath other clothing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
|---|
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider |
|---|
riding, setRiding |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Physical |
|---|
description, displayText, name |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, name, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectPhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
|---|
amDestroyed, destroy, isSavable, setSavable |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable |
|---|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.DBIdentifiable |
|---|
canSaveDatabaseID, databaseID, setDatabaseID |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
amBeingWornProperly, amWearingAt, compareProperLocations, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Readable |
|---|
isReadable, readableText, setReadable, setReadableText |
| Field Detail |
|---|
protected java.lang.String raceID
protected int partnum
protected long wearplace
protected short layer
protected short layerAttributes
| 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.public int getBodyPartCode()
FalseLimb
getBodyPartCode in interface FalseLimbRace.BODYPARTSTR,
FalseLimb.setBodyPartCode(int)public void setBodyPartCode(int partNumber)
FalseLimb
setBodyPartCode in interface FalseLimbpartNumber - the racial body part codeRace.BODYPARTSTR,
FalseLimb.getBodyPartCode()public long getWearLocations()
FalseLimb
getWearLocations in interface FalseLimbWearable.DEFAULT_WORN_DESCS,
FalseLimb.setWearLocations(long)public void setWearLocations(long wearPlace)
FalseLimb
setWearLocations in interface FalseLimbwearPlace - the single wear location bit valueWearable.DEFAULT_WORN_DESCS,
FalseLimb.getWearLocations()public Armor.SizeDeviation getSizingDeviation(MOB mob)
Armor
getSizingDeviation in interface Armormob - the mob to compare the fittability of this armor to
Armor.SizeDeviation
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)
Wearable
canWear in interface WearablecanWear 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)
Wearable
fitsOn in interface WearablefitsOn in class StdItemwornCode - the worn code to check, as defined in the Item interface
Itemprotected boolean canWearComplete(MOB mob)
public short getClothingLayer()
Armor
getClothingLayer in interface ArmorArmor.setClothingLayer(short)public void setClothingLayer(short newLayer)
Armor
setClothingLayer in interface ArmornewLayer - the layer at which this item is worn.Armor.getClothingLayer()public short getLayerAttributes()
Armor
getLayerAttributes in interface ArmorArmor.setLayerAttributes(short),
Armor.LAYERMASK_DESCS,
Armor.LAYERMASK_MULTIWEAR,
Armor.LAYERMASK_SEETHROUGHpublic void setLayerAttributes(short newAttributes)
Armor
setLayerAttributes in interface ArmornewAttributes - the bitmask for the several layer attribute flagsArmor.getLayerAttributes(),
Armor.LAYERMASK_DESCS,
Armor.LAYERMASK_MULTIWEAR,
Armor.LAYERMASK_SEETHROUGHpublic java.lang.String getRaceID()
FalseLimb
getRaceID in interface FalseLimbCMObject.ID(),
FalseLimb.setRaceID(String)public void setRaceID(java.lang.String raceID)
FalseLimb
setRaceID in interface FalseLimbraceID - the race id or ""CMObject.ID(),
FalseLimb.getRaceID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||