|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Abilities.Properties.Property
com.planet_ink.coffee_mud.Abilities.Properties.Prop_HaveAdjuster
public class Prop_HaveAdjuster
Field Summary | |
---|---|
protected java.lang.Object[] |
charStateChanges
|
protected java.lang.Object[] |
charStatsChanges
|
protected boolean |
firstTime
|
protected MaskingLibrary.CompiledZMask |
mask
|
protected boolean |
multiplyCharStates
|
protected boolean |
multiplyPhyStats
|
protected java.lang.String[] |
parameters
|
protected java.lang.Object[] |
phyStatsChanges
|
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Properties.Property |
---|
affected, amDestroyed, empty, miscText, savable |
Fields inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.TriggeredAffect |
---|
TRIGGER_ALWAYS, TRIGGER_BEING_HIT, TRIGGER_DROP_PUTIN, TRIGGER_ENTER, TRIGGER_GET, TRIGGER_HITTING_WITH, TRIGGER_MOUNT, TRIGGER_PUT, TRIGGER_USE, TRIGGER_WEAR_WIELD |
Constructor Summary | |
---|---|
Prop_HaveAdjuster()
|
Method Summary | |
---|---|
java.lang.String |
accountForYourself()
For use by the identify spell, this should return a nice description of any properties incorporated by this effect. |
boolean |
addIfPlussed(java.lang.String newText,
java.lang.String parm,
int parmCode,
java.util.ArrayList<java.lang.Object> addTo)
|
void |
adjCharState(MOB mob,
java.lang.Object[] changes,
CharState charState)
|
void |
adjCharStats(MOB mob,
java.lang.Object[] changes,
CharStats charStats)
|
void |
affectCharState(MOB affectedMOB,
CharState affectedState)
This method is called by the recoverCharState() method on other MOB objects. |
void |
affectCharStats(MOB affectedMOB,
CharStats affectedStats)
This method is called by the recoverCharStats() method on other MOB objects. |
void |
affectPhyStats(Physical host,
PhyStats affectableStats)
This method is called by the recoverPhyStats() method on other Environmental objects. |
boolean |
bubbleAffect()
This method is used to modify the behavior of the affectPhyStats, affectCharStats, and affectCharState methods. |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
boolean |
canApply(Environmental E)
|
boolean |
canApply(MOB mob)
|
protected void |
ensureStarted()
|
static java.lang.String |
fixAccoutingsWithMask(java.lang.String parameters,
java.lang.String mask)
|
long |
flags()
Returns a bitmap giving some specific information about the scope and purpose of the skill. |
int |
getIntStatValue(java.lang.Object[] changes,
java.lang.Integer statCode)
|
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 |
getStrStatValue(java.lang.Object[] changes,
java.lang.Integer statCode)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.Object[] |
makeObjectArray(java.util.ArrayList<? extends java.lang.Object> V)
|
java.lang.String |
name()
The nice displayable name of this instance of this object |
void |
phyStuff(java.lang.Object[] changes,
PhyStats phyStats)
|
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 |
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. |
int |
triggerMask()
This method returns a mask of TRIGGER_* constants denoting what triggers the properties |
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.Abilities.interfaces.Ability |
---|
abilityCode, abstractQuality, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, checkedCastingCost, classificationCode, combatCastingTime, enchantQuality, externalFiles, getTrainingCost, helpProficiency, invoke, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, unInvoke, usageCost, usageType |
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, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, tick |
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, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStatCodes, isStat |
Field Detail |
---|
protected java.lang.Object[] charStatsChanges
protected java.lang.Object[] charStateChanges
protected java.lang.Object[] phyStatsChanges
protected MaskingLibrary.CompiledZMask mask
protected boolean multiplyPhyStats
protected boolean multiplyCharStates
protected boolean firstTime
protected java.lang.String[] parameters
Constructor Detail |
---|
public Prop_HaveAdjuster()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class Property
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
name
in class Property
Environmental.Name()
protected int canAffectCode()
Property
canAffectCode
in class Property
Ability
public boolean bubbleAffect()
Ability
bubbleAffect
in interface Ability
bubbleAffect
in class Property
Item.owner()
public long flags()
Ability
flags
in interface Ability
flags
in class Property
Ability
public int triggerMask()
TriggeredAffect
triggerMask
in interface TriggeredAffect
TriggeredAffect.TRIGGER_ALWAYS
public boolean addIfPlussed(java.lang.String newText, java.lang.String parm, int parmCode, java.util.ArrayList<java.lang.Object> addTo)
public java.lang.Object[] makeObjectArray(java.util.ArrayList<? extends java.lang.Object> V)
public void setMiscText(java.lang.String newText)
Environmental
setMiscText
in interface Environmental
setMiscText
in class Property
newText
- either an open internal text string, or XMLpublic void phyStuff(java.lang.Object[] changes, PhyStats phyStats)
public boolean canApply(MOB mob)
public boolean canApply(Environmental E)
protected void ensureStarted()
public void affectPhyStats(Physical host, PhyStats affectableStats)
StatsAffecting
affectPhyStats
in interface StatsAffecting
affectPhyStats
in class Property
host
- the host of the PhyStats object being affectedaffectableStats
- the particular PhyStats object being affectedPhyStats
,
Environmental
,
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.recoverPhyStats()
public void adjCharStats(MOB mob, java.lang.Object[] changes, CharStats charStats)
public void adjCharState(MOB mob, java.lang.Object[] changes, CharState charState)
public void affectCharStats(MOB affectedMOB, CharStats affectedStats)
StatsAffecting
affectCharStats
in interface StatsAffecting
affectCharStats
in class Property
affectedMOB
- the host of the CharStats object being affectedaffectedStats
- the particular CharStats object being affectedCharStats
,
MOB
,
MOB.baseCharStats()
,
MOB.charStats()
,
MOB.recoverCharStats()
public void affectCharState(MOB affectedMOB, CharState affectedState)
StatsAffecting
affectCharState
in interface StatsAffecting
affectCharState
in class Property
affectedMOB
- the host of the CharState object being affectedaffectedState
- the particular CharState object being affectedCharState
,
MOB
,
MOB.baseState()
,
MOB.curState()
,
MOB.recoverMaxState()
public static final java.lang.String fixAccoutingsWithMask(java.lang.String parameters, java.lang.String mask)
public java.lang.String accountForYourself()
Ability
accountForYourself
in interface Ability
accountForYourself
in class Property
public java.lang.String getStrStatValue(java.lang.Object[] changes, java.lang.Integer statCode)
public int getIntStatValue(java.lang.Object[] changes, java.lang.Integer statCode)
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
getStat
in class Property
code
- the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
setStat
in class Property
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |