Ability
, CMObject
, Contingent
, Environmental
, Expireable
, Modifiable
, MsgListener
, StatsAffecting
, Tickable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
Addictions
, Adorable
, Age
, Allergies
, AmbianceAdder
, Amputation
, Antidote
, ArchonSkill
, ArtisanalFocus
, AutoAwards
, AutoStack
, BadReputation
, Banishment
, BardSkill
, Bleeding
, Blessing
, BrokenLimbs
, Burning
, Carnivorous
, Chant
, CombatFrenzy
, CombatSleep
, CommonSkill
, Copyright
, Cowering
, Dance
, DiligentStudying
, Disease
, Disease_MummyRot
, DiseaseCure
, Dragonbreath
, Druid_AquaticPass
, Druid_Bite
, Druid_DruidicPass
, Druid_GolemForm
, Druid_KnowPlants
, Druid_Krakenform
, Druid_MyPlants
, Druid_PackCall
, Druid_PlantForm
, Druid_RecoverVoice
, Druid_Rend
, Druid_SeaLore
, Druid_ShapeShift
, Druid_WaterCover
, Dueler
, Dusty
, ExtAbility
, Falling
, Familiarity_Armor
, Familiarity_Shield
, Familiarity_Weapon
, Fighter_CallSteed
, Fighter_CommandMount
, Fighter_CrescentKick
, Fighter_FavoredMount
, Fighter_RacialMount
, Fighter_Ridethrough
, Fighter_SnapKick
, FighterSkill
, FoodBegging
, Gait
, GenAbility
, Gore
, GravityFloat
, Grazing
, Hamstring
, Immunities
, ImprovedTeaching
, Injury
, InstanceArea
, ItemRejuv
, Loyalty
, Milkable
, Mood
, Paladin_Breakup
, Paladin_ChaosRage
, Paladin_CommandHorse
, Paladin_Defend
, Paladin_HealingHands
, Paladin_HolyStrike
, Paladin_InciteFight
, Paladin_MountedCharge
, Paladin_SummonMount
, Paladin_UnholyStrike
, PaladinSkill
, Paralysis
, Phobias
, Play
, Poison
, PoisonousBite
, Prayer
, Pregnancy
, PresenceReaction
, Prisoner
, Proficiency_Weapon
, QuickSwipe
, Quills
, Ranger_AnimalFrenzy
, Ranger_Camouflage
, Ranger_Enemy1
, Ranger_FierceCompanions
, Ranger_FindWater
, Ranger_Hide
, Ranger_HuntersEndurance
, Ranger_SenseTraps
, Ranger_SetSnare
, Ranger_Sneak
, Ranger_Track
, Ranger_TrackAnimal
, Ranger_WoodlandCreep
, Ranger_WoodlandLore
, Regeneration
, Scarring
, Scavenge
, Shaming
, ShootWeb
, Sinking
, Skill_BearForaging
, Skill_FindClanHome
, Skill_FindClanShip
, Skill_FindHome
, Skill_FindShip
, Skill_StableMount
, Skill_TrackCriminal
, Skill_TrackFriend
, Skill_UnearthDemography
, SlowLearner
, SmellsLikeCherries
, Soiled
, Song
, SoundEcho
, Specialization_Armor
, Specialization_SiegeWeapon
, Specialization_Weapon
, Spell
, StdLanguage
, StdPlanarAbility
, StdSkill
, StdTrap
, Stigma
, SuperPower
, TechSkill
, TemporaryAffects
, TemporaryImmunity
, ThiefSkill
, ThrowFeces
, Trap_Trap
, Truce
, Undead_ColdTouch
, Undead_EnergyDrain
, Undead_LifeDrain
, Undead_WeakEnergyDrain
, WanderHomeLater
, WeakParalysis
, WildTagTurf
, WingFlying
public class StdAbility extends java.lang.Object implements Ability
Modifier and Type | Field | Description |
---|---|---|
protected Physical |
affected |
|
protected boolean |
amDestroyed |
|
protected boolean |
canBeUninvoked |
|
static java.lang.String[] |
empty |
|
protected MOB |
invoker |
|
protected boolean |
isAnAutoEffect |
|
protected long |
lastCastHelp |
|
protected java.lang.String |
miscText |
|
protected int |
proficiency |
|
protected boolean |
savable |
|
protected int |
tickDown |
|
protected boolean |
unInvoked |
ACODE_CHANT, ACODE_COMMON_SKILL, ACODE_DESCS, ACODE_DESCS_, ACODE_DISEASE, ACODE_LANGUAGE, ACODE_POISON, ACODE_PRAYER, ACODE_PROPERTY, ACODE_SKILL, ACODE_SONG, ACODE_SPELL, ACODE_SUPERPOWER, ACODE_TECH, ACODE_THIEF_SKILL, ACODE_TRAP, ALL_ACODES, ALL_DOMAINS, CACHEINDEX_CLASSLESS, CACHEINDEX_EXPERTISE, CACHEINDEX_LASTTIME, CACHEINDEX_NORMAL, CACHEINDEX_TOTAL, CAN_AREAS, CAN_DESCS, CAN_EXITS, CAN_ITEMS, CAN_MOBS, CAN_ROOMS, COST_ALL, COST_NORMAL, COST_PCT, DOMAIN_ABJURATION, DOMAIN_ACROBATIC, DOMAIN_ALERT, DOMAIN_ALTERATION, DOMAIN_ANATOMY, DOMAIN_ANIMALAFFINITY, DOMAIN_ARCANELORE, DOMAIN_ARCHON, DOMAIN_ARMORUSE, DOMAIN_ARTISTIC, DOMAIN_BINDING, DOMAIN_BLESSING, DOMAIN_BREEDING, DOMAIN_BUILDINGSKILL, DOMAIN_CALLIGRAPHY, DOMAIN_COMBATFLUIDITY, DOMAIN_COMBATLORE, DOMAIN_COMMUNING, DOMAIN_CONJURATION, DOMAIN_CORRUPTION, DOMAIN_COSMOLOGY, DOMAIN_CRAFTINGSKILL, DOMAIN_CREATION, DOMAIN_CRIMINAL, DOMAIN_CURSING, DOMAIN_DANCING, DOMAIN_DEATHLORE, DOMAIN_DECEPTIVE, DOMAIN_DEEPMAGIC, DOMAIN_DESCS, DOMAIN_DETRAP, DOMAIN_DIRTYFIGHTING, DOMAIN_DIVINATION, DOMAIN_EDUCATIONLORE, DOMAIN_ENCHANTMENT, DOMAIN_ENDURING, DOMAIN_EPICUREAN, DOMAIN_EVANGELISM, DOMAIN_EVASIVE, DOMAIN_EVOCATION, DOMAIN_FITNESS, DOMAIN_FOOLISHNESS, DOMAIN_GATHERINGSKILL, DOMAIN_GRAPPLING, DOMAIN_HEALING, DOMAIN_HOLYPROTECTION, DOMAIN_ILLUSION, DOMAIN_INFLUENTIAL, DOMAIN_KICKING, DOMAIN_LEGAL, DOMAIN_MARTIALLORE, DOMAIN_MOONALTERING, DOMAIN_MOONSUMMONING, DOMAIN_NATURELORE, DOMAIN_NEUTRALIZATION, DOMAIN_PLANTCONTROL, DOMAIN_PLANTGROWTH, DOMAIN_PLAYING, DOMAIN_POISONING, DOMAIN_PRESERVING, DOMAIN_PUNCHING, DOMAIN_RACIALABILITY, DOMAIN_RESTORATION, DOMAIN_ROCKCONTROL, DOMAIN_ROPEUSE, DOMAIN_SEATRAVEL, DOMAIN_SHAPE_SHIFTING, DOMAIN_SHIELDUSE, DOMAIN_SINGING, DOMAIN_STEALING, DOMAIN_STEALTHY, DOMAIN_STREETSMARTS, DOMAIN_THEATRE, DOMAIN_TRANSMUTATION, DOMAIN_TRAPPING, DOMAIN_TRAVEL, DOMAIN_VERBS, DOMAIN_VEXING, DOMAIN_WARDING, DOMAIN_WATERCONTROL, DOMAIN_WATERLORE, DOMAIN_WEAPON_USE, DOMAIN_WEATHER_MASTERY, FLAG_ADJUSTER, FLAG_AGGROFYING, FLAG_AIRBASED, FLAG_BINDING, FLAG_CASTER, FLAG_CHAOS, FLAG_CHARMING, FLAG_CLANMAGIC, FLAG_DESCS, FLAG_EARTHBASED, FLAG_ELECTRICBASED, FLAG_ENABLER, FLAG_FEARING, FLAG_FIREBASED, FLAG_HEALINGMAGIC, FLAG_HEATING, FLAG_HOLY, FLAG_IMMUNER, FLAG_INTOXICATING, FLAG_LAW, FLAG_MINDALTERING, FLAG_MODERATE, FLAG_MOVING, FLAG_NEUTRAL, FLAG_NODISENCHANT, FLAG_NONENCHANTMENT, FLAG_NOORDERING, FLAG_NOUNINVOKING, FLAG_PARALYZING, FLAG_POTENTIALLY_DEADLY, FLAG_RESISTER, FLAG_STEALING, FLAG_SUMMONING, FLAG_SUNSUMMONING, FLAG_TIDEALTERING, FLAG_TORTURING, FLAG_TRACKING, FLAG_TRANSPORTING, FLAG_UNCRAFTABLE, FLAG_UNHOLY, FLAG_WATERBASED, FLAG_WEATHERAFFECTING, FLAG_ZAPPER, POWER_COST_THRESHOLD, POWER_LEVEL_THRESHOLD, POWER_OVERRIDE_THRESHOLD, QUALITY_BENEFICIAL_OTHERS, QUALITY_BENEFICIAL_SELF, QUALITY_DESCS, QUALITY_INDIFFERENT, QUALITY_MALICIOUS, QUALITY_OK_OTHERS, QUALITY_OK_SELF, RANGE_CHOICES, TICKS_ALMOST_FOREVER, TICKS_FOREVER, USAGE_DESCS, USAGE_HITPOINTS, USAGE_MANA, USAGE_MOVEMENT, USAGE_NADA, USAGEINDEX_COUNT, USAGEINDEX_HITPOINTS, USAGEINDEX_MANA, USAGEINDEX_MOVEMENT, USAGEINDEX_TIMELSW, USAGEINDEX_TOTAL
idConverter
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Constructor | Description |
---|---|
StdAbility() |
Modifier and Type | Method | Description |
---|---|---|
int |
abilityCode() |
Returns an optional numeric value whose purpose is
entirely contextual.
|
int |
abstractQuality() |
Returns a constant value notifying the system of
the general quality of the skill, whether it is
malicious, beneficial, indifferent, or qualifiably
beneficial (ok), as well as whether it is intended
to target the invoker (self) or others.
|
java.lang.String |
accountForYourself() |
For use by the identify spell, this should return a
nice description of any properties incorporated
by this effect.
|
protected int |
addedTickTime(MOB invokerMOB,
int baseTickTime) |
|
protected int |
adjustBeneficialTickdownTime(MOB mob,
Environmental target,
int baseTicks) |
|
int |
adjustedLevel(MOB caster,
int asLevel) |
This method calculates the strength level of this skill for the
given mob, and taking into account the given override-level (asLevel).
|
protected int |
adjustedMaxInvokerRange(int max) |
|
protected int |
adjustMaliciousTickdownTime(MOB mob,
Physical target,
int baseTicks,
int asLevel) |
|
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState) |
This method is called by the recoverCharState() method on other MOB objects.
|
void |
affectCharStats(MOB affectedMob,
CharStats affectableStats) |
This method is called by the recoverCharStats() method on other MOB objects.
|
Physical |
affecting() |
Returns a reference to the room, item, mob, or exit
that is currently being affected by this skill.
|
void |
affectPhyStats(Physical affected,
PhyStats affectableStats) |
This method is called by the recoverPhyStats() method on other Environmental objects.
|
boolean |
amDestroyed() |
Whether the destroy() method has been previousy called on this object.
|
protected boolean |
aPossibleAbuserOfCasterLevel(MOB casterM) |
|
boolean |
appropriateToMyFactions(MOB mob) |
Returns whether there are any Faction reasons why the given
mob should not use this skill.
|
boolean |
autoInvocation(MOB mob,
boolean force) |
An autoinvocating ability is an ability which affects the
mob just by having learned the ability.
|
Ability |
beneficialAffect(MOB mob,
Physical target,
int asLevel,
int tickAdjustmentFromStandard) |
|
protected boolean |
beneficialSoundFizzle(MOB mob,
Environmental target,
java.lang.String message) |
|
protected boolean |
beneficialVisualFizzle(MOB mob,
Environmental target,
java.lang.String message) |
|
protected boolean |
beneficialWordsFizzle(MOB mob,
Environmental target,
java.lang.String message) |
|
boolean |
bubbleAffect() |
This method is used to modify the behavior of the affectPhyStats,
affectCharStats, and affectCharState methods.
|
protected int[] |
buildCostArray(MOB mob,
int consumed,
int minimum) |
|
boolean |
canAffect(int can_code) |
Returns whether, when used as a property/effect, this ability can affect
the given type of object.
|
boolean |
canAffect(Physical P) |
Returns whether, when used as a property/effect, this ability can affect
the given object.
|
protected int |
canAffectCode() |
Designates whether, when used as a property/effect, what sort of objects this
ability can affect.
|
boolean |
canBeLearnedBy(MOB teacher,
MOB student) |
Returns whether the given student mob is able and allowed to learn
this skill from the given teacher.
|
boolean |
canBePracticedBy(MOB teacher,
MOB student) |
Returns whether the given teacher mob is able and allowed to practice
this skill with the given student *and* whether the student is able
and allowed to practice this skill.
|
boolean |
canBeTaughtBy(MOB teacher,
MOB student) |
Returns whether the given teacher mob is able and allowed to teach
this skill to the given student.
|
boolean |
canBeUninvoked() |
Whether this skill is allowed to be uninvoked.
|
boolean |
canTarget(int can_code) |
Returns whether, when used as a skill, this ability can target itself
at an object of the given type.
|
boolean |
canTarget(Physical P) |
Returns whether, when used as a skill, this ability can target itself
at the given object.
|
protected int |
canTargetCode() |
Designates whether, when invoked as a skill, what sort of objects this
ability can effectively target.
|
int |
castingQuality(MOB mob,
Physical target) |
Serves a purpose similar to that of the Ability
abstractQuality() method, but it determines a more
exact quality based on a given invoker, target, and
assumes an imminent use of the skill.
|
protected int |
castingQuality(MOB mob,
Physical target,
int abstractQuality) |
|
double |
castingTime(MOB mob,
java.util.List<java.lang.String> cmds) |
Returns the number of actions required to completely
activate this skill.
|
protected boolean |
checkComponents(MOB mob) |
|
double |
checkedCastingCost(MOB mob,
java.util.List<java.lang.String> commands) |
Returns the number of actions required to completely
activate this skill.
|
protected boolean |
checkTargetRange(MOB mob,
MOB target) |
|
int |
classificationCode() |
Returns a bitmap describing the general
classification of the skill (spell, skill,
chant, or property, etc) and its domain.
|
protected void |
cloneFix(Ability E) |
|
double |
combatCastingTime(MOB mob,
java.util.List<java.lang.String> cmds) |
Returns the number of actions required to completely
activate this skill.
|
protected void |
commonTell(MOB mob,
java.lang.String str) |
|
protected void |
commonTelL(MOB mob,
Environmental target,
Environmental tool,
java.lang.String str,
java.lang.String... vars) |
|
protected void |
commonTelL(MOB mob,
java.lang.String str,
java.lang.String... vars) |
|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
java.lang.String |
description() |
The basic description of this object, as shown when the item is directly LOOKed at.
|
void |
destroy() |
Utterly and permanently destroy this object, not only removing it from the map, but
causing this object to be collected as garbage by Java.
|
java.lang.String |
displayText() |
Gets the raw string used to show what this object looks like in the room.
|
boolean |
disregardsArmorCheck(MOB mob) |
|
int |
enchantQuality() |
Identical to abstractQuality() method, but returns
a quality based on how the skill or spell behaves
as a spell effect on a weapon or on armor.
|
protected Item |
evalTargetItem(MOB mob,
Room location,
Environmental givenTarget,
Environmental target,
java.lang.String targetName,
java.lang.String ogTargetName,
boolean quiet) |
|
void |
executeMsg(Environmental myHost,
CMMsg msg) |
The general message event handler for the object.
|
protected int |
expertise(MOB mob,
Ability A,
ExpertiseLibrary.XType code) |
|
long |
expirationDate() |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
java.util.List<java.lang.String> |
externalFiles() |
Any external files which may be required to make this ability work
files returned by this method should not be base distrib files!
|
protected boolean |
failureTell(MOB mob,
MOB targetM,
boolean auto,
java.lang.String msg) |
|
long |
flags() |
Returns a bitmap giving some specific information about
the scope and purpose of the skill.
|
protected Physical |
getAnyTarget(MOB mob,
Room location,
boolean anyContainer,
java.util.List<java.lang.String> commands,
Physical givenTarget,
Filterer<Environmental> filter) |
|
protected Physical |
getAnyTarget(MOB mob,
Room location,
boolean anyContainer,
java.util.List<java.lang.String> commands,
Physical givenTarget,
Filterer<Environmental> filter,
boolean quiet) |
|
protected Physical |
getAnyTarget(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
Filterer<Environmental> filter) |
|
protected Physical |
getAnyTarget(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
Filterer<Environmental> filter,
boolean checkOthersInventory) |
|
protected Physical |
getAnyTarget(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
Filterer<Environmental> filter,
boolean checkOthersInventory,
boolean alreadyAffOk) |
|
protected Physical |
getAnyTarget(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
Filterer<Environmental> filter,
boolean checkOthersInventory,
boolean alreadyAffOk,
boolean quiet) |
|
protected int |
getBeneficialTickdownTime(MOB mob,
Environmental target,
int tickAdjustmentFromStandard,
int asLevel) |
|
protected int |
getCodeNum(java.lang.String code) |
|
protected java.util.Map<java.lang.String,int[]> |
getHardOverrideManaCache() |
|
protected int |
getInternalCodeNum(java.lang.String code) |
|
protected int |
getMaliciousTickdownTime(MOB mob,
Physical target,
int tickAdjustmentFromStandard,
int asLevel) |
|
protected int |
getPersonalLevelAdjustments(MOB caster) |
|
protected CostDef |
getRawTrainingCost() |
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
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.
|
protected Item |
getTarget(MOB mob,
Room location,
Environmental givenTarget,
boolean anyContainer,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter) |
|
protected Item |
getTarget(MOB mob,
Room location,
Environmental givenTarget,
boolean anyContainer,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter,
boolean quiet) |
|
protected Item |
getTarget(MOB mob,
Room location,
Environmental givenTarget,
Item container,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter) |
|
protected Item |
getTarget(MOB mob,
Room location,
Environmental givenTarget,
Item container,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter,
boolean quiet) |
|
protected Item |
getTarget(MOB mob,
Room location,
Environmental givenTarget,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter) |
|
protected MOB |
getTarget(MOB mob,
java.util.List<java.lang.String> commands,
Environmental givenTarget) |
|
protected MOB |
getTarget(MOB mob,
java.util.List<java.lang.String> commands,
Environmental givenTarget,
boolean quiet,
boolean alreadyAffOk) |
|
protected Item |
getTargetItemFavorMOB(MOB mob,
Room location,
Physical givenTarget,
Item container,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter) |
|
protected Item |
getTargetItemFavorMOB(MOB mob,
Room location,
Physical givenTarget,
Item container,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter,
boolean quiet) |
|
protected Item |
getTargetItemFavorMOB(MOB mob,
Room location,
Physical givenTarget,
java.util.List<java.lang.String> commands,
Filterer<Environmental> filter) |
|
int |
getTickDownRemaining() |
|
protected int |
getTicksBetweenCasts() |
|
int |
getTickStatus() |
A coded status for this object during the period where
its tick method is being called.
|
protected long |
getTimeOfNextCast() |
|
CostManager |
getTrainingCost(MOB mob) |
Returns cost of training up this skill, for the given user.
|
protected MOB |
getVisibleRoomTarget(MOB mob,
java.lang.String whom) |
|
protected int |
getX1Level(MOB mob) |
|
protected int |
getX2Level(MOB mob) |
|
protected int |
getX3Level(MOB mob) |
|
protected int |
getX4Level(MOB mob) |
|
protected int |
getX5Level(MOB mob) |
|
protected int |
getXLEVELLevel(MOB mob) |
|
protected int |
getXLOWCOSTLevel(MOB mob) |
|
protected int |
getXLOWFREECOSTLevel(MOB mob) |
|
protected int |
getXMAXRANGELevel(MOB mob) |
|
protected int |
getXPCOSTAdjustment(MOB mob,
int xpLoss) |
|
protected int |
getXPCOSTLevel(MOB mob) |
|
protected int |
getXTIMELevel(MOB mob) |
|
void |
helpProficiency(MOB mob,
int adjustment) |
This method should, occasionally, add to the proficiency the given mob
has in this skill.
|
protected static java.lang.String[] |
I(java.lang.String[] str) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
protected boolean |
ignoreCompounding() |
|
java.lang.String |
image() |
Returns the fully qualified and determined name of the image file displayed for this
object when MXP is used.
|
protected int |
iniPracticesToPractice() |
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
invoke(MOB mob,
Physical target,
boolean auto,
int asLevel) |
This method is called when a player or the system invokes this skill,
casts this spell, etc.
|
boolean |
invoke(MOB mob,
java.util.List<java.lang.String> commands,
Physical target,
boolean auto,
int asLevel) |
This method is called when a player or the system invokes this skill,
casts this spell, etc.
|
MOB |
invoker() |
Always returns the mob that invoked or initiated the
skill or effect.
|
boolean |
isAutoInvoked() |
An autoinvocating ability is an ability which affects the
mob just by having learned the ability.
|
boolean |
isGeneric() |
Whether the fields of this item are set in code, or set by builders.
|
boolean |
isNowAnAutoEffect() |
An autoinvocating ability is an ability which affects the
mob just by having learned the ability.
|
boolean |
isSavable() |
Whether, if this object is in a room, whether it is appropriate to save this object to
the database as a permanent feature of its container.
|
boolean |
isStat(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 |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
void |
makeLongLasting() |
If this ability has been added as as temporary effect, like
sleep, or trip, or other typical spells, calling this
method will make it so thatit will not do so on its own for a
long long time.
|
void |
makeNonUninvokable() |
Designates that this skill should never be uninvoked.
|
Ability |
maliciousAffect(MOB mob,
Physical target,
int asLevel,
int tickAdjustmentFromStandard,
int additionAffectCheckCode) |
|
protected boolean |
maliciousFizzle(MOB mob,
Environmental target,
java.lang.String message) |
|
int |
maxRange() |
the modified maximum range of this object, if applicable.
|
boolean |
mayBeEnchanted() |
Returns whether this skill/spell/whatever can be used by various
other skills to enchant onto items, scrolls, wands, whatever.
|
protected long |
minCastWaitTime() |
|
int |
minRange() |
the modified minimum range of this object, if applicable.
|
java.lang.String |
miscTextFormat() |
Unimplemented as of yet, but will hold a string telling the system what
the proper format of any miscText data.
|
protected int |
modifyCastCode(int castCode,
MOB mob,
Physical target,
boolean auto) |
|
java.lang.String |
name() |
The nice displayable name of this instance of this object
|
java.lang.String |
Name() |
The raw unmodified name of this object as stored in the database.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
protected int |
overrideMana() |
amount of mana/move used by this ability, overriding ini file
-1=normal, Ability.COST_ALL=all, Ability.COST_PCT
|
protected static Item |
possibleContainer(MOB mob,
java.util.List<java.lang.String> commands,
boolean withStuff,
Filterer<Environmental> filter) |
|
void |
practice(MOB teacher,
MOB student) |
Causes the student to practice this skill, presumably with the teacher mob.
|
protected int |
practicesToPractice(MOB mob) |
|
boolean |
preInvoke(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
boolean auto,
int asLevel,
int secondsElapsed,
double actionsRemaining) |
This method is only called when the mob invoking this skill
does not have enough actions to complete it immediately.
|
int |
proficiency() |
Returns a number from 0-100 representing the percent of proficiency
the mob or player who has this instance in their Abilities list has in
this skill.
|
boolean |
proficiencyCheck(MOB mob,
int adjustment,
boolean auto) |
Returns whether the given mob passes their proficiency check in this skill
at this time.
|
protected java.util.List<MOB> |
properTargetList(MOB mob,
Environmental givenTarget,
boolean auto) |
|
protected java.util.Set<MOB> |
properTargets(MOB mob,
Environmental givenTarget,
boolean auto) |
|
boolean |
putInCommandlist() |
Returns whether this skill`s triggerStrings should be
places in the master list of commands, unlike
properties or other hidden skills.
|
java.lang.String |
rawImage() |
Returns the raw name of the image file to display for this object when MXP is used.
|
java.lang.String |
requirements(MOB mob) |
Returns a string describing the requirements and qualifications that
are required to learn this skill.
|
protected void |
restoreCombatState(java.util.Map<MOB,MOB> map) |
|
boolean |
sameAs(Environmental E) |
Whether this object instance is functionally identical to the object passed in.
|
protected java.util.Map<MOB,MOB> |
saveCombatState(MOB mob,
boolean andFollowers) |
|
void |
setAbilityCode(int newCode) |
Sets an optional numeric value whose purpose is
entirely contextual.
|
void |
setAffectedOne(Physical P) |
Sets a reference to the room, item, mob, or exit
that is currently being affected by this skill.
|
void |
setDescription(java.lang.String newDescription) |
Sets the basic description of this object, as shown when the item is directly LOOKed at.
|
void |
setDisplayText(java.lang.String newDisplayText) |
Sets the raw string used to show what this object looks like in the room.
|
void |
setExpirationDate(long time) |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
void |
setImage(java.lang.String newImage) |
Sets the raw name of the image file to display for this object when MXP is used.
|
void |
setInvoker(MOB mob) |
Sets or changes the mob that invoked or initated the
skill or effect.
|
void |
setMiscText(java.lang.String newMiscText) |
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 |
setName(java.lang.String newName) |
Sets the raw unmodified name of this object as stored in the database.
|
void |
setProficiency(int newProficiency) |
Sets a number from 0-100 representing the percent of proficiency
the mob or player who has this instance in their Abilities list has in
this skill.
|
void |
setSavable(boolean truefalse) |
Sets whether this object can be saved as a permanent aspect of
its host.
|
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.
|
void |
setTickDown(int down) |
|
void |
setTickDownRemaining(int newTick) |
|
protected void |
setTimeOfNextCast(long absoluteTime) |
|
protected void |
setTimeOfNextCast(MOB caster) |
|
protected int |
somaticCastCode(MOB mob,
Physical target,
boolean auto) |
|
protected int |
somaticCastMask(MOB mob,
Physical target,
boolean auto) |
|
void |
spreadImmunity(MOB mob) |
|
void |
startTickDown(MOB invokerMOB,
Physical affected,
int tickTime) |
Adds THIS Ability object as an effect on the given affected target, and
sets it to unInvoke after the given number of ticks.
|
void |
teach(MOB teacher,
MOB student) |
Teaches this skill to the student mob, presumably from the teacher mob.
|
protected boolean |
testUsageCost(MOB mob,
boolean auto,
int[] consumed,
boolean quiet) |
|
java.lang.String |
text() |
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.
|
java.lang.String[] |
triggerStrings() |
A set of the command strings the user types to access
this command when it is listed as a skill ability.
|
void |
unInvoke() |
If this skill is uninvokable, this method will uninvoke it, remove it
as an effect on the target, and shut it down.
|
void |
unlearn(MOB student) |
Un-learns this skill from the student.
|
int[] |
usageCost(MOB mob,
boolean ignoreClassOverride) |
Returns an integer array telling the system how much mana,
movement, or hit points are required to invoke this skill.
|
int |
usageType() |
Returns a bitmap made up of constants defined by
Ability.USAGE_*.
|
protected int |
verbalCastCode(MOB mob,
Physical target,
boolean auto) |
|
protected int |
verbalCastMask(MOB mob,
Physical target,
boolean auto) |
|
protected int |
verbalSpeakCode(MOB mob,
Physical target,
boolean auto) |
protected boolean isAnAutoEffect
protected int proficiency
protected boolean savable
protected java.lang.String miscText
protected MOB invoker
protected Physical affected
protected boolean canBeUninvoked
protected volatile boolean unInvoked
protected volatile int tickDown
protected long lastCastHelp
protected boolean amDestroyed
public static final java.lang.String[] empty
public java.lang.String ID()
CMObject
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public java.lang.String Name()
Environmental
Name
in interface Environmental
Tickable.name()
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
public java.lang.String description()
Environmental
description
in interface Environmental
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
public java.lang.String image()
Environmental
image
in interface Environmental
public java.lang.String rawImage()
Environmental
rawImage
in interface Environmental
public void setImage(java.lang.String newImage)
Environmental
setImage
in interface Environmental
newImage
- the raw name of the mxp image filepublic java.lang.String[] triggerStrings()
Ability
triggerStrings
in interface Ability
Ability.putInCommandlist()
public int maxRange()
Environmental
maxRange
in interface Environmental
public int minRange()
Environmental
minRange
in interface Environmental
public double castingTime(MOB mob, java.util.List<java.lang.String> cmds)
Ability
castingTime
in interface Ability
mob
- the potential castercmds
- the potential command setAbility.combatCastingTime(MOB, List)
,
Ability.checkedCastingCost(MOB, List)
public double combatCastingTime(MOB mob, java.util.List<java.lang.String> cmds)
Ability
combatCastingTime
in interface Ability
mob
- the potential castercmds
- the potential command setAbility.castingTime(MOB, List)
,
Ability.checkedCastingCost(MOB, List)
public double checkedCastingCost(MOB mob, java.util.List<java.lang.String> commands)
Ability
checkedCastingCost
in interface Ability
mob
- the potential castercommands
- the potential command setAbility.castingTime(MOB, List)
,
Ability.combatCastingTime(MOB, List)
public boolean putInCommandlist()
Ability
putInCommandlist
in interface Ability
Ability.triggerStrings()
public boolean isAutoInvoked()
Ability
isAutoInvoked
in interface Ability
public boolean bubbleAffect()
Ability
bubbleAffect
in interface Ability
Item.owner()
protected boolean ignoreCompounding()
protected int getTicksBetweenCasts()
protected long getTimeOfNextCast()
protected void setTimeOfNextCast(long absoluteTime)
protected CostDef getRawTrainingCost()
public void setTickDown(int down)
public CostManager getTrainingCost(MOB mob)
Ability
getTrainingCost
in interface Ability
mob
- the potential casterprotected int practicesToPractice(MOB mob)
protected int iniPracticesToPractice()
protected void setTimeOfNextCast(MOB caster)
public java.lang.String miscTextFormat()
Environmental
miscTextFormat
in interface Environmental
CMParms
,
Environmental.text()
,
Environmental.setMiscText(String)
public long flags()
Ability
public int usageType()
Ability
protected int overrideMana()
public int abstractQuality()
Ability
abstractQuality
in interface Ability
Ability
public int enchantQuality()
Ability
enchantQuality
in interface Ability
Ability.abstractQuality()
,
Ability
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public boolean mayBeEnchanted()
Ability
mayBeEnchanted
in interface Ability
public java.lang.String L(java.lang.String str, java.lang.String... xs)
Environmental
L
in interface Environmental
str
- the string to translatexs
- the array of variables to replaceCall with the string to translate, which may contain variables of the form @x1, @x2, etc. The array in xs
is then used to replace the variables AFTER the string is translated.
protected static java.lang.String[] I(java.lang.String[] str)
public int castingQuality(MOB mob, Physical target)
Ability
castingQuality
in interface Ability
mob
- the person to use the skilltarget
- the potential target -- may be invokerAbility
,
Ability.abstractQuality()
protected int expertise(MOB mob, Ability A, ExpertiseLibrary.XType code)
protected int getX1Level(MOB mob)
protected int getX2Level(MOB mob)
protected int getX3Level(MOB mob)
protected int getX4Level(MOB mob)
protected int getX5Level(MOB mob)
protected int getXLEVELLevel(MOB mob)
protected int getXLOWCOSTLevel(MOB mob)
protected int getXLOWFREECOSTLevel(MOB mob)
protected int getXMAXRANGELevel(MOB mob)
protected int getXTIMELevel(MOB mob)
protected int getXPCOSTLevel(MOB mob)
protected int getXPCOSTAdjustment(MOB mob, int xpLoss)
protected int adjustedMaxInvokerRange(int max)
protected int canAffectCode()
Ability
protected int canTargetCode()
Ability
public int classificationCode()
Ability
classificationCode
in interface Ability
Ability
public long expirationDate()
Expireable
expirationDate
in interface Expireable
Expireable.setExpirationDate(long)
public void setExpirationDate(long time)
Expireable
setExpirationDate
in interface Expireable
time
- the time stamp when this thing expiresExpireable.expirationDate()
public boolean isNowAnAutoEffect()
Ability
isNowAnAutoEffect
in interface Ability
public boolean isSavable()
Contingent
isSavable
in interface Contingent
public void setSavable(boolean truefalse)
Contingent
setSavable
in interface Contingent
truefalse
- whether this behavior can be saved as part of its host.Contingent.isSavable()
public void destroy()
Contingent
destroy
in interface Contingent
public boolean amDestroyed()
Contingent
amDestroyed
in interface Contingent
public void setName(java.lang.String newName)
Environmental
setName
in interface Environmental
newName
- the raw base name of this object on the map.Environmental.Name()
public void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText
in interface Environmental
newDisplayText
- the string describing how this object looks in the roompublic void setDescription(java.lang.String newDescription)
Environmental
setDescription
in interface Environmental
newDescription
- the basic detail description of this objectpublic int abilityCode()
Ability
abilityCode
in interface Ability
public void setAbilityCode(int newCode)
Ability
setAbilityCode
in interface Ability
newCode
- the optional numeric value or enhancementpublic java.util.List<java.lang.String> externalFiles()
Ability
externalFiles
in interface Ability
protected long minCastWaitTime()
public void setMiscText(java.lang.String newMiscText)
Environmental
setMiscText
in interface Environmental
newMiscText
- either an open internal text string, or XMLpublic java.lang.String text()
Environmental
text
in interface Environmental
public int proficiency()
Ability
proficiency
in interface Ability
AbilityContainer.addAbility(Ability)
,
Ability.setProficiency(int)
public void setProficiency(int newProficiency)
Ability
setProficiency
in interface Ability
newProficiency
- the proficiency from 0-100AbilityContainer.addAbility(Ability)
,
Ability.proficiency()
protected int addedTickTime(MOB invokerMOB, int baseTickTime)
public void startTickDown(MOB invokerMOB, Physical affected, int tickTime)
Ability
startTickDown
in interface Ability
invokerMOB
- the invoker of the abilityaffected
- the object to be affected by this abilitytickTime
- the number of ticks to keep the ability ticking.protected void commonTelL(MOB mob, Environmental target, Environmental tool, java.lang.String str, java.lang.String... vars)
protected void commonTelL(MOB mob, java.lang.String str, java.lang.String... vars)
protected void commonTell(MOB mob, java.lang.String str)
public boolean disregardsArmorCheck(MOB mob)
protected int getPersonalLevelAdjustments(MOB caster)
public int adjustedLevel(MOB caster, int asLevel)
Ability
adjustedLevel
in interface Ability
caster
- the mob to evaluate the skill level ofasLevel
- if greater than 0, this method always returns itpublic boolean canTarget(int can_code)
Ability
canTarget
in interface Ability
can_code
- a bitmap of one or more Ability.CAN_* constantscanTargetCode()
public boolean canAffect(int can_code)
Ability
canAffect
in interface Ability
can_code
- a bitmap of one or more Ability.CAN_* constantsAbility
,
canAffectCode()
public boolean canAffect(Physical P)
Ability
canAffect
in interface Ability
P
- the potential object to have this as a property/effectcanAffectCode()
public boolean canTarget(Physical P)
Ability
canTarget
in interface Ability
P
- the potential target of this skillcanTargetCode()
protected MOB getTarget(MOB mob, java.util.List<java.lang.String> commands, Environmental givenTarget)
protected MOB getTarget(MOB mob, java.util.List<java.lang.String> commands, Environmental givenTarget, boolean quiet, boolean alreadyAffOk)
protected Physical getAnyTarget(MOB mob, java.util.List<java.lang.String> commands, Physical givenTarget, Filterer<Environmental> filter)
protected Physical getAnyTarget(MOB mob, Room location, boolean anyContainer, java.util.List<java.lang.String> commands, Physical givenTarget, Filterer<Environmental> filter)
protected Physical getAnyTarget(MOB mob, Room location, boolean anyContainer, java.util.List<java.lang.String> commands, Physical givenTarget, Filterer<Environmental> filter, boolean quiet)
protected Physical getAnyTarget(MOB mob, java.util.List<java.lang.String> commands, Physical givenTarget, Filterer<Environmental> filter, boolean checkOthersInventory)
protected Physical getAnyTarget(MOB mob, java.util.List<java.lang.String> commands, Physical givenTarget, Filterer<Environmental> filter, boolean checkOthersInventory, boolean alreadyAffOk)
protected Physical getAnyTarget(MOB mob, java.util.List<java.lang.String> commands, Physical givenTarget, Filterer<Environmental> filter, boolean checkOthersInventory, boolean alreadyAffOk, boolean quiet)
protected static Item possibleContainer(MOB mob, java.util.List<java.lang.String> commands, boolean withStuff, Filterer<Environmental> filter)
protected Item getTarget(MOB mob, Room location, Environmental givenTarget, java.util.List<java.lang.String> commands, Filterer<Environmental> filter)
protected Item getTarget(MOB mob, Room location, Environmental givenTarget, boolean anyContainer, java.util.List<java.lang.String> commands, Filterer<Environmental> filter)
protected Item getTarget(MOB mob, Room location, Environmental givenTarget, boolean anyContainer, java.util.List<java.lang.String> commands, Filterer<Environmental> filter, boolean quiet)
protected Item getTarget(MOB mob, Room location, Environmental givenTarget, Item container, java.util.List<java.lang.String> commands, Filterer<Environmental> filter)
protected Item evalTargetItem(MOB mob, Room location, Environmental givenTarget, Environmental target, java.lang.String targetName, java.lang.String ogTargetName, boolean quiet)
protected Item getTarget(MOB mob, Room location, Environmental givenTarget, Item container, java.util.List<java.lang.String> commands, Filterer<Environmental> filter, boolean quiet)
protected Item getTargetItemFavorMOB(MOB mob, Room location, Physical givenTarget, Item container, java.util.List<java.lang.String> commands, Filterer<Environmental> filter)
protected Item getTargetItemFavorMOB(MOB mob, Room location, Physical givenTarget, java.util.List<java.lang.String> commands, Filterer<Environmental> filter)
protected Item getTargetItemFavorMOB(MOB mob, Room location, Physical givenTarget, Item container, java.util.List<java.lang.String> commands, Filterer<Environmental> filter, boolean quiet)
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
protected void cloneFix(Ability E)
public CMObject copyOf()
CMObject
public boolean proficiencyCheck(MOB mob, int adjustment, boolean auto)
Ability
proficiencyCheck
in interface Ability
mob
- the mob whose proficiency to checkadjustment
- a positive or negative adjustment to the mobs base proficiencyauto
- if true, this method returns true alwaysAbility.proficiency()
public Physical affecting()
Ability
affecting
in interface Ability
Ability.setAffectedOne(Physical)
public void setAffectedOne(Physical P)
Ability
setAffectedOne
in interface Ability
P
- the room, mob, or item being affectedAbility.affecting()
public void unInvoke()
Ability
unInvoke
in interface Ability
Ability.canBeUninvoked()
public boolean canBeUninvoked()
Ability
canBeUninvoked
in interface Ability
Ability.makeNonUninvokable()
public void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffecting
affectPhyStats
in interface StatsAffecting
affected
- the host of the PhyStats object being affectedaffectableStats
- the particular PhyStats object being affectedPhyStats
,
Environmental
,
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.recoverPhyStats()
public void affectCharStats(MOB affectedMob, CharStats affectableStats)
StatsAffecting
affectCharStats
in interface StatsAffecting
affectedMob
- the host of the CharStats object being affectedaffectableStats
- the particular CharStats object being affectedCharStats
,
MOB
,
MOB.baseCharStats()
,
MOB.charStats()
,
MOB.recoverCharStats()
public void affectCharState(MOB affectedMob, CharState affectableMaxState)
StatsAffecting
affectCharState
in interface StatsAffecting
affectedMob
- the host of the CharState object being affectedaffectableMaxState
- the particular CharState object being affectedCharState
,
MOB
,
MOB.baseState()
,
MOB.curState()
,
MOB.recoverMaxState()
public MOB invoker()
Ability
invoker
in interface Ability
MOB
,
Ability.setInvoker(MOB)
public void setInvoker(MOB mob)
Ability
setInvoker
in interface Ability
mob
- the invoker mobMOB
,
Ability.invoker()
protected int[] buildCostArray(MOB mob, int consumed, int minimum)
protected java.util.Map<java.lang.String,int[]> getHardOverrideManaCache()
public int[] usageCost(MOB mob, boolean ignoreClassOverride)
Ability
usageCost
in interface Ability
mob
- the invoker of the skillignoreClassOverride
- whether to ignore Class OverridesAbility.usageType()
,
Ability
public void helpProficiency(MOB mob, int adjustment)
Ability
helpProficiency
in interface Ability
mob
- the mob whose proficiency in this skill to possibly advanceadjustment
- up or down to the chance of becoming more proficientAbility.proficiency()
protected boolean failureTell(MOB mob, MOB targetM, boolean auto, java.lang.String msg)
public boolean preInvoke(MOB mob, java.util.List<java.lang.String> commands, Physical givenTarget, boolean auto, int asLevel, int secondsElapsed, double actionsRemaining)
Ability
preInvoke
in interface Ability
mob
- the player or mob invoking the skillcommands
- the parameters entered for the skill (minus trigger word)givenTarget
- null, unless being auto-invoked. Represents an override target.auto
- false if player enters command, true if system invokes the commandasLevel
- -1, unless being auto-invoked, when it is the level to invoke it at.secondsElapsed
- 0 at first, and increments every secondactionsRemaining
- number of free actions the player is defficient.Ability.invoke(MOB, List, Physical, boolean, int)
public boolean invoke(MOB mob, Physical target, boolean auto, int asLevel)
Ability
invoke
in interface Ability
mob
- the player or mob invoking the skilltarget
- null, unless being auto-invoked. Represents an override target.auto
- false if player enters command, true if system invokes the commandasLevel
- -1, unless being auto-invoked, when it is the level to invoke it at.Ability.invoke(MOB, List, Physical, boolean, int)
protected boolean testUsageCost(MOB mob, boolean auto, int[] consumed, boolean quiet)
public boolean invoke(MOB mob, java.util.List<java.lang.String> commands, Physical target, boolean auto, int asLevel)
Ability
invoke
in interface Ability
mob
- the player or mob invoking the skillcommands
- the parameters entered for the skill (minus trigger word)target
- null, unless being auto-invoked. Represents an override target.auto
- false if player enters command, true if system invokes the commandasLevel
- -1, unless being auto-invoked, when it is the level to invoke it at.protected boolean checkComponents(MOB mob)
protected java.util.Set<MOB> properTargets(MOB mob, Environmental givenTarget, boolean auto)
protected java.util.List<MOB> properTargetList(MOB mob, Environmental givenTarget, boolean auto)
protected int adjustMaliciousTickdownTime(MOB mob, Physical target, int baseTicks, int asLevel)
protected int getMaliciousTickdownTime(MOB mob, Physical target, int tickAdjustmentFromStandard, int asLevel)
public Ability maliciousAffect(MOB mob, Physical target, int asLevel, int tickAdjustmentFromStandard, int additionAffectCheckCode)
protected boolean beneficialWordsFizzle(MOB mob, Environmental target, java.lang.String message)
protected boolean beneficialVisualFizzle(MOB mob, Environmental target, java.lang.String message)
protected boolean beneficialSoundFizzle(MOB mob, Environmental target, java.lang.String message)
protected boolean maliciousFizzle(MOB mob, Environmental target, java.lang.String message)
protected int adjustBeneficialTickdownTime(MOB mob, Environmental target, int baseTicks)
protected boolean aPossibleAbuserOfCasterLevel(MOB casterM)
protected int getBeneficialTickdownTime(MOB mob, Environmental target, int tickAdjustmentFromStandard, int asLevel)
public Ability beneficialAffect(MOB mob, Physical target, int asLevel, int tickAdjustmentFromStandard)
public void spreadImmunity(MOB mob)
public boolean autoInvocation(MOB mob, boolean force)
Ability
autoInvocation
in interface Ability
mob
- the player or npc mob who has this abilityforce
- if the skill has default-off settings, this overrides to ONAbility.isAutoInvoked()
,
Ability.isNowAnAutoEffect()
public void makeNonUninvokable()
Ability
makeNonUninvokable
in interface Ability
Affectable.addNonUninvokableEffect(Ability)
,
Ability.canBeUninvoked()
public java.lang.String accountForYourself()
Ability
accountForYourself
in interface Ability
public int getTickDownRemaining()
public void setTickDownRemaining(int newTick)
public int getTickStatus()
Tickable
getTickStatus
in interface Tickable
Tickable.tick(Tickable, int)
public boolean canBeTaughtBy(MOB teacher, MOB student)
Ability
canBeTaughtBy
in interface Ability
teacher
- the potential teacher of this skillstudent
- the potential learner of this skillAbility.canBeLearnedBy(MOB, MOB)
,
Ability.teach(MOB, MOB)
public java.lang.String requirements(MOB mob)
Ability
requirements
in interface Ability
mob
- the mob whose requirements must be testedpublic boolean canBeLearnedBy(MOB teacher, MOB student)
Ability
canBeLearnedBy
in interface Ability
teacher
- the potential teacher of this skill, may be nullstudent
- the potential learner of this skill, may NOT be nullAbility.canBeTaughtBy(MOB, MOB)
,
Ability.teach(MOB, MOB)
public boolean canBePracticedBy(MOB teacher, MOB student)
Ability
canBePracticedBy
in interface Ability
teacher
- the potential practice teacher of this skillstudent
- the potential practicer of this skilAbility.practice(MOB, MOB)
public void teach(MOB teacher, MOB student)
Ability
teach
in interface Ability
teacher
- the teacher of this skillstudent
- the learner of this skillAbility.canBeTaughtBy(MOB, MOB)
,
Ability.canBeLearnedBy(MOB, MOB)
public void unlearn(MOB student)
Ability
unlearn
in interface Ability
student
- the un-learner of this skillAbility.canBeTaughtBy(MOB, MOB)
,
Ability.canBeLearnedBy(MOB, MOB)
public void practice(MOB teacher, MOB student)
Ability
practice
in interface Ability
teacher
- the teacher of this skillstudent
- the practicer of this skillAbility.canBePracticedBy(MOB, MOB)
public void makeLongLasting()
Ability
makeLongLasting
in interface Ability
public void executeMsg(Environmental myHost, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executedCMMsg
,
CMMsg.source()
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
public boolean appropriateToMyFactions(MOB mob)
Ability
appropriateToMyFactions
in interface Ability
mob
- the mob whose factions to checkPrayer
,
Faction
public boolean isGeneric()
Environmental
isGeneric
in interface Environmental
Environmental.text()
public int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
protected int getCodeNum(java.lang.String code)
protected int getInternalCodeNum(java.lang.String code)
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
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
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public boolean sameAs(Environmental E)
Environmental
sameAs
in interface Environmental
E
- the object to compare this one toModifiable.getStatCodes()
,
Modifiable.getStat(String)