|
|||||||||
| 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.MiscMagic.StdWand
public class StdWand
| Field Summary | |
|---|---|
protected static java.lang.String[] |
CODES
|
protected java.lang.String |
secretWord
|
static java.lang.String[] |
words
|
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
|---|
affects, baseEnvStats, baseGoldValue, behaviors, 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 | |
|---|---|
StdWand()
|
|
| Method Summary | |
|---|---|
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
protected int |
getCodeNum(java.lang.String code)
|
Ability |
getSpell()
|
java.lang.String |
getStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String[] |
getStatCodes()
Returns an array of the string names of those fields which are modifiable on this object at run-time by builders. |
static java.lang.String |
getWandWord(java.lang.String from)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.String |
magicWord()
|
int |
maxUses()
|
boolean |
sameAs(Environmental E)
Whether this object instance is functionally identical to the object passed in. |
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 |
setMaxUses(int newMaxUses)
|
void |
setMiscText(java.lang.String newText)
For objects which have false for their isGeneric method, this is used to set any internally coded strings to change the nature or behavior of the object. |
void |
setSpell(Ability theSpell)
|
void |
setStat(java.lang.String code,
java.lang.String val)
An alternative means of setting the values of those fields on this object which are modifiable at run-time by builders. |
static boolean |
useTheWand(Ability A,
MOB mob,
int level)
|
int |
value()
The default value of the item, represented in the base CoffeeMud currency. |
void |
waveIfAble(MOB mob,
Environmental afftarget,
java.lang.String message)
|
static void |
waveIfAble(MOB mob,
Environmental afftarget,
java.lang.String message,
Wand me)
|
| 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.Item |
|---|
amWearingAt, baseGoldValue, canWear, compareProperLocations, container, databaseID, fitsOn, material, numberOfItems, owner, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, readableText, recursiveWeight, removeFromOwnerContainer, setBaseValue, setContainer, setDatabaseID, setMaterial, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadableText, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, 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 java.lang.String[] words
protected java.lang.String secretWord
protected static java.lang.String[] CODES
| Constructor Detail |
|---|
public StdWand()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdItempublic int maxUses()
maxUses in interface Wandpublic void setMaxUses(int newMaxUses)
setMaxUses in interface Wand
public static boolean useTheWand(Ability A,
MOB mob,
int level)
public int value()
Item
value in interface Itemvalue in class StdItempublic static java.lang.String getWandWord(java.lang.String from)
public void setSpell(Ability theSpell)
setSpell in interface Wandpublic void setMiscText(java.lang.String newText)
Environmental
setMiscText in interface EnvironmentalsetMiscText in class StdItemnewText - either an open internal text string, or XMLpublic Ability getSpell()
getSpell in interface Wandpublic java.lang.String secretIdentity()
Item
secretIdentity in interface ItemsecretIdentity in class StdItem
public void waveIfAble(MOB mob,
Environmental afftarget,
java.lang.String message)
waveIfAble in interface Wand
public static void waveIfAble(MOB mob,
Environmental afftarget,
java.lang.String message,
Wand me)
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdItemmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic java.lang.String magicWord()
magicWord in interface Wandpublic java.lang.String getStat(java.lang.String code)
CMModifiable
getStat in interface CMModifiablegetStat in class StdItemcode - the name of the field to read.
CMModifiable.getStatCodes()
public void setStat(java.lang.String code,
java.lang.String val)
CMModifiable
setStat in interface CMModifiablesetStat in class StdItemcode - the name of the field to setval - the value to set the field toCMModifiable.getStatCodes()public java.lang.String[] getStatCodes()
CMModifiable
getStatCodes in interface CMModifiablegetStatCodes in class StdItemCMModifiable.getStat(String),
CMModifiable.setStat(String, String)protected int getCodeNum(java.lang.String code)
getCodeNum in class StdItempublic boolean sameAs(Environmental E)
Environmental
sameAs in interface EnvironmentalsameAs in class StdItemE - the object to compare this one to
CMModifiable.getStatCodes(),
CMModifiable.getStat(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||