AbilityContainer
, Affectable
, Behavable
, CMObject
, Combatant
, Contingent
, DBIdentifiable
, Environmental
, Expireable
, FactionMember
, Followable<MOB>
, ItemCollection
, ItemPossessor
, Modifiable
, MsgListener
, MUDCmdProcessor
, Physical
, PhysicalAgent
, Rider
, StatsAffecting
, Tattooable
, Tickable
, MOB
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
Alligator
, AngryCitizen
, Ape
, Beaver
, Bee
, BlackBear
, BrownBear
, BrownSnake
, Buffalo
, Bugbear
, Bull
, Cat
, Centaur
, Centipede
, Cheetah
, Chicken
, Chimp
, Citizen
, Cobra
, CombatDummy
, CommonBat
, Cougar
, Cow
, Coyote
, Crocodile
, Deer
, DireWolf
, Dog
, Dolphin
, Doppleganger
, Dragon
, DrowElf
, Duck
, Elephant
, Falcon
, FireGiant
, FlyingInsect
, Fox
, Frog
, FrostGiant
, GardenSnake
, GenMob
, GiantBat
, GiantScorpion
, Gnoll
, Goat
, Goblin
, Gorilla
, Hawk
, HeavenlyServent
, HillGiant
, Hornet
, InvisibleStalker
, Jaguar
, Kitten
, LargeBat
, Lion
, Lizard
, LizardMan
, Minotaur
, Monkey
, MountainLion
, Mouse
, Naga
, Ogre
, Orc
, Owl
, Panther
, Parakeet
, Penguin
, Pig
, Puppy
, Python
, Rabbit
, Rat
, Rattlesnake
, Raven
, Rooster
, Scorpion
, Seal
, Shark
, Sheep
, Snake
, Spider
, Squirrel
, StdAuctioneer
, StdDeity
, StdFactoryMOB
, StdRideable
, StdShopKeeper
, StoneGiant
, StoneGolem
, Swordfish
, Teacher
, Tiger
, Toad
, Troll
, Turtle
, UmberHulk
, Undead
, Vulture
, Walrus
, Whale
, WildEagle
, Wolf
, Wolverine
, Worm
, Wyvern
public class StdMOB extends java.lang.Object implements MOB
Modifier and Type | Class | Description |
---|---|---|
static class |
StdMOB.ApplyAffectCharState<T extends StatsAffecting> |
EachApplicable class that affect charState
|
static class |
StdMOB.ApplyAffectCharStats<T extends StatsAffecting> |
EachApplicable class that affect charStats
|
static class |
StdMOB.ApplyRecAffectPhyStats<T extends StatsAffecting> |
EachApplicable class that recovers item and affect phyStats
|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move
MOB.Attrib
Modifier and Type | Field | Description |
---|---|---|
java.lang.String |
_name |
|
protected CMUniqSortSVec<Ability> |
abilitys |
|
protected STreeMap<java.lang.String,int[][]> |
abilityUseCache |
|
protected int[] |
abilityUseTrig |
|
protected StdMOB.ApplyAffectCharState |
affectCharState |
|
protected StdMOB.ApplyAffectCharStats |
affectCharStats |
|
protected EachApplicable.ApplyAffectPhyStats<Ability> |
affectPhyStats |
|
protected SVector<Ability> |
affects |
|
protected long |
ageMinutes |
|
protected boolean |
amDead |
|
protected boolean |
amDestroyed |
|
protected Followable<MOB> |
amFollowing |
|
protected int |
atRange |
|
protected int |
attributesBitmap |
|
protected CharStats |
baseCharStats |
|
protected PhyStats |
basePhyStats |
|
CharState |
baseState |
|
protected CMUniqSortSVec<Behavior> |
behaviors |
|
protected java.lang.String |
cachedImageName |
|
protected CharStats |
charStats |
|
protected java.util.List<Ability> |
clanAffects |
|
protected OrderedMap<java.lang.String,Pair<Clan,java.lang.Integer>> |
clans |
|
protected static java.lang.String[] |
CODES |
|
protected java.util.LinkedList<com.planet_ink.coffee_mud.MOBS.StdMOB.QMCommand> |
commandQue |
|
CharState |
curState |
|
protected java.lang.String |
databaseID |
|
protected java.lang.Object |
description |
|
protected java.lang.String |
displayText |
|
protected int |
experience |
|
protected STreeMap<java.lang.String,java.lang.Integer> |
expertises |
|
protected SHashtable<java.lang.String,Faction.FData> |
factions |
|
protected PairList<MOB,java.lang.Short> |
followers |
|
protected SVector<Item> |
inventory |
|
protected boolean |
kickFlag |
|
protected Room |
lastLocation |
|
protected java.lang.String |
liegeID |
|
protected Room |
location |
|
CharState |
maxState |
|
protected MOB |
me |
|
protected java.lang.Object |
miscText |
|
protected int |
money |
|
protected double |
moneyVariation |
|
protected Session |
mySession |
|
protected long |
peaceTime |
|
protected PhyStats |
phyStats |
|
protected PlayerStats |
playerStats |
|
protected java.lang.ref.WeakReference<Item> |
possHeldItem |
|
protected Room |
possStartRoom |
|
protected java.lang.ref.WeakReference<Item> |
possWieldedItem |
|
protected int |
practices |
|
protected int |
questPoint |
|
protected java.util.List<Ability> |
racialAffects |
|
protected java.lang.String |
rawImageName |
|
protected StdMOB.ApplyRecAffectPhyStats<Item> |
recoverAffectP |
|
protected int |
recoverTickCter |
|
protected boolean |
removeFromGame |
|
protected Rideable |
riding |
|
protected SVector<ScriptingEngine> |
scripts |
|
protected MOB |
soulMate |
|
protected double |
speedAdj |
|
protected CMUniqNameSortSVec<Tattoo> |
tattoos |
|
protected int |
tickAgeCounter |
|
protected int |
tickStatus |
|
protected int |
trains |
|
protected Triggerer |
triggerer |
|
protected int |
validChkCounter |
|
protected MOB |
victim |
|
protected int |
wimpHitPoint |
|
protected java.lang.String[] |
xtraValues |
idConverter
AGE_MILLIS_THRESHOLD, END_SHEATH_TIME, START_SHEATH_TIME
METAFLAG_AS, METAFLAG_ASMESSAGE, METAFLAG_FORCED, METAFLAG_INORDER, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_QUIETLY, METAFLAG_REVERSED, METAFLAG_SNOOPED
Constructor | Description |
---|---|
StdMOB() |
Modifier and Type | Method | Description |
---|---|---|
java.util.Enumeration<Ability> |
abilities() |
Returns an enumerator of the Ability objects in this container.
|
double |
actions() |
Returns the number of action points that this processor
has to spend towards performing any commands, skills,
or whatever needs action points to be spent on them.
|
void |
addAbility(Ability to) |
Adds a new ability to this for use.
|
void |
addBehavior(Behavior to) |
Manipulation of Behavior objects, which includes movement, speech,
spellcasting, etc, etc.
|
void |
addEffect(Ability to) |
Add a new effect to this object, whether permanent or temporary.
|
void |
addExpertise(java.lang.String code) |
Adds a new expertise, or updates an existing one.
|
void |
addFaction(java.lang.String which,
int start) |
Manipulation of the factions list
|
void |
addFollower(MOB follower,
int order) |
Adds/Alters a follower to this Followable, of the appropriate type, while
also setting the order/rank they hold in the line.
|
void |
addItem(Item item) |
Adds a new item to its possessor.
|
void |
addItem(Item item,
ItemPossessor.Expire expire) |
Adds a new item to its possessor, with an expiration code.
|
void |
addNonUninvokableEffect(Ability to) |
Same as addEffect(Ability), but will set the Ability object as never being able to be uninvoked.
|
void |
addPriorityEffect(Ability to) |
Adds the given Ability as a new effect, also putting it on the top of
the list to ensure that it is processed first for messaging and
stat effect purposes.
|
void |
addScript(ScriptingEngine S) |
Manipulation of the scripts list
|
void |
addTattoo(Tattoo of) |
Add a new tattoo to this object
|
void |
addTattoo(java.lang.String of) |
Manipulation of the tatoo list
|
void |
addTattoo(java.lang.String of,
int tickDown) |
Add a new tattoo to this object
|
void |
adjustFaction(java.lang.String which,
int amount) |
If this is already a member of the given faction, then the
value or rank in that faction will be adjusted by the given
amount.
|
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.
|
void |
affectPhyStats(Physical affected,
PhyStats affectableStats) |
This method is called by the recoverPhyStats() method on other Environmental objects.
|
java.util.Enumeration<Ability> |
allAbilities() |
Returns an enumerator of the Ability objects in this container.
|
boolean |
amActive() |
Returns whether this mob has been removed from the game.
|
boolean |
amDead() |
Returns whether this combatant is dead and presumably waiting for rejuv.
|
boolean |
amDestroyed() |
Whether the destroy() method has been previousy called on this object.
|
MOB |
amFollowing() |
Returns the followable that this followable follower is following, or null.
|
MOB |
amUltimatelyFollowing() |
If this followable follower is following a followable that is also following
a followable, then this will recursively determine the First followable and
return it.
|
CharStats |
baseCharStats() |
Gets the Base CharStats object for this mob, which are the stats like saves and strength.
|
PhyStats |
basePhyStats() |
Object containing a set of base, unmodified, mostly numeric fields.
|
CharState |
baseState() |
Gets the Base CharState object for this mob, which are the stats like health and mana.
|
int |
baseWeight() |
Returns the base weight of this mob, which includes any char stat
adjustments, and adjustments from race.
|
java.util.Enumeration<Behavior> |
behaviors() |
Returns an enumerator of all the behaviors on this object.
|
void |
bringToLife() |
Flags this mob as being alive, and restarts the mob tick.
|
void |
bringToLife(Room newLocation,
boolean resetStats) |
Brings this mob to life, or back to life, and puts the mob
into the given room, or their start room if none given.
|
protected double |
calculateActionCost(java.lang.Object command,
java.util.List<java.lang.String> commands,
double overrideActionCost) |
|
boolean |
canSaveDatabaseID() |
Returns true if this object can safely store and retrieve
a database ID, and false if the TYPE of object can, but
this particular instance can not.
|
CharStats |
charStats() |
Gets the Current CharStats object for this mob, which are the stats like saves and strength.
|
protected void |
checkCommandCancel() |
|
protected java.util.List<Ability> |
clanEffects() |
|
java.lang.Iterable<Pair<Clan,java.lang.Integer>> |
clans() |
Returns an iterable set of the Clans that this mob/player belongs
to, along with the Rank code in that clan that this mob has in it.
|
void |
clearCommandQueue() |
Cancels and empties the command que of this processor.
|
protected void |
cloneFix(MOB M) |
|
int |
commandQueSize() |
Returns the number of commands on this processors que
|
int |
compareTo(CMObject o) |
|
protected boolean |
confirmLocation(Room whereHeShouldBeR) |
|
void |
copyFactions(FactionMember source) |
Copies the factions that the given member belongs to into this.
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
protected int |
counItemsWornAt(java.util.List<Item> items,
long wornCode) |
|
CharState |
curState() |
Gets the Current CharState object for this mob, which are the temp stats like health and mana.
|
java.lang.String |
databaseID() |
Retrieve the unique contextual database ID for this object.
|
void |
delAbility(Ability to) |
Removes the exact given ability object from here.
|
void |
delAllAbilities() |
Removes all owned abilities from this container.
|
void |
delAllBehaviors() |
Removes all behaviors from this object.
|
void |
delAllEffects(boolean unInvoke) |
Optionally uninvokes and then certainly removes all effects
from this object.
|
void |
delAllExpertises() |
Deletes all expertises from the collection
|
void |
delAllItems(boolean destroy) |
Removes all items from this collection
|
void |
delAllScripts() |
Removes all executing scripts from this object.
|
void |
delBehavior(Behavior to) |
Delete a behavior from this object.
|
void |
delEffect(Ability to) |
Delete an effect from this object, whether permanent or temporary.
|
void |
delExpertise(java.lang.String baseCode) |
Deletes an expertise.
|
void |
delFollower(MOB follower) |
Removes the given follower from this followable.
|
void |
delItem(Item item) |
Removes the item from this possessor.
|
void |
delScript(ScriptingEngine S) |
Remove a running script from this object.
|
void |
delTattoo(Tattoo of) |
Remove a specific tattoo from this object
|
boolean |
delTattoo(java.lang.String of) |
Remove a specific tattoo from this object
|
boolean |
dequeCommand() |
If this processor has enough action points to perform the top command on the que,
then this method will execute that action.
|
java.lang.String |
description() |
The basic description of this object, as shown when the item is directly LOOKed at.
|
java.lang.String |
description(MOB viewerMob) |
Returns the description, but as seen by the given viewer.
|
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.
|
java.lang.String |
displayText(MOB viewerMob) |
Returns the displayText, but as seen by the given viewer.
|
void |
dispossess(boolean forceLook) |
If this mob is being possessed by a player, this method can be
called to return this mobs borrowed session to the player,
thus ending the possession.
|
protected void |
doCommand(java.lang.Object O,
java.util.List<java.lang.String> commands,
int metaFlags) |
|
void |
doCommand(java.util.List<java.lang.String> commands,
int metaFlags) |
Forces this processor to parse the given command string tokens,
determine a command to execute, and then execute it,
regardless of whether there are any action points
remaining.
|
void |
eachBehavior(EachApplicable<Behavior> applier) |
Applies the given code to each behavior on this object
|
void |
eachEffect(EachApplicable<Ability> applier) |
Applies the given code to each effect on this object
|
void |
eachItem(EachApplicable<Item> applier) |
Applies the given code to each item in this collection
|
void |
eachScript(EachApplicable<ScriptingEngine> applier) |
Applies the given code to each scripting engine on this object
|
java.util.Enumeration<Ability> |
effects() |
Returns an enumerator of abilities listed as effects on this object.
|
void |
enqueCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double actionCost) |
Parses the given command string tokens to determine what kind of command is
to be executed, and depending on how many actions the player has remaining
this tick, either executes the command or puts it on the que for automatic
execution once sufficient actions are available.
|
void |
enqueCommands(java.util.List<java.util.List<java.lang.String>> commands,
int metaFlags) |
Parses the given commands string tokens to determine what kind of commands are
to be executed, and depending on how many actions the player has remaining
this tick, either executes the commands or puts them on the que for automatic
execution once sufficient actions are available.
|
void |
executeMsg(Environmental myHost,
CMMsg msg) |
The general message event handler for the object.
|
java.util.Enumeration<java.lang.String> |
expertises() |
Returns an enumerator of all the expertise names
with their numbers if any .
|
long |
expirationDate() |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
java.util.Enumeration<java.lang.String> |
factions() |
Returns an enumeration of all the faction id this is a member of.
|
Ability |
fetchAbility(int index) |
Returns the Ability object at that index in this container.
|
Ability |
fetchAbility(java.lang.String ID) |
If contained herein, this will return the ability from this
container of the given ID.
|
Behavior |
fetchBehavior(int index) |
Returns a behavior object on this object.
|
Behavior |
fetchBehavior(java.lang.String ID) |
Returns a behavior object listed on this object.
|
Ability |
fetchEffect(int index) |
Returns an ability object listed as an effect on this object.
|
Ability |
fetchEffect(java.lang.String ID) |
Returns an ability object listed as an effect on this object.
|
Pair<java.lang.String,java.lang.Integer> |
fetchExpertise(java.lang.String baseCode) |
Returns the expertise and number for the given code.
|
int |
fetchFaction(java.lang.String which) |
Returns the faction rank/value that this member has in the given
faction id.
|
Faction.FData |
fetchFactionData(java.lang.String which) |
Returns the complete contextual faction data for this
member.
|
java.util.List<java.lang.String> |
fetchFactionRanges() |
Returns an enumeration of the faction range ids that represent the
rank that this member has in each of their factions.
|
Item |
fetchFirstWornItem(long wornCode) |
Returns the first item encountered on this player/mob at the given worn code, or
null if nothing found.
|
MOB |
fetchFollower(int index) |
Returns the followable follower at the give index in this collection
|
MOB |
fetchFollower(java.lang.String named) |
Returns the followable follower that best matches the given search
string name.
|
int |
fetchFollowerOrder(MOB thisOne) |
Returns the relative order/rank of the specific follower
in the formation.
|
Item |
fetchFromInventory(Item goodLocation,
java.lang.String itemName,
Filterer<Environmental> filter,
boolean respectLocationAndWornCode) |
|
Item |
fetchHeldItem() |
Returns the item being wielded in the HELD position by this player/mob.
|
Item |
fetchItem(Item goodLocation,
Filterer<Environmental> filter,
java.lang.String itemName) |
Returns a best match for the given itemName in this mob/players base inventory.
|
Ability |
fetchRandomAbility() |
Returns a random ability from this container.
|
ScriptingEngine |
fetchScript(int x) |
Retrieve one of the enumerated scripts running on this
object
|
Item |
fetchWieldedItem() |
Returns the item being wielded in the WIELD position by this player/mob.
|
java.util.List<Item> |
fetchWornItems(long wornCode,
short aboveOrAroundLayer,
short layerAttributes) |
Returns the collection of items worn by this mob/player at the given specific worn
code, at or above the given Layer code, and having the given layerAttributes.
|
Ability |
findAbility(java.lang.String ID) |
Returns the best match ability/skill/spell of this mob to the given search
name string.
|
Item |
findItem(Item goodLocation,
java.lang.String itemName) |
Returns the item in the given container that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller name is found).
|
Item |
findItem(java.lang.String itemName) |
Returns the item in this possessor that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller name is found).
|
java.util.List<Item> |
findItems(Item goodLocation,
java.lang.String itemName) |
Returns all items in the given container that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller names are found).
|
java.util.List<Item> |
findItems(java.lang.String itemName) |
Returns all items in this possessor that matches the
given itemID, whether by full name, description, class ID,
or partial name (if no fuller names are found).
|
Tattoo |
findTattoo(java.lang.String of) |
Returns the tattoo of the given marker name
|
Tattoo |
findTattooStartsWith(java.lang.String of) |
Returns the tattoo that starts with the given marker name
|
protected java.lang.String |
fixChannelColors(int channelCode,
java.lang.String message) |
|
void |
flagVariableEq() |
Flags this mob as having their base inventory / shop inventory reconstructed from
the database.
|
java.util.Enumeration<Pair<MOB,java.lang.Short>> |
followers() |
Returns an enumeration of the followers of this Followable,
along with their relative rank/position in the formation.
|
int |
freeWearPositions(long wornCode,
short belowLayer,
short layerAttributes) |
Returns the number of free spaces the player/mob has at the given worn location,
below the given layer, without the given attributes.
|
java.lang.String |
genericName() |
Returns a generic name for this object, devoid of its particular
identifying details.
|
int[][] |
getAbilityUsageCache(java.lang.String abilityID) |
Because of certain variables, mobs are required to cache the calculation of the
costs of using their Abilities.
|
long |
getAgeMinutes() |
Returns the total number of rl minutes this player has ever played.
|
int |
getAttributesBitmap() |
Returns the raw numeric attributes bitmap
|
Pair<Clan,java.lang.Integer> |
getClanRole(java.lang.String clanID) |
Given a precise clanID (name), this method returns the Clan object and
this players rank in the clan, if they belong.
|
protected int |
getCodeNum(java.lang.String code) |
|
PhysicalAgent |
getCombatant() |
If this mob is in combat, this returns the mob that this mob is
targeting.
|
java.lang.String |
getContextName(Environmental E) |
Generates a specific search-string name for the given
object in this possessor.
|
int |
getDirectionToTarget() |
Gets the compass direction between this combatant and the current combat
victim.
|
int |
getExperience() |
Returns the total number of experience points earned by this mob.
|
int |
getExpNeededDelevel() |
Returns the number of experience points gained since the player
got their current level, thus also telling you how much xp can
be lost before de-leveling.
|
int |
getExpNeededLevel() |
Returns the number of additional experience points needed for
this mob to gain their next level.
|
int |
getExpNextLevel() |
Gets the total number of experience points this mob needs to earn
their next level.
|
int |
getExpPrevLevel() |
Gets the total number of experience points the mob acquired to
reach their current level, making it the baseline for this
levels experience.
|
java.lang.String |
getFactionListing() |
Returns a friendly viewable list of all the factions that this is
a member of, along with the rank/value this member has in that
faction.
|
java.util.Set<MOB> |
getGroupMembers(java.util.Set<MOB> list) |
Fills the given set with the Complete set of all followable followers by
counting not only this followable, but all the recursive followable
followers of this followable, and all the followables followed by this
followable and all their followable followers.
|
java.util.Set<? extends Rider> |
getGroupMembersAndRideables(java.util.Set<? extends Rider> list) |
Fills the given set with the Complete set of all followable followers by
counting not only this followable, but all the recursive followable
followers of this followable, and all the followables followed by this
followable and all their followable followers.
|
Item |
getItem(int index) |
Returns the item at the given index, regardless of container status,
visibility, or other modifiers.
|
java.lang.String |
getLiegeID() |
Returns the liege to which this mob owes loyalty.
|
int |
getMoney() |
Only somewhat deprecated, this method returns the internal
money counter.
|
double |
getMoneyVariation() |
Returns a positive or negative range from 0->this number
that represents the amount of money added or removed from
this mob when the mob-as-NPC does and is ready to be looted.
|
Weapon |
getNaturalWeapon() |
Returns the Weapon object that this mob attacks with when attacking
otherwise unarmed.
|
long |
getPeaceTime() |
Returns the number of ms (in tick increments)
that this mob has NOT been in combat.
|
int |
getPractices() |
Returns the number of practice points this mob has
|
int |
getQuestPoint() |
Returns the number of quest points that this mob has earned.
|
Item |
getRandomItem() |
Returns a random item in this collection, or null
|
java.util.Set<MOB> |
getRideBuddies(java.util.Set<MOB> list) |
This method recursively returns whoever this mob is riding, and
if they are a rideable, who all is riding with him.
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
Room |
getStartRoom() |
Gets the stored Start Room for this mob.
|
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.
|
int |
getTickStatus() |
A coded status for this object during the period where
its tick method is being called.
|
Pair<java.lang.Object,java.util.List<java.lang.String>> |
getTopCommand() |
Returns the command at the top of this processors que, which
might be in an action wait state.
|
int |
getTrains() |
Returns the number of training sessions this mob has
|
MOB |
getVictim() |
If this mob is in combat, this returns the mob that this mob is
targeting.
|
int |
getWearPositions(long wornCode) |
Returns the total number of worn locations this mob/player has at the given
worn code location.
|
int |
getWimpHitPoint() |
Returns the number of hit points below which this mob will
automatically flee combat.
|
boolean |
hasFaction(java.lang.String which) |
Returns whether this is a member of the given faction and has some
rank.
|
boolean |
hasOnlyGoldInInventory() |
Returns whether this mob is only carrying money, meaning their main inventory
is essentially empty.
|
java.lang.String |
healthText(MOB viewer) |
Returns the friendly viewable description of this mobs health status,
from the given viewer mobs point of view.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
java.lang.String |
image() |
Returns the fully qualified and determined name of the image file displayed for this
object when MXP is used.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isAttributeSet(MOB.Attrib attrib) |
Returns whether the given attribute is set.
|
boolean |
isContent(Item I) |
Returns whether the given item is in this possessors list.
|
protected boolean |
isEitherOfUsDead(MOB mob) |
|
boolean |
isFollowedBy(MOB thisOne) |
Returns whether the given followable is following this
followable.
|
boolean |
isGeneric() |
Whether the fields of this item are set in code, or set by builders.
|
boolean |
isInCombat() |
Returns whether this combatant is in an active combat state
|
boolean |
isMarriedToLiege() |
Returns whether this mob/player is married to their liege, or whether
they are a simple liege.
|
boolean |
isMine(Environmental env) |
Returns whether the given environmental is possessed by this mob.
|
boolean |
isMonster() |
Returns whether this mob has a real telnet session attached to it.
|
protected boolean |
isPermissableToFight(MOB mob) |
|
boolean |
isPlayer() |
Returns whether this mob represents a player.
|
boolean |
isPossessing() |
Returns whether this mob base session is possessing some other
mob.
|
boolean |
isRacialAbility(java.lang.String abilityID) |
Returns whether the given ability is actually a racial
ability instead of a learned, clan, or some other kind
of 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.util.Enumeration<Item> |
items() |
An enumeration of all the items at this possessor.
|
DeadBody |
killMeDead(boolean createBody) |
Puts this combatant in a dead state, removes all temporary effects,
creates a corpse, ends combat, and sends mob players to their graveyard.
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
long |
lastTickedDateTime() |
Returns the precise time, in milliseconds, that this mob last
"Ticked".
|
Room |
location() |
Returns the room in which this mob/player is currently standing.
|
void |
makePeace(boolean includePlayerFollowers) |
Clears the combat state between this combatant and their
target, clears the targets combat state, as well as
that of any followers of this combatant.
|
int |
maxCarry() |
Returns the maximum total weight in pounds that this mob can carry.
|
int |
maxFollowers() |
Returns the maximum number of followers that this Followable can
have.
|
int |
maxItems() |
Returns the maximum total number of items that this mob can carry.
|
int |
maxRange() |
the modified maximum range of this object, if applicable.
|
CharState |
maxState() |
Gets the Max CharState object for this mob, which are the stats like health and mana.
|
boolean |
mayIFight(PhysicalAgent victim) |
Returns whether this combatant is both permitted to attack the
given combatant, and that both this combatant and the potential target
are alive.
|
boolean |
mayPhysicallyAttack(PhysicalAgent victim) |
Returns whether this combatant is permitted to attack the
given combatant, both this combatant and the potential target are alive,
both the combatant and the target are confirmed to be the same
place.
|
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.
|
void |
moveItemTo(Item container) |
Intelligently removes an item from its current location and
moves it to this possessor, managing any container contents.
|
void |
moveItemTo(Item container,
ItemPossessor.Expire expire,
ItemPossessor.Move... moveFlags) |
Intelligently removes an item from its current location and
moves it to this possessor, managing any container contents,
and possibly followers/riders if the item is a cart.
|
java.lang.String |
name() |
The nice displayable name of this instance of this object
|
java.lang.String |
name(MOB viewer) |
Returns the name, but as seen by the given viewer.
|
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.
|
int |
numAbilities() |
Returns the number of abilities contained herein this object.
|
int |
numAllAbilities() |
Returns the number of all abilities in this container.
|
int |
numAllEffects() |
Returns the total number of effects this mob/player is under, including
Racial and Clan effects.
|
int |
numBehaviors() |
The number of behaviors this object has.
|
int |
numEffects() |
Returns the number of ability objects listed as effects on this object.
|
int |
numFollowers() |
Returns the total number of Direct followers
|
int |
numItems() |
Returns the total number of items at this possessor, regardless
of container status.
|
int |
numScripts() |
Return the number of scripts running on this object
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
java.util.Enumeration<Ability> |
personalEffects() |
Returns an enumeration only of the effects that are personally owned
by this mob, which means it will skip any Clan or Racial effects.
|
PhyStats |
phyStats() |
Object containing a set of current, modified, usable, mostly numeric fields.
|
PlayerStats |
playerStats() |
Returns the PlayerStats object for this mob.
|
void |
prequeCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double actionCost) |
Parses the given command string tokens to determine what kind of command is
to be executed, and depending on how many actions the player has remaining
this tick, either executes the command or puts it on the que for automatic
execution once sufficient actions are available.
|
void |
prequeCommands(java.util.List<java.util.List<java.lang.String>> commands,
int metaFlags) |
Parses the given command string tokens to determine what kind of command is
to be executed, and depending on how many actions the player has remaining
this tick, either executes the command or puts it on the que for automatic
execution once sufficient actions are available.
|
protected java.util.List<Ability> |
racialEffects() |
|
int |
rangeToTarget() |
Gets the distance between this combatant and the current combat
victim.
|
java.lang.String |
rawImage() |
Returns the raw name of the image file to display for this object when MXP is used.
|
void |
recoverCharStats() |
Causes this mob to recalculate its current char stats by copying the base stats
over and then calling all equipment and spell effects to modify them.
|
void |
recoverMaxState() |
Causes this mob to recalculate its max char state by copying the base state
over and then calling all equipment and spell effects to modify them.
|
void |
recoverPhyStats() |
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to
all surrounding objects with affectPhyStats(Environmental,PhyStats) method.
|
void |
removeFaction(java.lang.String which) |
Removes this as a member of the given faction, losing all rank.
|
void |
removeFromGame(boolean preserveFollowers,
boolean killSession) |
Removes this mob from the game.
|
void |
resetToMaxState() |
Causes this mob to copy the max state object to the current state object,
effectively healing and rejuvinating the mob.
|
Rideable |
riding() |
Returns the Rideable upon which this Rider is Riding.
|
boolean |
sameAs(Environmental E) |
Whether this object instance is functionally identical to the object passed in.
|
java.util.Enumeration<ScriptingEngine> |
scripts() |
Returns an enumerator of all the scripts on this object.
|
Session |
session() |
Returns any Telnet Session object attached to this mob.
|
void |
setActions(double remain) |
Sets the number of action points that this processor
has to spend towards performing any commands, skills,
or whatever needs action points to be spent on them.
|
void |
setAgeMinutes(long newVal) |
Returns the total number of rl minutes this player has ever played.
|
void |
setAttribute(MOB.Attrib attrib,
boolean set) |
Changes the value of a specific attribute
|
void |
setAttributesBitmap(int bitmap) |
Sets the raw numeric attributes bitmap
|
void |
setBaseCharStats(CharStats newBaseCharStats) |
Sets the Base CharStats object for this mob, which are the stats like saves and strength.
|
void |
setBasePhyStats(PhyStats newStats) |
Re-sets the object containing a set of base, unmodified, mostly numeric fields.
|
void |
setBaseState(CharState newState) |
Sets the Base CharState object for this mob, which are the stats like health and mana.
|
void |
setClan(java.lang.String clanID,
int role) |
Adds or alters the rank of this player/mob in the given clan.
|
void |
setCombatant(PhysicalAgent other) |
Sets the mob that this mob is targeting for combat, which
either puts them into, or clears their combat state.
|
void |
setDatabaseID(java.lang.String id) |
Set the unique contextual database ID for this object.
|
void |
setDescription(java.lang.String newDescription) |
Sets the basic description of this object, as shown when the item is directly LOOKed at.
|
protected void |
setDestroyed(boolean truefalse) |
|
void |
setDisplayText(java.lang.String newDisplayText) |
Sets the raw string used to show what this object looks like in the room.
|
void |
setExperience(int newVal) |
Sets the total number of experience points earned by this mob.
|
void |
setExpirationDate(long time) |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
void |
setFollowing(MOB mob) |
Alters who this followable follower is following.
|
void |
setImage(java.lang.String newImage) |
Sets the raw name of the image file to display for this object when MXP is used.
|
void |
setLiegeID(java.lang.String newVal) |
Sets the liege to which this mob owes loyalty.
|
void |
setLocation(Room newRoom) |
Sets the room in which this mob/player is currently standing.
|
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 |
setMoney(int newVal) |
Only somewhat deprecated, this method sets the internal
money counter.
|
void |
setMoneyVariation(double newVal) |
Sets a positive or negative range from 0->this number
that represents the amount of money added or removed from
this mob when the mob-as-NPC does and is ready to be looted.
|
void |
setName(java.lang.String newName) |
Sets the raw unmodified name of this object as stored in the database.
|
void |
setPlayerStats(PlayerStats newStats) |
Sets the PlayerStats object for this mob.
|
void |
setPractices(int newVal) |
Sets the number of practice points this mob has
|
void |
setQuestPoint(int newVal) |
Sets the number of quest points that this mob has earned.
|
void |
setRangeToTarget(int newRange) |
Sets the distance between this combatant and the current combat
victim.
|
void |
setRiding(Rideable ride) |
Sets the Rideable upon which this Rider is Riding.
|
void |
setSavable(boolean truefalse) |
Sets whether this object can be saved as a permanent aspect of
its host.
|
void |
setSession(Session newSession) |
Sets any Telnet Session object attached to this mob.
|
void |
setSoulMate(MOB mob) |
Sets the player mob that is possessing this mob by loaning
it its session.
|
void |
setStartRoom(Room room) |
Sets the stored Start Room for this mob.
|
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 |
setTrains(int newVal) |
Sets the number of training sessions this mob has
|
void |
setTriggerer(Triggerer triggerer) |
Sets the Triggerer for this mob.
|
void |
setVictim(MOB other) |
Sets the mob that this mob is targeting for combat, which
either puts them into, or clears their combat state.
|
void |
setWimpHitPoint(int newVal) |
Sets the number of hit points below which this mob will
automatically flee combat.
|
MOB |
soulMate() |
Returns the player mob that is possessing this mob by loaning
it its session.
|
java.util.Enumeration<Tattoo> |
tattoos() |
Returns an enumeration of all the tattoos on this object.
|
void |
tell(MOB source,
Environmental target,
Environmental tool,
java.lang.String msg) |
Basic communication to a session attached to this mob, if any.
|
void |
tell(java.lang.String msg) |
Basic communication to a session attached to this mob, if any.
|
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 |
titledName() |
If this player is using a title, this method returns
the players Name() with the title.
|
java.lang.String |
titledName(MOB viewer) |
If this player is using a title, this method returns
the players Name() with the title.
|
int |
totalFollowers() |
Returns the total number of followable followers following this followable
by counting not only the followable followers of this followable, but also
the followable followers of the followable followers of this followable,
recursively.
|
Triggerer |
triggerer() |
Returns the Triggerer for this mob.
|
boolean |
willFollowOrdersOf(MOB mob) |
Returns whether the given mob has the authority to give Orders
to this mob, whether from security status, or clan rank.
|
public java.lang.String _name
protected CharStats baseCharStats
protected CharStats charStats
protected PhyStats phyStats
protected PhyStats basePhyStats
protected PlayerStats playerStats
protected Triggerer triggerer
protected boolean amDestroyed
protected boolean removeFromGame
protected volatile boolean amDead
protected volatile Room location
protected volatile Room lastLocation
protected Rideable riding
protected volatile Session mySession
protected java.lang.Object description
protected java.lang.String displayText
protected java.lang.String rawImageName
protected java.lang.String cachedImageName
protected java.lang.Object miscText
protected java.lang.String[] xtraValues
protected int experience
protected int practices
protected int trains
protected long ageMinutes
protected int money
protected double moneyVariation
protected double speedAdj
protected int attributesBitmap
protected java.lang.String databaseID
protected int tickAgeCounter
protected int recoverTickCter
protected int validChkCounter
public CharState curState
public CharState maxState
public CharState baseState
protected Room possStartRoom
protected java.lang.String liegeID
protected int wimpHitPoint
protected int questPoint
protected MOB victim
protected Followable<MOB> amFollowing
protected MOB soulMate
protected int atRange
protected long peaceTime
protected boolean kickFlag
protected MOB me
protected int tickStatus
protected CMUniqSortSVec<Ability> abilitys
protected int[] abilityUseTrig
protected STreeMap<java.lang.String,int[][]> abilityUseCache
protected STreeMap<java.lang.String,java.lang.Integer> expertises
protected CMUniqSortSVec<Behavior> behaviors
protected CMUniqNameSortSVec<Tattoo> tattoos
protected java.util.LinkedList<com.planet_ink.coffee_mud.MOBS.StdMOB.QMCommand> commandQue
protected SVector<ScriptingEngine> scripts
protected volatile java.util.List<Ability> racialAffects
protected volatile java.util.List<Ability> clanAffects
protected SHashtable<java.lang.String,Faction.FData> factions
protected volatile java.lang.ref.WeakReference<Item> possWieldedItem
protected volatile java.lang.ref.WeakReference<Item> possHeldItem
protected EachApplicable.ApplyAffectPhyStats<Ability> affectPhyStats
protected StdMOB.ApplyRecAffectPhyStats<Item> recoverAffectP
protected StdMOB.ApplyAffectCharStats affectCharStats
protected StdMOB.ApplyAffectCharState affectCharState
protected OrderedMap<java.lang.String,Pair<Clan,java.lang.Integer>> clans
protected static java.lang.String[] CODES
public java.lang.String ID()
CMObject
public long lastTickedDateTime()
MOB
lastTickedDateTime
in interface MOB
public void flagVariableEq()
MOB
flagVariableEq
in interface MOB
public long getAgeMinutes()
MOB
getAgeMinutes
in interface MOB
MOB.setAgeMinutes(long)
public int getPractices()
MOB
getPractices
in interface MOB
MOB.setPractices(int)
public int getExperience()
MOB
getExperience
in interface MOB
MOB.setExperience(int)
,
MOB.getExpNextLevel()
,
MOB.getExpNeededDelevel()
,
MOB.getExpNeededLevel()
,
MOB.getExpPrevLevel()
public int getExpNextLevel()
MOB
getExpNextLevel
in interface MOB
MOB.getExperience()
,
MOB.setExperience(int)
,
MOB.getExpNeededDelevel()
,
MOB.getExpNeededLevel()
,
MOB.getExpPrevLevel()
public int getExpPrevLevel()
MOB
getExpPrevLevel
in interface MOB
public int getExpNeededDelevel()
MOB
getExpNeededDelevel
in interface MOB
MOB.getExperience()
,
MOB.getExpNextLevel()
,
MOB.setExperience(int)
,
MOB.getExpNeededLevel()
,
MOB.getExpPrevLevel()
public int getExpNeededLevel()
MOB
getExpNeededLevel
in interface MOB
MOB.getExperience()
,
MOB.getExpNextLevel()
,
MOB.getExpNeededDelevel()
,
MOB.setExperience(int)
,
MOB.getExpPrevLevel()
public int getTrains()
MOB
getTrains
in interface MOB
MOB.setTrains(int)
public int getMoney()
MOB
getMoney
in interface MOB
MOB.setMoney(int)
,
MOB.getMoneyVariation()
,
MOB.setMoneyVariation(double)
public double getMoneyVariation()
MOB
getMoneyVariation
in interface MOB
MOB.getMoney()
,
MOB.setMoney(int)
,
MOB.setMoneyVariation(double)
public int getAttributesBitmap()
MOB
getAttributesBitmap
in interface MOB
MOB.Attrib
,
MOB.setAttributesBitmap(int)
public void setAgeMinutes(long newVal)
MOB
setAgeMinutes
in interface MOB
newVal
- the total number of rl minutes this player has ever played.MOB.getAgeMinutes()
public void setExperience(int newVal)
MOB
setExperience
in interface MOB
newVal
- the total number of experience points earned by this mob.MOB.getExperience()
,
MOB.getExpNextLevel()
,
MOB.getExpNeededDelevel()
,
MOB.getExpNeededLevel()
,
MOB.getExpPrevLevel()
public void setPractices(int newVal)
MOB
setPractices
in interface MOB
newVal
- the number of practice points this mob hasMOB.getPractices()
public void setTrains(int newVal)
MOB
setTrains
in interface MOB
newVal
- the number of training sessions this mob hasMOB.getTrains()
public void setMoney(int newVal)
MOB
setMoney
in interface MOB
newVal
- the mob npc moneyMOB.getMoney()
,
MOB.getMoneyVariation()
,
MOB.setMoneyVariation(double)
public void setMoneyVariation(double newVal)
MOB
setMoneyVariation
in interface MOB
newVal
- the amount of money to vary for looting moneyMOB.getMoney()
,
MOB.getMoneyVariation()
,
MOB.setMoneyVariation(double)
public void setAttributesBitmap(int bitmap)
MOB
setAttributesBitmap
in interface MOB
bitmap
- the raw numeric attributes bitmapMOB.Attrib
,
MOB.getAttributesBitmap()
public void setAttribute(MOB.Attrib attrib, boolean set)
MOB
setAttribute
in interface MOB
attrib
- the attribute to set or clearset
- true to set it, false to clear itMOB.isAttributeSet(Attrib)
public boolean isAttributeSet(MOB.Attrib attrib)
MOB
isAttributeSet
in interface MOB
attrib
- the attribute to checkMOB.setAttribute(Attrib, boolean)
public java.lang.String getFactionListing()
FactionMember
getFactionListing
in interface FactionMember
FactionMember
public java.lang.String getLiegeID()
MOB
getLiegeID
in interface MOB
MOB.setLiegeID(String)
,
MOB.isMarriedToLiege()
public int getWimpHitPoint()
MOB
getWimpHitPoint
in interface MOB
MOB.setWimpHitPoint(int)
public int getQuestPoint()
MOB
getQuestPoint
in interface MOB
MOB.setQuestPoint(int)
public void setLiegeID(java.lang.String newVal)
MOB
setLiegeID
in interface MOB
newVal
- the name of the player to which this mob owes loyaltyMOB.getLiegeID()
,
MOB.isMarriedToLiege()
public void setWimpHitPoint(int newVal)
MOB
setWimpHitPoint
in interface MOB
newVal
- the wimpy hit point numberMOB.getWimpHitPoint()
public void setQuestPoint(int newVal)
MOB
setQuestPoint
in interface MOB
newVal
- the number of quest points that this mob has earned.MOB.getQuestPoint()
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public Room getStartRoom()
MOB
getStartRoom
in interface MOB
MOB.setStartRoom(Room)
public void setStartRoom(Room room)
MOB
setStartRoom
in interface MOB
room
- the stored Start Room for this mobMOB.getStartRoom()
public void setDatabaseID(java.lang.String id)
DBIdentifiable
setDatabaseID
in interface DBIdentifiable
id
- the unique contextual database ID for this object.DBIdentifiable.canSaveDatabaseID()
,
DBIdentifiable.databaseID()
public boolean canSaveDatabaseID()
DBIdentifiable
canSaveDatabaseID
in interface DBIdentifiable
DBIdentifiable.databaseID()
,
DBIdentifiable.setDatabaseID(String)
public java.lang.String databaseID()
DBIdentifiable
databaseID
in interface DBIdentifiable
DBIdentifiable.canSaveDatabaseID()
,
DBIdentifiable.setDatabaseID(String)
public java.lang.String Name()
Environmental
Name
in interface Environmental
Tickable.name()
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 java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
public java.lang.String titledName()
MOB
titledName
in interface MOB
Environmental.Name()
,
Tickable.name()
public java.lang.String genericName()
Physical
genericName
in interface Physical
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 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 final boolean amDestroyed()
Contingent
amDestroyed
in interface Contingent
protected final void setDestroyed(boolean truefalse)
protected void cloneFix(MOB M)
public CMObject copyOf()
CMObject
public boolean isGeneric()
Environmental
isGeneric
in interface Environmental
Environmental.text()
public PhyStats phyStats()
Affectable
phyStats
in interface Affectable
Affectable.basePhyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public PhyStats basePhyStats()
Affectable
basePhyStats
in interface Affectable
Affectable.phyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public void recoverPhyStats()
Affectable
recoverPhyStats
in interface Affectable
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.addEffect(Ability)
,
Behavable.addBehavior(Behavior)
,
PhyStats
public void setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats
in interface Affectable
newStats
- a set of state fieldsAffectable.phyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public int baseWeight()
MOB
baseWeight
in interface MOB
public int maxCarry()
MOB
maxCarry
in interface MOB
MOB.maxItems()
public int maxItems()
MOB
maxItems
in interface MOB
MOB.maxCarry()
public int maxFollowers()
MOB
maxFollowers
in interface MOB
Followable
public int totalFollowers()
Followable
totalFollowers
in interface Followable<MOB>
Followable.numFollowers()
public Triggerer triggerer()
MOB
triggerer
in interface MOB
Triggerer
,
MOB.setTriggerer(Triggerer)
public void setTriggerer(Triggerer triggerer)
MOB
setTriggerer
in interface MOB
triggerer
- the Triggerer for this mob.Triggerer
,
MOB.triggerer()
public CharStats baseCharStats()
MOB
baseCharStats
in interface MOB
MOB.charStats()
,
MOB.recoverCharStats()
,
MOB.setBaseCharStats(CharStats)
public CharStats charStats()
MOB
charStats
in interface MOB
MOB.baseCharStats()
,
MOB.recoverCharStats()
,
MOB.setBaseCharStats(CharStats)
public void recoverCharStats()
MOB
recoverCharStats
in interface MOB
MOB.baseCharStats()
,
MOB.charStats()
,
MOB.setBaseCharStats(CharStats)
public void setBaseCharStats(CharStats newBaseCharStats)
MOB
setBaseCharStats
in interface MOB
newBaseCharStats
- the CharStats object for this mobMOB.charStats()
,
MOB.baseCharStats()
,
MOB.setBaseCharStats(CharStats)
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 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 boolean isMarriedToLiege()
MOB
isMarriedToLiege
in interface MOB
MOB.getLiegeID()
,
MOB.setLiegeID(String)
public CharState curState()
MOB
curState
in interface MOB
CharState
,
MOB.setBaseState(CharState)
,
MOB.baseState()
,
MOB.maxState()
,
MOB.recoverMaxState()
,
MOB.resetToMaxState()
public CharState maxState()
MOB
maxState
in interface MOB
CharState
,
MOB.setBaseState(CharState)
,
MOB.curState()
,
MOB.baseState()
,
MOB.recoverMaxState()
,
MOB.resetToMaxState()
public CharState baseState()
MOB
baseState
in interface MOB
CharState
,
MOB.setBaseState(CharState)
,
MOB.curState()
,
MOB.maxState()
,
MOB.recoverMaxState()
,
MOB.resetToMaxState()
public PlayerStats playerStats()
MOB
playerStats
in interface MOB
MOB.setPlayerStats(PlayerStats)
,
PlayerStats
public void setPlayerStats(PlayerStats newStats)
MOB
setPlayerStats
in interface MOB
newStats
- the PlayerStats object or null for an NPCMOB.playerStats()
,
PlayerStats
public void setBaseState(CharState newState)
MOB
setBaseState
in interface MOB
newState
- the base CharState object for this mobCharState
,
MOB.baseState()
,
MOB.curState()
,
MOB.maxState()
,
MOB.recoverMaxState()
,
MOB.resetToMaxState()
public void resetToMaxState()
MOB
resetToMaxState
in interface MOB
MOB.setBaseState(CharState)
,
MOB.curState()
,
MOB.baseState()
,
MOB.maxState()
,
MOB.recoverMaxState()
public void recoverMaxState()
MOB
recoverMaxState
in interface MOB
MOB.setBaseState(CharState)
,
MOB.curState()
,
MOB.baseState()
,
MOB.maxState()
,
MOB.resetToMaxState()
public boolean amDead()
Combatant
amDead
in interface Combatant
Combatant.killMeDead(boolean)
,
MOB.bringToLife(Room, boolean)
,
MOB.removeFromGame(boolean, boolean)
public boolean amActive()
MOB
amActive
in interface MOB
MOB.bringToLife(Room, boolean)
,
Combatant.killMeDead(boolean)
,
MOB.removeFromGame(boolean, boolean)
public void dispossess(boolean forceLook)
MOB
dispossess
in interface MOB
forceLook
- true to force the player to Look afterwardsMOB.session()
,
MOB.isPossessing()
,
MOB.soulMate()
,
MOB.setSoulMate(MOB)
public void destroy()
Contingent
destroy
in interface Contingent
public void removeFromGame(boolean preserveFollowers, boolean killSession)
MOB
removeFromGame
in interface MOB
preserveFollowers
- true to copy the followers overkillSession
- true to end the session connected to this mob, if anyMOB.bringToLife(Room, boolean)
,
Combatant.killMeDead(boolean)
,
MOB.amActive()
public void bringToLife()
MOB
bringToLife
in interface MOB
MOB.bringToLife(Room, boolean)
,
Combatant.killMeDead(boolean)
,
MOB.removeFromGame(boolean, boolean)
protected final boolean confirmLocation(Room whereHeShouldBeR)
public void bringToLife(Room newLocation, boolean resetStats)
MOB
bringToLife
in interface MOB
newLocation
- the room to bring the mob to life inresetStats
- true to bring all char state stats to maxMOB.bringToLife()
,
Combatant.killMeDead(boolean)
,
MOB.removeFromGame(boolean, boolean)
public boolean isInCombat()
Combatant
isInCombat
in interface Combatant
MOB.getVictim()
,
MOB.setVictim(MOB)
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.getCombatant()
,
Combatant.makePeace(boolean)
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
protected boolean isEitherOfUsDead(MOB mob)
protected boolean isPermissableToFight(MOB mob)
public boolean mayIFight(PhysicalAgent victim)
Combatant
mayIFight
in interface Combatant
victim
- the potential combat targetMOB.getVictim()
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.getCombatant()
,
Combatant.setRangeToTarget(int)
,
Combatant.mayPhysicallyAttack(PhysicalAgent)
public boolean mayPhysicallyAttack(PhysicalAgent victim)
Combatant
mayPhysicallyAttack
in interface Combatant
victim
- the potential combat targetMOB.getVictim()
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.getCombatant()
,
Combatant.setRangeToTarget(int)
,
Combatant.mayPhysicallyAttack(PhysicalAgent)
public long getPeaceTime()
MOB
getPeaceTime
in interface MOB
public void setRangeToTarget(int newRange)
Combatant
setRangeToTarget
in interface Combatant
newRange
- the range from this combatant to their targetMOB.getVictim()
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.getCombatant()
,
Combatant.rangeToTarget()
,
Combatant.mayIFight(PhysicalAgent)
public int rangeToTarget()
Combatant
rangeToTarget
in interface Combatant
MOB.getVictim()
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.getCombatant()
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
public int getDirectionToTarget()
Combatant
getDirectionToTarget
in interface Combatant
MOB.getVictim()
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.getCombatant()
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
public int maxRange()
Environmental
maxRange
in interface Environmental
public int minRange()
Environmental
minRange
in interface Environmental
public void makePeace(boolean includePlayerFollowers)
Combatant
makePeace
in interface Combatant
includePlayerFollowers
- false to apply only to npc followers, true for npc and playerCombatant.isInCombat()
,
MOB.getVictim()
,
MOB.setVictim(MOB)
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.getCombatant()
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
public MOB getVictim()
MOB
getVictim
in interface MOB
Combatant.isInCombat()
,
MOB.setVictim(MOB)
,
Combatant.makePeace(boolean)
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
public PhysicalAgent getCombatant()
Combatant
getCombatant
in interface Combatant
Combatant.isInCombat()
,
Combatant.setCombatant(PhysicalAgent)
,
Combatant.makePeace(boolean)
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
public void setCombatant(PhysicalAgent other)
Combatant
setCombatant
in interface Combatant
other
- the combat target, or null for a peace stateCombatant.isInCombat()
,
Combatant.getCombatant()
,
Combatant.makePeace(boolean)
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
public void setVictim(MOB other)
MOB
setVictim
in interface MOB
other
- the combat target, or null for a peace stateCombatant.isInCombat()
,
MOB.getVictim()
,
Combatant.makePeace(boolean)
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
public DeadBody killMeDead(boolean createBody)
Combatant
killMeDead
in interface Combatant
createBody
- true to create a corpse, false otherwiseCombatant.amDead()
,
MOB.bringToLife(Room, boolean)
,
MOB.removeFromGame(boolean, boolean)
public Room location()
MOB
location
in interface MOB
MOB.setLocation(Room)
,
Room.isInhabitant(MOB)
public void setLocation(Room newRoom)
MOB
setLocation
in interface MOB
newRoom
- the room in which this mob/player is currently standingMOB.location()
,
Room.isInhabitant(MOB)
public Rideable riding()
Rider
public void setRiding(Rideable ride)
Rider
public final Session session()
MOB
session
in interface MOB
MOB.setSession(Session)
,
MOB.isMonster()
,
MOB.isPossessing()
,
MOB.soulMate()
public void setSession(Session newSession)
MOB
setSession
in interface MOB
newSession
- the Telnet Session attached to this mobMOB.session()
,
MOB.isMonster()
,
MOB.isPossessing()
,
MOB.soulMate()
public Weapon getNaturalWeapon()
MOB
getNaturalWeapon
in interface MOB
public java.lang.String titledName(MOB viewer)
MOB
titledName
in interface MOB
viewer
- the person viewingEnvironmental.Name()
,
Tickable.name()
public java.lang.String name(MOB viewer)
Physical
name
in interface Physical
viewer
- the mob viewing the physical thingTickable.name()
public java.lang.String displayText(MOB viewerMob)
Physical
displayText
in interface Physical
viewerMob
- the mob viewing the physical thingEnvironmental.displayText()
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
public void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText
in interface Environmental
newDisplayText
- the string describing how this object looks in the roompublic java.lang.String description()
Environmental
description
in interface Environmental
public java.lang.String description(MOB viewerMob)
Physical
description
in interface Physical
viewerMob
- the mob viewing the physical thingEnvironmental.description()
public void setDescription(java.lang.String newDescription)
Environmental
setDescription
in interface Environmental
newDescription
- the basic detail description of this objectpublic void setMiscText(java.lang.String newText)
Environmental
setMiscText
in interface Environmental
newText
- either an open internal text string, or XMLpublic java.lang.String text()
Environmental
text
in interface Environmental
public java.lang.String miscTextFormat()
Environmental
miscTextFormat
in interface Environmental
CMParms
,
Environmental.text()
,
Environmental.setMiscText(String)
public java.lang.String healthText(MOB viewer)
Combatant
healthText
in interface Combatant
viewer
- the mob viewing this mobpublic double actions()
MUDCmdProcessor
actions
in interface MUDCmdProcessor
MUDCmdProcessor.enqueCommand(List, int, double)
,
MUDCmdProcessor.setActions(double)
public void setActions(double remain)
MUDCmdProcessor
setActions
in interface MUDCmdProcessor
remain
- the number of action pointsMUDCmdProcessor.enqueCommand(List, int, double)
,
MUDCmdProcessor.actions()
public int commandQueSize()
MUDCmdProcessor
commandQueSize
in interface MUDCmdProcessor
MUDCmdProcessor.dequeCommand()
,
MUDCmdProcessor.clearCommandQueue()
,
MUDCmdProcessor.doCommand(List, int)
,
MUDCmdProcessor.getTopCommand()
,
MUDCmdProcessor.enqueCommand(List, int, double)
,
MUDCmdProcessor.actions()
public void clearCommandQueue()
MUDCmdProcessor
public Pair<java.lang.Object,java.util.List<java.lang.String>> getTopCommand()
MUDCmdProcessor
getTopCommand
in interface MUDCmdProcessor
MUDCmdProcessor.dequeCommand()
,
MUDCmdProcessor.doCommand(List, int)
public boolean dequeCommand()
MUDCmdProcessor
dequeCommand
in interface MUDCmdProcessor
MUDCmdProcessor.enqueCommand(List, int, double)
,
MUDCmdProcessor.clearCommandQueue()
,
MUDCmdProcessor.doCommand(List, int)
,
MUDCmdProcessor.commandQueSize()
,
MUDCmdProcessor.actions()
public void doCommand(java.util.List<java.lang.String> commands, int metaFlags)
MUDCmdProcessor
doCommand
in interface MUDCmdProcessor
commands
- the command string tokensmetaFlags
- any meta-command flagsMUDCmdProcessor.dequeCommand()
,
MUDCmdProcessor.clearCommandQueue()
,
MUDCmdProcessor.commandQueSize()
,
MUDCmdProcessor.enqueCommand(List, int, double)
,
MUDCmdProcessor.actions()
protected void doCommand(java.lang.Object O, java.util.List<java.lang.String> commands, int metaFlags)
protected double calculateActionCost(java.lang.Object command, java.util.List<java.lang.String> commands, double overrideActionCost)
protected void checkCommandCancel()
public void prequeCommand(java.util.List<java.lang.String> commands, int metaFlags, double actionCost)
MUDCmdProcessor
prequeCommand
in interface MUDCmdProcessor
commands
- the parsed command string tokensmetaFlags
- meta-command flags to send to the command, if anyactionCost
- either 0 to let the action object decide, or an override costMUDCmdProcessor.dequeCommand()
,
MUDCmdProcessor.clearCommandQueue()
,
MUDCmdProcessor.getTopCommand()
,
MUDCmdProcessor.doCommand(List, int)
,
MUDCmdProcessor.actions()
public void prequeCommands(java.util.List<java.util.List<java.lang.String>> commands, int metaFlags)
MUDCmdProcessor
prequeCommands
in interface MUDCmdProcessor
commands
- the parsed command string tokensmetaFlags
- meta-command flags to send to the command, if anyMUDCmdProcessor.dequeCommand()
,
MUDCmdProcessor.clearCommandQueue()
,
MUDCmdProcessor.getTopCommand()
,
MUDCmdProcessor.doCommand(List, int)
public void enqueCommand(java.util.List<java.lang.String> commands, int metaFlags, double actionCost)
MUDCmdProcessor
enqueCommand
in interface MUDCmdProcessor
commands
- the parsed command string tokensmetaFlags
- meta-command flags to send to the command, if anyactionCost
- either 0 to let the action object decide, or an override costMUDCmdProcessor.dequeCommand()
,
MUDCmdProcessor.clearCommandQueue()
,
MUDCmdProcessor.doCommand(List, int)
,
MUDCmdProcessor.getTopCommand()
,
MUDCmdProcessor.actions()
public void enqueCommands(java.util.List<java.util.List<java.lang.String>> commands, int metaFlags)
MUDCmdProcessor
enqueCommands
in interface MUDCmdProcessor
commands
- the parsed commands string tokensmetaFlags
- meta-command flags to send to the command, if anyMUDCmdProcessor.dequeCommand()
,
MUDCmdProcessor.clearCommandQueue()
,
MUDCmdProcessor.doCommand(List, int)
,
MUDCmdProcessor.getTopCommand()
,
MUDCmdProcessor.actions()
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 void tell(MOB source, Environmental target, Environmental tool, java.lang.String msg)
MOB
tell
in interface MOB
source
- the <S-NAME> source/agent of the message or nulltarget
- the <T-NAME> target of the message or nulltool
- the <O-NAME> tool of the message or nullmsg
- the string message with naming tagsMOB.tell(String)
public void tell(java.lang.String msg)
MOB
tell
in interface MOB
msg
- the string message to send to the session.MOB.tell(MOB, Environmental, Environmental, String)
protected java.lang.String fixChannelColors(int channelCode, java.lang.String message)
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 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 int getTickStatus()
Tickable
getTickStatus
in interface Tickable
Tickable.tick(Tickable, int)
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 isPlayer()
MOB
isPlayer
in interface MOB
MOB.isMonster()
,
MOB.playerStats()
public boolean isMonster()
MOB
isMonster
in interface MOB
MOB.session()
,
MOB.setSession(Session)
,
MOB.isPossessing()
,
MOB.soulMate()
public boolean isPossessing()
MOB
isPossessing
in interface MOB
MOB.session()
,
MOB.setSession(Session)
,
MOB.soulMate()
,
MOB.dispossess(boolean)
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public void addItem(Item item)
ItemCollection
addItem
in interface ItemCollection
item
- the item to addItemCollection.delItem(Item)
public void addItem(Item item, ItemPossessor.Expire expire)
ItemPossessor
addItem
in interface ItemPossessor
item
- the item to addexpire
- the expiration argument to decide when it will get cleaned upItemPossessor.Expire
public void delItem(Item item)
ItemCollection
delItem
in interface ItemCollection
item
- the item to removepublic void delAllItems(boolean destroy)
ItemCollection
delAllItems
in interface ItemCollection
destroy
- true to also destroy the itemspublic int numItems()
ItemCollection
numItems
in interface ItemCollection
public java.util.Enumeration<Item> items()
ItemCollection
items
in interface ItemCollection
public boolean isContent(Item I)
ItemCollection
isContent
in interface ItemCollection
I
- the item to checkpublic java.util.List<Item> findItems(Item goodLocation, java.lang.String itemName)
ItemCollection
findItems
in interface ItemCollection
goodLocation
- the container to look in, or null for noneitemName
- the name or partial name of the item to fetchpublic Item getItem(int index)
ItemCollection
getItem
in interface ItemCollection
index
- the index of the itempublic void eachItem(EachApplicable<Item> applier)
ItemCollection
eachItem
in interface ItemCollection
applier
- code to execute against each objectpublic Item getRandomItem()
ItemCollection
getRandomItem
in interface ItemCollection
public Item fetchFromInventory(Item goodLocation, java.lang.String itemName, Filterer<Environmental> filter, boolean respectLocationAndWornCode)
public Item findItem(java.lang.String itemName)
ItemCollection
findItem
in interface ItemCollection
itemName
- the name or partial name of the item to fetchpublic Item findItem(Item goodLocation, java.lang.String itemName)
ItemCollection
findItem
in interface ItemCollection
goodLocation
- the container to look in, or null for noneitemName
- the name or partial name of the item to fetchpublic Item fetchItem(Item goodLocation, Filterer<Environmental> filter, java.lang.String itemName)
MOB
fetchItem
in interface MOB
goodLocation
- the container to look in, or null for uncontainedfilter
- the wearable filter to useitemName
- the name, id, or display text, or keyboard for the item to find.Wearable.FILTER_WORNONLY
,
MOB.fetchWornItems(long, short, short)
,
MOB.fetchWieldedItem()
public java.lang.String getContextName(Environmental E)
ItemPossessor
getContextName
in interface ItemPossessor
E
- the mob or item to return a search string forpublic java.util.List<Item> findItems(java.lang.String itemName)
ItemCollection
findItems
in interface ItemCollection
itemName
- the name or partial name of the item to fetchpublic void addFollower(MOB follower, int order)
Followable
addFollower
in interface Followable<MOB>
follower
- the new follower to followorder
- the relative position of the new follower in the formationFollowable.setFollowing(Followable)
public void delFollower(MOB follower)
Followable
delFollower
in interface Followable<MOB>
follower
- the follower to removepublic int numFollowers()
Followable
numFollowers
in interface Followable<MOB>
Followable.totalFollowers()
public java.util.Enumeration<Pair<MOB,java.lang.Short>> followers()
Followable
followers
in interface Followable<MOB>
public int fetchFollowerOrder(MOB thisOne)
Followable
fetchFollowerOrder
in interface Followable<MOB>
thisOne
- the specific followablepublic MOB fetchFollower(java.lang.String named)
Followable
fetchFollower
in interface Followable<MOB>
named
- the search string namepublic MOB fetchFollower(int index)
Followable
fetchFollower
in interface Followable<MOB>
index
- the index (0-based) of the followable followerpublic boolean isFollowedBy(MOB thisOne)
Followable
isFollowedBy
in interface Followable<MOB>
thisOne
- the followable follower to look for.public boolean willFollowOrdersOf(MOB mob)
MOB
willFollowOrdersOf
in interface MOB
mob
- the mob to check to see if he's the leaderpublic MOB amUltimatelyFollowing()
Followable
amUltimatelyFollowing
in interface Followable<MOB>
public MOB amFollowing()
Followable
amFollowing
in interface Followable<MOB>
public void setFollowing(MOB mob)
Followable
setFollowing
in interface Followable<MOB>
mob
- the follower followingFollowable.addFollower(Followable, int)
public java.util.Set<MOB> getRideBuddies(java.util.Set<MOB> list)
MOB
getRideBuddies
in interface MOB
list
- the required list to populate with riders and rideableRider
,
Rideable
public java.util.Set<MOB> getGroupMembers(java.util.Set<MOB> list)
Followable
getGroupMembers
in interface Followable<MOB>
list
- requires list to populate with followablespublic java.util.Set<? extends Rider> getGroupMembersAndRideables(java.util.Set<? extends Rider> list)
Followable
getGroupMembersAndRideables
in interface Followable<MOB>
list
- requires list to populate with followables and rideablespublic 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 MOB soulMate()
MOB
soulMate
in interface MOB
MOB.session()
,
MOB.isPossessing()
,
MOB.setSoulMate(MOB)
,
MOB.dispossess(boolean)
public void setSoulMate(MOB mob)
MOB
setSoulMate
in interface MOB
mob
- the mob that is possessing this mobMOB.session()
,
MOB.isPossessing()
,
MOB.soulMate()
,
MOB.dispossess(boolean)
public void addAbility(Ability to)
AbilityContainer
addAbility
in interface AbilityContainer
to
- the Ability to add.Ability
public void delAbility(Ability to)
AbilityContainer
delAbility
in interface AbilityContainer
to
- the exact Ability to removeAbility
public void delAllAbilities()
AbilityContainer
delAllAbilities
in interface AbilityContainer
public int numAbilities()
AbilityContainer
numAbilities
in interface AbilityContainer
Ability
public java.util.Enumeration<Ability> abilities()
AbilityContainer
abilities
in interface AbilityContainer
public java.util.Enumeration<Ability> allAbilities()
AbilityContainer
allAbilities
in interface AbilityContainer
public int numAllAbilities()
AbilityContainer
numAllAbilities
in interface AbilityContainer
public Ability fetchRandomAbility()
AbilityContainer
fetchRandomAbility
in interface AbilityContainer
Ability
public boolean isRacialAbility(java.lang.String abilityID)
MOB
isRacialAbility
in interface MOB
abilityID
- the ability object to check forpublic Ability fetchAbility(int index)
AbilityContainer
fetchAbility
in interface AbilityContainer
index
- the index of the Ability object to returnAbility
public Ability fetchAbility(java.lang.String ID)
AbilityContainer
fetchAbility
in interface AbilityContainer
ID
- the ID of the ability to return.Ability
public Ability findAbility(java.lang.String ID)
MOB
findAbility
in interface MOB
ID
- the search string for the ability id, name, or whateverprotected final java.util.List<Ability> racialEffects()
protected final java.util.List<Ability> clanEffects()
public java.lang.Iterable<Pair<Clan,java.lang.Integer>> clans()
MOB
clans
in interface MOB
MOB.setClan(String, int)
,
MOB.getClanRole(String)
public Pair<Clan,java.lang.Integer> getClanRole(java.lang.String clanID)
MOB
getClanRole
in interface MOB
clanID
- the clan name/idMOB.clans()
,
MOB.setClan(String, int)
public void setClan(java.lang.String clanID, int role)
MOB
setClan
in interface MOB
clanID
- the clanID/namerole
- the rank/role of this player in the clanMOB.clans()
,
MOB.getClanRole(String)
public void addNonUninvokableEffect(Ability to)
Affectable
addNonUninvokableEffect
in interface Affectable
to
- The ability object to add as an effect.Ability
,
Affectable.recoverPhyStats()
public void addPriorityEffect(Ability to)
MOB
addPriorityEffect
in interface MOB
to
- the Ability to add as an effectMOB.numAllEffects()
,
MOB.personalEffects()
,
Ability
,
Affectable.addEffect(Ability)
public void addEffect(Ability to)
Affectable
addEffect
in interface Affectable
to
- The ability object to add as an effect.Ability
,
Affectable.recoverPhyStats()
public void delEffect(Ability to)
Affectable
delEffect
in interface Affectable
to
- The ability object to remove as an effect on this objectAbility
,
Affectable.recoverPhyStats()
public void eachEffect(EachApplicable<Ability> applier)
Affectable
eachEffect
in interface Affectable
applier
- code to execute against each objectpublic void delAllEffects(boolean unInvoke)
Affectable
delAllEffects
in interface Affectable
unInvoke
- send true to uninvoke before deletingpublic int numAllEffects()
MOB
numAllEffects
in interface MOB
MOB.addPriorityEffect(Ability)
,
MOB.personalEffects()
,
Affectable.numEffects()
public int numEffects()
Affectable
numEffects
in interface Affectable
Ability
public Ability fetchEffect(int index)
Affectable
fetchEffect
in interface Affectable
index
- which object to returnAbility
,
Affectable.numEffects()
public Ability fetchEffect(java.lang.String ID)
Affectable
fetchEffect
in interface Affectable
ID
- the Ability ID to look for in effectsAbility
,
CMObject.ID()
public java.util.Enumeration<Ability> personalEffects()
MOB
personalEffects
in interface MOB
MOB.numAllEffects()
,
MOB.addPriorityEffect(Ability)
,
Ability
,
Affectable.effects()
public java.util.Enumeration<Ability> effects()
Affectable
effects
in interface Affectable
Ability
public void addBehavior(Behavior to)
addBehavior
in interface Behavable
to
- The behavior object to add.Behavior
,
Affectable.recoverPhyStats()
public void delBehavior(Behavior to)
Behavable
delBehavior
in interface Behavable
to
- The behavior object to remove.Behavior
,
Affectable.recoverPhyStats()
public void delAllBehaviors()
Behavable
delAllBehaviors
in interface Behavable
public int numBehaviors()
Behavable
numBehaviors
in interface Behavable
Behavior
public java.util.Enumeration<Behavior> behaviors()
Behavable
public Behavior fetchBehavior(int index)
Behavable
fetchBehavior
in interface Behavable
index
- which object to returnBehavior
,
Behavable.numBehaviors()
public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior
in interface Behavable
ID
- the Behavior ID to look forBehavior
,
CMObject.ID()
public void eachBehavior(EachApplicable<Behavior> applier)
Behavable
eachBehavior
in interface Behavable
applier
- code to execute against each objectpublic int[][] getAbilityUsageCache(java.lang.String abilityID)
MOB
getAbilityUsageCache
in interface MOB
abilityID
- the specific Ability ID() to get the cache forAbility.CACHEINDEX_TOTAL
public void addExpertise(java.lang.String code)
MOB
addExpertise
in interface MOB
code
- the expertise to add or updateMOB.fetchExpertise(String)
,
MOB.expertises()
,
MOB.delAllExpertises()
,
MOB.delExpertise(String)
public void delExpertise(java.lang.String baseCode)
MOB
delExpertise
in interface MOB
baseCode
- the expertise codeMOB.fetchExpertise(String)
,
MOB.expertises()
,
MOB.delAllExpertises()
,
MOB.addExpertise(String)
public Pair<java.lang.String,java.lang.Integer> fetchExpertise(java.lang.String baseCode)
MOB
fetchExpertise
in interface MOB
baseCode
- the expertise codeMOB.delAllExpertises()
,
MOB.expertises()
,
MOB.delExpertise(String)
,
MOB.addExpertise(String)
public void delAllExpertises()
MOB
delAllExpertises
in interface MOB
MOB.fetchExpertise(String)
,
MOB.expertises()
,
MOB.delExpertise(String)
,
MOB.addExpertise(String)
public java.util.Enumeration<java.lang.String> expertises()
MOB
expertises
in interface MOB
MOB.delAllExpertises()
,
MOB.fetchExpertise(String)
,
MOB.delExpertise(String)
,
MOB.addExpertise(String)
public void addScript(ScriptingEngine S)
addScript
in interface Behavable
S
- the scripting engine, fully populated, to addScriptingEngine
public void delScript(ScriptingEngine S)
Behavable
delScript
in interface Behavable
S
- the specific scripting engine to removeScriptingEngine
public void delAllScripts()
Behavable
delAllScripts
in interface Behavable
public int numScripts()
Behavable
numScripts
in interface Behavable
public java.util.Enumeration<ScriptingEngine> scripts()
Behavable
scripts
in interface Behavable
ScriptingEngine
public ScriptingEngine fetchScript(int x)
Behavable
fetchScript
in interface Behavable
x
- which script to returnScriptingEngine
public void eachScript(EachApplicable<ScriptingEngine> applier)
Behavable
eachScript
in interface Behavable
applier
- code to execute against each objectpublic void addTattoo(java.lang.String of)
addTattoo
in interface Tattooable
of
- the permanent tattoo name to addTattooable
,
Tattooable.addTattoo(String, int)
,
Tattooable.addTattoo(Tattoo)
public void addTattoo(java.lang.String of, int tickDown)
Tattooable
addTattoo
in interface Tattooable
of
- the permanent tattoo name to addtickDown
- the ticks of life for this tattooTattooable
,
Tattooable.addTattoo(String)
,
Tattooable.addTattoo(Tattoo)
public boolean delTattoo(java.lang.String of)
Tattooable
delTattoo
in interface Tattooable
of
- the tattoo name of the tattoo to removeTattooable
,
Tattooable.delTattoo(Tattoo)
public void addTattoo(Tattoo of)
Tattooable
addTattoo
in interface Tattooable
of
- the tattoo object to addTattooable
,
Tattooable.addTattoo(String, int)
,
Tattooable.addTattoo(String)
public void delTattoo(Tattoo of)
Tattooable
delTattoo
in interface Tattooable
of
- the tattoo object to removeTattooable
,
Tattooable.delTattoo(String)
public java.util.Enumeration<Tattoo> tattoos()
Tattooable
tattoos
in interface Tattooable
Tattooable
public Tattoo findTattoo(java.lang.String of)
Tattooable
findTattoo
in interface Tattooable
of
- the marker name to return a tattoo forTattooable
,
Tattooable.findTattooStartsWith(String)
public Tattoo findTattooStartsWith(java.lang.String of)
Tattooable
findTattooStartsWith
in interface Tattooable
of
- the marker name to return a tattoo starter forTattooable
,
Tattooable.findTattoo(String)
public void addFaction(java.lang.String which, int start)
addFaction
in interface FactionMember
which
- the facton ID to add to thisstart
- the initial rank/value in the new factionFactionMember
public void adjustFaction(java.lang.String which, int amount)
FactionMember
adjustFaction
in interface FactionMember
which
- the facton ID to add or alteramount
- the amount to alter the faction by, or initial valueFactionMember
public java.util.Enumeration<java.lang.String> factions()
FactionMember
factions
in interface FactionMember
FactionMember
public int fetchFaction(java.lang.String which)
FactionMember
fetchFaction
in interface FactionMember
which
- the faction id to return rank/value inFactionMember
public Faction.FData fetchFactionData(java.lang.String which)
FactionMember
fetchFactionData
in interface FactionMember
which
- the faction id to return rank/value inFaction.FData
public void removeFaction(java.lang.String which)
FactionMember
removeFaction
in interface FactionMember
which
- the faction id to removeFactionMember
public void copyFactions(FactionMember source)
FactionMember
copyFactions
in interface FactionMember
source
- the source of the factions to copyFactionMember
public boolean hasFaction(java.lang.String which)
FactionMember
hasFaction
in interface FactionMember
which
- the faction id to search forFactionMember
public java.util.List<java.lang.String> fetchFactionRanges()
FactionMember
fetchFactionRanges
in interface FactionMember
FactionMember
public int freeWearPositions(long wornCode, short belowLayer, short layerAttributes)
MOB
freeWearPositions
in interface MOB
wornCode
- the worn location to look for a free spot inbelowLayer
- the layer at or below which you need a spot -- 0 workslayerAttributes
- the layer attributes to check, again, 0 worksWearable.WORN_HEAD
,
Armor.LAYERMASK_MULTIWEAR
,
MOB.getWearPositions(long)
public int getWearPositions(long wornCode)
MOB
getWearPositions
in interface MOB
wornCode
- the worn location to look inWearable.WORN_HEAD
,
MOB.freeWearPositions(long, short, short)
protected int counItemsWornAt(java.util.List<Item> items, long wornCode)
public java.util.List<Item> fetchWornItems(long wornCode, short aboveOrAroundLayer, short layerAttributes)
MOB
fetchWornItems
in interface MOB
wornCode
- the specific worn code to loook for worn itemsaboveOrAroundLayer
- -2048 will grab everything, and > 0 are higher layerslayerAttributes
- 0 will grab everything, or one of the layer attributesWearable.WORN_HEAD
,
Armor.LAYERMASK_MULTIWEAR
,
MOB.fetchItem(Item, Filterer, String)
,
MOB.fetchWieldedItem()
,
MOB.fetchFirstWornItem(long)
public boolean hasOnlyGoldInInventory()
MOB
hasOnlyGoldInInventory
in interface MOB
public Item fetchFirstWornItem(long wornCode)
MOB
fetchFirstWornItem
in interface MOB
wornCode
- the worn_ codeWearable.WORN_HEAD
,
MOB.fetchItem(Item, Filterer, String)
,
MOB.fetchFirstWornItem(long)
,
MOB.fetchWieldedItem()
public Item fetchWieldedItem()
MOB
fetchWieldedItem
in interface MOB
MOB.fetchFirstWornItem(long)
,
MOB.fetchWornItems(long, short, short)
,
MOB.fetchHeldItem()
public Item fetchHeldItem()
MOB
fetchHeldItem
in interface MOB
MOB.fetchFirstWornItem(long)
,
MOB.fetchWornItems(long, short, short)
,
MOB.fetchWieldedItem()
public boolean isMine(Environmental env)
MOB
public void moveItemTo(Item container, ItemPossessor.Expire expire, ItemPossessor.Move... moveFlags)
ItemPossessor
moveItemTo
in interface ItemPossessor
container
- the item to addexpire
- the expiration codemoveFlags
- any flags related to the moveItemPossessor.Expire
public void moveItemTo(Item container)
ItemPossessor
moveItemTo
in interface ItemPossessor
container
- the item to addItemPossessor.Expire
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.
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 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)
public boolean sameAs(Environmental E)
Environmental
sameAs
in interface Environmental
E
- the object to compare this one toModifiable.getStatCodes()
,
Modifiable.getStat(String)