|
|||||||||
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_HaveResister
public class Prop_HaveResister
Field Summary | |
---|---|
protected CharStats |
adjCharStats
|
protected boolean |
alwaysWeapProt
|
protected boolean |
hasEffectDuration
|
protected boolean |
ignoreCharStats
|
protected short |
lastEffectCount
|
protected long |
lastProtection
|
protected java.lang.String |
maskString
|
protected java.util.Map<java.lang.String,java.lang.Integer> |
prots
|
protected int |
remainingProtection
|
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_HaveResister()
|
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. |
void |
affectCharStats(MOB affectedMOB,
CharStats affectedStats)
This method is called by the recoverCharStats() method on other MOB 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 |
canResist(Environmental E)
|
boolean |
checkProtection(java.lang.String protType)
|
java.lang.String |
describeResistance(java.lang.String text)
|
protected void |
ensureStarted()
|
long |
flags()
Returns a bitmap giving some specific information about the scope and purpose of the skill. |
int |
getProtection(java.lang.String protType)
|
java.lang.String |
getStat(java.lang.String statVar)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
isOk(CMMsg msg,
Ability me,
MOB mob,
java.lang.String maskString)
|
java.lang.String |
name()
The nice displayable name of this instance of this object |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
void |
resistAffect(CMMsg msg,
MOB mob,
Ability me,
java.lang.String maskString)
|
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. |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
int |
triggerMask()
This method returns a mask of TRIGGER_* constants denoting what triggers the properties |
protected int |
weaponProtection(java.lang.String kind,
int damage,
int myLevel,
int hisLevel)
|
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 |
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, getStatCodes, isStat, setStat |
Field Detail |
---|
protected CharStats adjCharStats
protected java.lang.String maskString
protected boolean ignoreCharStats
protected long lastProtection
protected int remainingProtection
protected boolean alwaysWeapProt
protected volatile short lastEffectCount
protected boolean hasEffectDuration
protected final java.util.Map<java.lang.String,java.lang.Integer> prots
Constructor Detail |
---|
public Prop_HaveResister()
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 void setMiscText(java.lang.String newText)
Environmental
setMiscText
in interface Environmental
setMiscText
in class Property
newText
- either an open internal text string, or XMLprotected void ensureStarted()
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 boolean checkProtection(java.lang.String protType)
public int getProtection(java.lang.String protType)
protected int weaponProtection(java.lang.String kind, int damage, int myLevel, int hisLevel)
public void resistAffect(CMMsg msg, MOB mob, Ability me, java.lang.String maskString)
public java.lang.String accountForYourself()
Ability
accountForYourself
in interface Ability
accountForYourself
in class Property
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class Property
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable
,
ServiceEngine
,
TickableGroup
public boolean isOk(CMMsg msg, Ability me, MOB mob, java.lang.String maskString)
public java.lang.String describeResistance(java.lang.String text)
public boolean canResist(Environmental E)
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
okMessage
in class Property
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executed
CMMsg
,
CMMsg.source()
public java.lang.String getStat(java.lang.String statVar)
Modifiable
getStat
in interface Modifiable
getStat
in class Property
statVar
- the name of the field to read.
Modifiable.getStatCodes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |