|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Item
The interface for all common items, and as a base for RawMaterial, armor, weapons, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
---|
Wearable.CODES |
Field Summary |
---|
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 |
Method Summary | |
---|---|
int |
baseGoldValue()
The user/builder-entered value of the item, represented in base CoffeeMud currency. |
Container |
container()
Where the item is located. |
int |
material()
The resource code representing the material out of which this item is principally made. |
int |
numberOfItems()
How many items this Item object represents. |
ItemPossessor |
owner()
The Room or MOB representing where this item is located. |
java.lang.String |
rawSecretIdentity()
This method returns those secret properties of the item which are entered directly by the builder when the item is designed. |
int |
recursiveWeight()
For a normal item, this method returns the same as phyStats().weight(). |
void |
removeFromOwnerContainer()
This method basically calls setContainer(null), and then removes this item from its owner(). |
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 |
setBaseValue(int newValue)
Changes the base value of the item, represented in base CoffeeMud currency. |
void |
setContainer(Container newLocation)
Change the container where the item is located. |
void |
setMaterial(int newValue)
Sets the resource code representing the material out of which this item is principally made. |
void |
setOwner(ItemPossessor E)
Sets the Room or MOB representing where this item is located. |
void |
setSecretIdentity(java.lang.String newIdentity)
This method is used to change the string returned by rawSecretIdentity. |
void |
setUsesRemaining(int newUses)
Sets the uses remaining field, which is a general numeric value whose meaning differs for different Item types. |
void |
stopTicking()
If this Item is current Ticking due to its having Behaviors or other properties which might grant it the ability to Tick, this method will cause that ticking to cease and desist. |
boolean |
subjectToWearAndTear()
Whether the usesRemaining() number above is used to determine the percentage health of the item. |
Item |
ultimateContainer(Physical stopAtC)
If an item is in a container, which is in a container, etc, this will return the "highest" or ultimate container in which this item is located. |
int |
usesRemaining()
Uses remaining is a general use numeric value whose meaning differs for different Item types. |
int |
value()
The default value of the item, represented in the base CoffeeMud currency. |
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, setName, 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, affectCharStats, affectPhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
---|
executeMsg, okMessage |
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, ID, 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, canWear, compareProperLocations, fitsOn, 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 |
Method Detail |
---|
Container container()
void setContainer(Container newLocation)
newLocation
- Container item in which this item is contained.Container
Item ultimateContainer(Physical stopAtC)
stopAtC
- if contained in this object, it will return this object.. default null.
Container
void removeFromOwnerContainer()
Container
int numberOfItems()
java.lang.String secretIdentity()
java.lang.String rawSecretIdentity()
void setSecretIdentity(java.lang.String newIdentity)
newIdentity
- the secret properties of this item. Empty string means it has none.boolean subjectToWearAndTear()
int usesRemaining()
void setUsesRemaining(int newUses)
newUses
- a new general numeric value for this field.void stopTicking()
int value()
int baseGoldValue()
void setBaseValue(int newValue)
newValue
- the new raw value of the itemint material()
RawMaterial
void setMaterial(int newValue)
newValue
- the resource codeRawMaterial
int recursiveWeight()
Container
ItemPossessor owner()
MOB
,
Item
void setOwner(ItemPossessor E)
E
- the mob or room where the item is locatedItemCollection.addItem(Item)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |