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, Wyvernpublic 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.MoveMOB.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 |
idConverterAGE_MILLIS_THRESHOLD, END_SHEATH_TIME, START_SHEATH_TIMEMETAFLAG_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()
CMObjectpublic long lastTickedDateTime()
MOBlastTickedDateTime in interface MOBpublic void flagVariableEq()
MOBflagVariableEq in interface MOBpublic long getAgeMinutes()
MOBgetAgeMinutes in interface MOBMOB.setAgeMinutes(long)public int getPractices()
MOBgetPractices in interface MOBMOB.setPractices(int)public int getExperience()
MOBgetExperience in interface MOBMOB.setExperience(int),
MOB.getExpNextLevel(),
MOB.getExpNeededDelevel(),
MOB.getExpNeededLevel(),
MOB.getExpPrevLevel()public int getExpNextLevel()
MOBgetExpNextLevel in interface MOBMOB.getExperience(),
MOB.setExperience(int),
MOB.getExpNeededDelevel(),
MOB.getExpNeededLevel(),
MOB.getExpPrevLevel()public int getExpPrevLevel()
MOBgetExpPrevLevel in interface MOBpublic int getExpNeededDelevel()
MOBgetExpNeededDelevel in interface MOBMOB.getExperience(),
MOB.getExpNextLevel(),
MOB.setExperience(int),
MOB.getExpNeededLevel(),
MOB.getExpPrevLevel()public int getExpNeededLevel()
MOBgetExpNeededLevel in interface MOBMOB.getExperience(),
MOB.getExpNextLevel(),
MOB.getExpNeededDelevel(),
MOB.setExperience(int),
MOB.getExpPrevLevel()public int getTrains()
MOBgetTrains in interface MOBMOB.setTrains(int)public int getMoney()
MOBgetMoney in interface MOBMOB.setMoney(int),
MOB.getMoneyVariation(),
MOB.setMoneyVariation(double)public double getMoneyVariation()
MOBgetMoneyVariation in interface MOBMOB.getMoney(),
MOB.setMoney(int),
MOB.setMoneyVariation(double)public int getAttributesBitmap()
MOBgetAttributesBitmap in interface MOBMOB.Attrib,
MOB.setAttributesBitmap(int)public void setAgeMinutes(long newVal)
MOBsetAgeMinutes in interface MOBnewVal - the total number of rl minutes this player has ever played.MOB.getAgeMinutes()public void setExperience(int newVal)
MOBsetExperience in interface MOBnewVal - 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)
MOBsetPractices in interface MOBnewVal - the number of practice points this mob hasMOB.getPractices()public void setTrains(int newVal)
MOBsetTrains in interface MOBnewVal - the number of training sessions this mob hasMOB.getTrains()public void setMoney(int newVal)
MOBsetMoney in interface MOBnewVal - the mob npc moneyMOB.getMoney(),
MOB.getMoneyVariation(),
MOB.setMoneyVariation(double)public void setMoneyVariation(double newVal)
MOBsetMoneyVariation in interface MOBnewVal - the amount of money to vary for looting moneyMOB.getMoney(),
MOB.getMoneyVariation(),
MOB.setMoneyVariation(double)public void setAttributesBitmap(int bitmap)
MOBsetAttributesBitmap in interface MOBbitmap - the raw numeric attributes bitmapMOB.Attrib,
MOB.getAttributesBitmap()public void setAttribute(MOB.Attrib attrib, boolean set)
MOBsetAttribute in interface MOBattrib - the attribute to set or clearset - true to set it, false to clear itMOB.isAttributeSet(Attrib)public boolean isAttributeSet(MOB.Attrib attrib)
MOBisAttributeSet in interface MOBattrib - the attribute to checkMOB.setAttribute(Attrib, boolean)public java.lang.String getFactionListing()
FactionMembergetFactionListing in interface FactionMemberFactionMemberpublic java.lang.String getLiegeID()
MOBgetLiegeID in interface MOBMOB.setLiegeID(String),
MOB.isMarriedToLiege()public int getWimpHitPoint()
MOBgetWimpHitPoint in interface MOBMOB.setWimpHitPoint(int)public int getQuestPoint()
MOBgetQuestPoint in interface MOBMOB.setQuestPoint(int)public void setLiegeID(java.lang.String newVal)
MOBsetLiegeID in interface MOBnewVal - the name of the player to which this mob owes loyaltyMOB.getLiegeID(),
MOB.isMarriedToLiege()public void setWimpHitPoint(int newVal)
MOBsetWimpHitPoint in interface MOBnewVal - the wimpy hit point numberMOB.getWimpHitPoint()public void setQuestPoint(int newVal)
MOBsetQuestPoint in interface MOBnewVal - the number of quest points that this mob has earned.MOB.getQuestPoint()public void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic Room getStartRoom()
MOBgetStartRoom in interface MOBMOB.setStartRoom(Room)public void setStartRoom(Room room)
MOBsetStartRoom in interface MOBroom - the stored Start Room for this mobMOB.getStartRoom()public void setDatabaseID(java.lang.String id)
DBIdentifiablesetDatabaseID in interface DBIdentifiableid - the unique contextual database ID for this object.DBIdentifiable.canSaveDatabaseID(),
DBIdentifiable.databaseID()public boolean canSaveDatabaseID()
DBIdentifiablecanSaveDatabaseID in interface DBIdentifiableDBIdentifiable.databaseID(),
DBIdentifiable.setDatabaseID(String)public java.lang.String databaseID()
DBIdentifiabledatabaseID in interface DBIdentifiableDBIdentifiable.canSaveDatabaseID(),
DBIdentifiable.setDatabaseID(String)public java.lang.String Name()
EnvironmentalName in interface EnvironmentalTickable.name()public void setName(java.lang.String newName)
EnvironmentalsetName in interface EnvironmentalnewName - the raw base name of this object on the map.Environmental.Name()public java.lang.String name()
Tickablename in interface CMObjectname in interface TickableEnvironmental.Name()public java.lang.String titledName()
MOBtitledName in interface MOBEnvironmental.Name(),
Tickable.name()public java.lang.String genericName()
PhysicalgenericName in interface Physicalpublic java.lang.String image()
Environmentalimage in interface Environmentalpublic java.lang.String rawImage()
EnvironmentalrawImage in interface Environmentalpublic void setImage(java.lang.String newImage)
EnvironmentalsetImage in interface EnvironmentalnewImage - the raw name of the mxp image filepublic long expirationDate()
ExpireableexpirationDate in interface ExpireableExpireable.setExpirationDate(long)public void setExpirationDate(long time)
ExpireablesetExpirationDate in interface Expireabletime - the time stamp when this thing expiresExpireable.expirationDate()public final boolean amDestroyed()
ContingentamDestroyed in interface Contingentprotected final void setDestroyed(boolean truefalse)
protected void cloneFix(MOB M)
public CMObject copyOf()
CMObjectpublic boolean isGeneric()
EnvironmentalisGeneric in interface EnvironmentalEnvironmental.text()public PhyStats phyStats()
AffectablephyStats in interface AffectableAffectable.basePhyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic PhyStats basePhyStats()
AffectablebasePhyStats in interface AffectableAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic void recoverPhyStats()
AffectablerecoverPhyStats in interface AffectableAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStatspublic void setBasePhyStats(PhyStats newStats)
AffectablesetBasePhyStats in interface AffectablenewStats - a set of state fieldsAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic int baseWeight()
MOBbaseWeight in interface MOBpublic int maxCarry()
MOBmaxCarry in interface MOBMOB.maxItems()public int maxItems()
MOBmaxItems in interface MOBMOB.maxCarry()public int maxFollowers()
MOBmaxFollowers in interface MOBFollowablepublic int totalFollowers()
FollowabletotalFollowers in interface Followable<MOB>Followable.numFollowers()public Triggerer triggerer()
MOBtriggerer in interface MOBTriggerer,
MOB.setTriggerer(Triggerer)public void setTriggerer(Triggerer triggerer)
MOBsetTriggerer in interface MOBtriggerer - the Triggerer for this mob.Triggerer,
MOB.triggerer()public CharStats baseCharStats()
MOBbaseCharStats in interface MOBMOB.charStats(),
MOB.recoverCharStats(),
MOB.setBaseCharStats(CharStats)public CharStats charStats()
MOBcharStats in interface MOBMOB.baseCharStats(),
MOB.recoverCharStats(),
MOB.setBaseCharStats(CharStats)public void recoverCharStats()
MOBrecoverCharStats in interface MOBMOB.baseCharStats(),
MOB.charStats(),
MOB.setBaseCharStats(CharStats)public void setBaseCharStats(CharStats newBaseCharStats)
MOBsetBaseCharStats in interface MOBnewBaseCharStats - the CharStats object for this mobMOB.charStats(),
MOB.baseCharStats(),
MOB.setBaseCharStats(CharStats)public void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffectingaffectPhyStats in interface StatsAffectingaffected - 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)
StatsAffectingaffectCharState in interface StatsAffectingaffectedMob - the host of the CharState object being affectedaffectableMaxState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()public boolean isMarriedToLiege()
MOBisMarriedToLiege in interface MOBMOB.getLiegeID(),
MOB.setLiegeID(String)public CharState curState()
MOBcurState in interface MOBCharState,
MOB.setBaseState(CharState),
MOB.baseState(),
MOB.maxState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public CharState maxState()
MOBmaxState in interface MOBCharState,
MOB.setBaseState(CharState),
MOB.curState(),
MOB.baseState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public CharState baseState()
MOBbaseState in interface MOBCharState,
MOB.setBaseState(CharState),
MOB.curState(),
MOB.maxState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public PlayerStats playerStats()
MOBplayerStats in interface MOBMOB.setPlayerStats(PlayerStats),
PlayerStatspublic void setPlayerStats(PlayerStats newStats)
MOBsetPlayerStats in interface MOBnewStats - the PlayerStats object or null for an NPCMOB.playerStats(),
PlayerStatspublic void setBaseState(CharState newState)
MOBsetBaseState in interface MOBnewState - the base CharState object for this mobCharState,
MOB.baseState(),
MOB.curState(),
MOB.maxState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public void resetToMaxState()
MOBresetToMaxState in interface MOBMOB.setBaseState(CharState),
MOB.curState(),
MOB.baseState(),
MOB.maxState(),
MOB.recoverMaxState()public void recoverMaxState()
MOBrecoverMaxState in interface MOBMOB.setBaseState(CharState),
MOB.curState(),
MOB.baseState(),
MOB.maxState(),
MOB.resetToMaxState()public boolean amDead()
CombatantamDead in interface CombatantCombatant.killMeDead(boolean),
MOB.bringToLife(Room, boolean),
MOB.removeFromGame(boolean, boolean)public boolean amActive()
MOBamActive in interface MOBMOB.bringToLife(Room, boolean),
Combatant.killMeDead(boolean),
MOB.removeFromGame(boolean, boolean)public void dispossess(boolean forceLook)
MOBdispossess in interface MOBforceLook - true to force the player to Look afterwardsMOB.session(),
MOB.isPossessing(),
MOB.soulMate(),
MOB.setSoulMate(MOB)public void destroy()
Contingentdestroy in interface Contingentpublic void removeFromGame(boolean preserveFollowers,
boolean killSession)
MOBremoveFromGame in interface MOBpreserveFollowers - 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()
MOBbringToLife in interface MOBMOB.bringToLife(Room, boolean),
Combatant.killMeDead(boolean),
MOB.removeFromGame(boolean, boolean)protected final boolean confirmLocation(Room whereHeShouldBeR)
public void bringToLife(Room newLocation, boolean resetStats)
MOBbringToLife in interface MOBnewLocation - 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()
CombatantisInCombat in interface CombatantMOB.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)
CombatantmayIFight in interface Combatantvictim - the potential combat targetMOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayPhysicallyAttack(PhysicalAgent)public boolean mayPhysicallyAttack(PhysicalAgent victim)
CombatantmayPhysicallyAttack in interface Combatantvictim - the potential combat targetMOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayPhysicallyAttack(PhysicalAgent)public long getPeaceTime()
MOBgetPeaceTime in interface MOBpublic void setRangeToTarget(int newRange)
CombatantsetRangeToTarget in interface CombatantnewRange - the range from this combatant to their targetMOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.rangeToTarget(),
Combatant.mayIFight(PhysicalAgent)public int rangeToTarget()
CombatantrangeToTarget in interface CombatantMOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public int getDirectionToTarget()
CombatantgetDirectionToTarget in interface CombatantMOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public int maxRange()
EnvironmentalmaxRange in interface Environmentalpublic int minRange()
EnvironmentalminRange in interface Environmentalpublic void makePeace(boolean includePlayerFollowers)
CombatantmakePeace in interface CombatantincludePlayerFollowers - 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()
MOBgetVictim in interface MOBCombatant.isInCombat(),
MOB.setVictim(MOB),
Combatant.makePeace(boolean),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public PhysicalAgent getCombatant()
CombatantgetCombatant in interface CombatantCombatant.isInCombat(),
Combatant.setCombatant(PhysicalAgent),
Combatant.makePeace(boolean),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public void setCombatant(PhysicalAgent other)
CombatantsetCombatant in interface Combatantother - 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)
MOBsetVictim in interface MOBother - 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)
CombatantkillMeDead in interface CombatantcreateBody - true to create a corpse, false otherwiseCombatant.amDead(),
MOB.bringToLife(Room, boolean),
MOB.removeFromGame(boolean, boolean)public Room location()
MOBlocation in interface MOBMOB.setLocation(Room),
Room.isInhabitant(MOB)public void setLocation(Room newRoom)
MOBsetLocation in interface MOBnewRoom - the room in which this mob/player is currently standingMOB.location(),
Room.isInhabitant(MOB)public Rideable riding()
Riderpublic void setRiding(Rideable ride)
Riderpublic final Session session()
MOBsession in interface MOBMOB.setSession(Session),
MOB.isMonster(),
MOB.isPossessing(),
MOB.soulMate()public void setSession(Session newSession)
MOBsetSession in interface MOBnewSession - the Telnet Session attached to this mobMOB.session(),
MOB.isMonster(),
MOB.isPossessing(),
MOB.soulMate()public Weapon getNaturalWeapon()
MOBgetNaturalWeapon in interface MOBpublic java.lang.String titledName(MOB viewer)
MOBtitledName in interface MOBviewer - the person viewingEnvironmental.Name(),
Tickable.name()public java.lang.String name(MOB viewer)
Physicalname in interface Physicalviewer - the mob viewing the physical thingTickable.name()public java.lang.String displayText(MOB viewerMob)
PhysicaldisplayText in interface PhysicalviewerMob - the mob viewing the physical thingEnvironmental.displayText()public java.lang.String displayText()
EnvironmentaldisplayText in interface Environmentalpublic void setDisplayText(java.lang.String newDisplayText)
EnvironmentalsetDisplayText in interface EnvironmentalnewDisplayText - the string describing how this object looks in the roompublic java.lang.String description()
Environmentaldescription in interface Environmentalpublic java.lang.String description(MOB viewerMob)
Physicaldescription in interface PhysicalviewerMob - the mob viewing the physical thingEnvironmental.description()public void setDescription(java.lang.String newDescription)
EnvironmentalsetDescription in interface EnvironmentalnewDescription - the basic detail description of this objectpublic void setMiscText(java.lang.String newText)
EnvironmentalsetMiscText in interface EnvironmentalnewText - either an open internal text string, or XMLpublic java.lang.String text()
Environmentaltext in interface Environmentalpublic java.lang.String miscTextFormat()
EnvironmentalmiscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public java.lang.String healthText(MOB viewer)
CombatanthealthText in interface Combatantviewer - the mob viewing this mobpublic double actions()
MUDCmdProcessoractions in interface MUDCmdProcessorMUDCmdProcessor.enqueCommand(List, int, double),
MUDCmdProcessor.setActions(double)public void setActions(double remain)
MUDCmdProcessorsetActions in interface MUDCmdProcessorremain - the number of action pointsMUDCmdProcessor.enqueCommand(List, int, double),
MUDCmdProcessor.actions()public int commandQueSize()
MUDCmdProcessorcommandQueSize in interface MUDCmdProcessorMUDCmdProcessor.dequeCommand(),
MUDCmdProcessor.clearCommandQueue(),
MUDCmdProcessor.doCommand(List, int),
MUDCmdProcessor.getTopCommand(),
MUDCmdProcessor.enqueCommand(List, int, double),
MUDCmdProcessor.actions()public void clearCommandQueue()
MUDCmdProcessorpublic Pair<java.lang.Object,java.util.List<java.lang.String>> getTopCommand()
MUDCmdProcessorgetTopCommand in interface MUDCmdProcessorMUDCmdProcessor.dequeCommand(),
MUDCmdProcessor.doCommand(List, int)public boolean dequeCommand()
MUDCmdProcessordequeCommand in interface MUDCmdProcessorMUDCmdProcessor.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)
MUDCmdProcessordoCommand in interface MUDCmdProcessorcommands - 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)
MUDCmdProcessorprequeCommand in interface MUDCmdProcessorcommands - 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)
MUDCmdProcessorprequeCommands in interface MUDCmdProcessorcommands - 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)
MUDCmdProcessorenqueCommand in interface MUDCmdProcessorcommands - 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)
MUDCmdProcessorenqueCommands in interface MUDCmdProcessorcommands - 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)
MsgListenerokMessage in interface MsgListenermyHost - 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)
MOBtell in interface MOBsource - 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)
MOBtell in interface MOBmsg - 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)
MsgListenerexecuteMsg in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic void affectCharStats(MOB affectedMob, CharStats affectableStats)
StatsAffectingaffectCharStats in interface StatsAffectingaffectedMob - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()public int getTickStatus()
TickablegetTickStatus in interface TickableTickable.tick(Tickable, int)public boolean tick(Tickable ticking, int tickID)
Tickabletick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in TickableTickable,
ServiceEngine,
TickableGrouppublic boolean isPlayer()
MOBisPlayer in interface MOBMOB.isMonster(),
MOB.playerStats()public boolean isMonster()
MOBisMonster in interface MOBMOB.session(),
MOB.setSession(Session),
MOB.isPossessing(),
MOB.soulMate()public boolean isPossessing()
MOBisPossessing in interface MOBMOB.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)
ItemCollectionaddItem in interface ItemCollectionitem - the item to addItemCollection.delItem(Item)public void addItem(Item item, ItemPossessor.Expire expire)
ItemPossessoraddItem in interface ItemPossessoritem - the item to addexpire - the expiration argument to decide when it will get cleaned upItemPossessor.Expirepublic void delItem(Item item)
ItemCollectiondelItem in interface ItemCollectionitem - the item to removepublic void delAllItems(boolean destroy)
ItemCollectiondelAllItems in interface ItemCollectiondestroy - true to also destroy the itemspublic int numItems()
ItemCollectionnumItems in interface ItemCollectionpublic java.util.Enumeration<Item> items()
ItemCollectionitems in interface ItemCollectionpublic boolean isContent(Item I)
ItemCollectionisContent in interface ItemCollectionI - the item to checkpublic java.util.List<Item> findItems(Item goodLocation, java.lang.String itemName)
ItemCollectionfindItems in interface ItemCollectiongoodLocation - the container to look in, or null for noneitemName - the name or partial name of the item to fetchpublic Item getItem(int index)
ItemCollectiongetItem in interface ItemCollectionindex - the index of the itempublic void eachItem(EachApplicable<Item> applier)
ItemCollectioneachItem in interface ItemCollectionapplier - code to execute against each objectpublic Item getRandomItem()
ItemCollectiongetRandomItem in interface ItemCollectionpublic Item fetchFromInventory(Item goodLocation, java.lang.String itemName, Filterer<Environmental> filter, boolean respectLocationAndWornCode)
public Item findItem(java.lang.String itemName)
ItemCollectionfindItem in interface ItemCollectionitemName - the name or partial name of the item to fetchpublic Item findItem(Item goodLocation, java.lang.String itemName)
ItemCollectionfindItem in interface ItemCollectiongoodLocation - 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)
MOBfetchItem in interface MOBgoodLocation - 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)
ItemPossessorgetContextName in interface ItemPossessorE - the mob or item to return a search string forpublic java.util.List<Item> findItems(java.lang.String itemName)
ItemCollectionfindItems in interface ItemCollectionitemName - the name or partial name of the item to fetchpublic void addFollower(MOB follower, int order)
FollowableaddFollower 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)
FollowabledelFollower in interface Followable<MOB>follower - the follower to removepublic int numFollowers()
FollowablenumFollowers in interface Followable<MOB>Followable.totalFollowers()public java.util.Enumeration<Pair<MOB,java.lang.Short>> followers()
Followablefollowers in interface Followable<MOB>public int fetchFollowerOrder(MOB thisOne)
FollowablefetchFollowerOrder in interface Followable<MOB>thisOne - the specific followablepublic MOB fetchFollower(java.lang.String named)
FollowablefetchFollower in interface Followable<MOB>named - the search string namepublic MOB fetchFollower(int index)
FollowablefetchFollower in interface Followable<MOB>index - the index (0-based) of the followable followerpublic boolean isFollowedBy(MOB thisOne)
FollowableisFollowedBy in interface Followable<MOB>thisOne - the followable follower to look for.public boolean willFollowOrdersOf(MOB mob)
MOBwillFollowOrdersOf in interface MOBmob - the mob to check to see if he's the leaderpublic MOB amUltimatelyFollowing()
FollowableamUltimatelyFollowing in interface Followable<MOB>public MOB amFollowing()
FollowableamFollowing in interface Followable<MOB>public void setFollowing(MOB mob)
FollowablesetFollowing in interface Followable<MOB>mob - the follower followingFollowable.addFollower(Followable, int)public java.util.Set<MOB> getRideBuddies(java.util.Set<MOB> list)
MOBgetRideBuddies in interface MOBlist - the required list to populate with riders and rideableRider,
Rideablepublic java.util.Set<MOB> getGroupMembers(java.util.Set<MOB> list)
FollowablegetGroupMembers in interface Followable<MOB>list - requires list to populate with followablespublic java.util.Set<? extends Rider> getGroupMembersAndRideables(java.util.Set<? extends Rider> list)
FollowablegetGroupMembersAndRideables in interface Followable<MOB>list - requires list to populate with followables and rideablespublic boolean isSavable()
ContingentisSavable in interface Contingentpublic void setSavable(boolean truefalse)
ContingentsetSavable in interface Contingenttruefalse - whether this behavior can be saved as part of its host.Contingent.isSavable()public MOB soulMate()
MOBsoulMate in interface MOBMOB.session(),
MOB.isPossessing(),
MOB.setSoulMate(MOB),
MOB.dispossess(boolean)public void setSoulMate(MOB mob)
MOBsetSoulMate in interface MOBmob - the mob that is possessing this mobMOB.session(),
MOB.isPossessing(),
MOB.soulMate(),
MOB.dispossess(boolean)public void addAbility(Ability to)
AbilityContaineraddAbility in interface AbilityContainerto - the Ability to add.Abilitypublic void delAbility(Ability to)
AbilityContainerdelAbility in interface AbilityContainerto - the exact Ability to removeAbilitypublic void delAllAbilities()
AbilityContainerdelAllAbilities in interface AbilityContainerpublic int numAbilities()
AbilityContainernumAbilities in interface AbilityContainerAbilitypublic java.util.Enumeration<Ability> abilities()
AbilityContainerabilities in interface AbilityContainerpublic java.util.Enumeration<Ability> allAbilities()
AbilityContainerallAbilities in interface AbilityContainerpublic int numAllAbilities()
AbilityContainernumAllAbilities in interface AbilityContainerpublic Ability fetchRandomAbility()
AbilityContainerfetchRandomAbility in interface AbilityContainerAbilitypublic boolean isRacialAbility(java.lang.String abilityID)
MOBisRacialAbility in interface MOBabilityID - the ability object to check forpublic Ability fetchAbility(int index)
AbilityContainerfetchAbility in interface AbilityContainerindex - the index of the Ability object to returnAbilitypublic Ability fetchAbility(java.lang.String ID)
AbilityContainerfetchAbility in interface AbilityContainerID - the ID of the ability to return.Abilitypublic Ability findAbility(java.lang.String ID)
MOBfindAbility in interface MOBID - 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()
MOBclans in interface MOBMOB.setClan(String, int),
MOB.getClanRole(String)public Pair<Clan,java.lang.Integer> getClanRole(java.lang.String clanID)
MOBgetClanRole in interface MOBclanID - the clan name/idMOB.clans(),
MOB.setClan(String, int)public void setClan(java.lang.String clanID,
int role)
MOBsetClan in interface MOBclanID - the clanID/namerole - the rank/role of this player in the clanMOB.clans(),
MOB.getClanRole(String)public void addNonUninvokableEffect(Ability to)
AffectableaddNonUninvokableEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void addPriorityEffect(Ability to)
MOBaddPriorityEffect in interface MOBto - the Ability to add as an effectMOB.numAllEffects(),
MOB.personalEffects(),
Ability,
Affectable.addEffect(Ability)public void addEffect(Ability to)
AffectableaddEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void delEffect(Ability to)
AffectabledelEffect in interface Affectableto - The ability object to remove as an effect on this objectAbility,
Affectable.recoverPhyStats()public void eachEffect(EachApplicable<Ability> applier)
AffectableeachEffect in interface Affectableapplier - code to execute against each objectpublic void delAllEffects(boolean unInvoke)
AffectabledelAllEffects in interface AffectableunInvoke - send true to uninvoke before deletingpublic int numAllEffects()
MOBnumAllEffects in interface MOBMOB.addPriorityEffect(Ability),
MOB.personalEffects(),
Affectable.numEffects()public int numEffects()
AffectablenumEffects in interface AffectableAbilitypublic Ability fetchEffect(int index)
AffectablefetchEffect in interface Affectableindex - which object to returnAbility,
Affectable.numEffects()public Ability fetchEffect(java.lang.String ID)
AffectablefetchEffect in interface AffectableID - the Ability ID to look for in effectsAbility,
CMObject.ID()public java.util.Enumeration<Ability> personalEffects()
MOBpersonalEffects in interface MOBMOB.numAllEffects(),
MOB.addPriorityEffect(Ability),
Ability,
Affectable.effects()public java.util.Enumeration<Ability> effects()
Affectableeffects in interface AffectableAbilitypublic void addBehavior(Behavior to)
addBehavior in interface Behavableto - The behavior object to add.Behavior,
Affectable.recoverPhyStats()public void delBehavior(Behavior to)
BehavabledelBehavior in interface Behavableto - The behavior object to remove.Behavior,
Affectable.recoverPhyStats()public void delAllBehaviors()
BehavabledelAllBehaviors in interface Behavablepublic int numBehaviors()
BehavablenumBehaviors in interface BehavableBehaviorpublic java.util.Enumeration<Behavior> behaviors()
Behavablepublic Behavior fetchBehavior(int index)
BehavablefetchBehavior in interface Behavableindex - which object to returnBehavior,
Behavable.numBehaviors()public Behavior fetchBehavior(java.lang.String ID)
BehavablefetchBehavior in interface BehavableID - the Behavior ID to look forBehavior,
CMObject.ID()public void eachBehavior(EachApplicable<Behavior> applier)
BehavableeachBehavior in interface Behavableapplier - code to execute against each objectpublic int[][] getAbilityUsageCache(java.lang.String abilityID)
MOBgetAbilityUsageCache in interface MOBabilityID - the specific Ability ID() to get the cache forAbility.CACHEINDEX_TOTALpublic void addExpertise(java.lang.String code)
MOBaddExpertise in interface MOBcode - the expertise to add or updateMOB.fetchExpertise(String),
MOB.expertises(),
MOB.delAllExpertises(),
MOB.delExpertise(String)public void delExpertise(java.lang.String baseCode)
MOBdelExpertise in interface MOBbaseCode - 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)
MOBfetchExpertise in interface MOBbaseCode - the expertise codeMOB.delAllExpertises(),
MOB.expertises(),
MOB.delExpertise(String),
MOB.addExpertise(String)public void delAllExpertises()
MOBdelAllExpertises in interface MOBMOB.fetchExpertise(String),
MOB.expertises(),
MOB.delExpertise(String),
MOB.addExpertise(String)public java.util.Enumeration<java.lang.String> expertises()
MOBexpertises in interface MOBMOB.delAllExpertises(),
MOB.fetchExpertise(String),
MOB.delExpertise(String),
MOB.addExpertise(String)public void addScript(ScriptingEngine S)
addScript in interface BehavableS - the scripting engine, fully populated, to addScriptingEnginepublic void delScript(ScriptingEngine S)
BehavabledelScript in interface BehavableS - the specific scripting engine to removeScriptingEnginepublic void delAllScripts()
BehavabledelAllScripts in interface Behavablepublic int numScripts()
BehavablenumScripts in interface Behavablepublic java.util.Enumeration<ScriptingEngine> scripts()
Behavablescripts in interface BehavableScriptingEnginepublic ScriptingEngine fetchScript(int x)
BehavablefetchScript in interface Behavablex - which script to returnScriptingEnginepublic void eachScript(EachApplicable<ScriptingEngine> applier)
BehavableeachScript in interface Behavableapplier - code to execute against each objectpublic void addTattoo(java.lang.String of)
addTattoo in interface Tattooableof - the permanent tattoo name to addTattooable,
Tattooable.addTattoo(String, int),
Tattooable.addTattoo(Tattoo)public void addTattoo(java.lang.String of,
int tickDown)
TattooableaddTattoo in interface Tattooableof - 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)
TattooabledelTattoo in interface Tattooableof - the tattoo name of the tattoo to removeTattooable,
Tattooable.delTattoo(Tattoo)public void addTattoo(Tattoo of)
TattooableaddTattoo in interface Tattooableof - the tattoo object to addTattooable,
Tattooable.addTattoo(String, int),
Tattooable.addTattoo(String)public void delTattoo(Tattoo of)
TattooabledelTattoo in interface Tattooableof - the tattoo object to removeTattooable,
Tattooable.delTattoo(String)public java.util.Enumeration<Tattoo> tattoos()
Tattooabletattoos in interface TattooableTattooablepublic Tattoo findTattoo(java.lang.String of)
TattooablefindTattoo in interface Tattooableof - the marker name to return a tattoo forTattooable,
Tattooable.findTattooStartsWith(String)public Tattoo findTattooStartsWith(java.lang.String of)
TattooablefindTattooStartsWith in interface Tattooableof - the marker name to return a tattoo starter forTattooable,
Tattooable.findTattoo(String)public void addFaction(java.lang.String which,
int start)
addFaction in interface FactionMemberwhich - the facton ID to add to thisstart - the initial rank/value in the new factionFactionMemberpublic void adjustFaction(java.lang.String which,
int amount)
FactionMemberadjustFaction in interface FactionMemberwhich - the facton ID to add or alteramount - the amount to alter the faction by, or initial valueFactionMemberpublic java.util.Enumeration<java.lang.String> factions()
FactionMemberfactions in interface FactionMemberFactionMemberpublic int fetchFaction(java.lang.String which)
FactionMemberfetchFaction in interface FactionMemberwhich - the faction id to return rank/value inFactionMemberpublic Faction.FData fetchFactionData(java.lang.String which)
FactionMemberfetchFactionData in interface FactionMemberwhich - the faction id to return rank/value inFaction.FDatapublic void removeFaction(java.lang.String which)
FactionMemberremoveFaction in interface FactionMemberwhich - the faction id to removeFactionMemberpublic void copyFactions(FactionMember source)
FactionMembercopyFactions in interface FactionMembersource - the source of the factions to copyFactionMemberpublic boolean hasFaction(java.lang.String which)
FactionMemberhasFaction in interface FactionMemberwhich - the faction id to search forFactionMemberpublic java.util.List<java.lang.String> fetchFactionRanges()
FactionMemberfetchFactionRanges in interface FactionMemberFactionMemberpublic int freeWearPositions(long wornCode,
short belowLayer,
short layerAttributes)
MOBfreeWearPositions in interface MOBwornCode - 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)
MOBgetWearPositions in interface MOBwornCode - 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)
MOBfetchWornItems in interface MOBwornCode - 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()
MOBhasOnlyGoldInInventory in interface MOBpublic Item fetchFirstWornItem(long wornCode)
MOBfetchFirstWornItem in interface MOBwornCode - the worn_ codeWearable.WORN_HEAD,
MOB.fetchItem(Item, Filterer, String),
MOB.fetchFirstWornItem(long),
MOB.fetchWieldedItem()public Item fetchWieldedItem()
MOBfetchWieldedItem in interface MOBMOB.fetchFirstWornItem(long),
MOB.fetchWornItems(long, short, short),
MOB.fetchHeldItem()public Item fetchHeldItem()
MOBfetchHeldItem in interface MOBMOB.fetchFirstWornItem(long),
MOB.fetchWornItems(long, short, short),
MOB.fetchWieldedItem()public boolean isMine(Environmental env)
MOBpublic void moveItemTo(Item container, ItemPossessor.Expire expire, ItemPossessor.Move... moveFlags)
ItemPossessormoveItemTo in interface ItemPossessorcontainer - the item to addexpire - the expiration codemoveFlags - any flags related to the moveItemPossessor.Expirepublic void moveItemTo(Item container)
ItemPossessormoveItemTo in interface ItemPossessorcontainer - the item to addItemPossessor.Expirepublic java.lang.String L(java.lang.String str,
java.lang.String... xs)
EnvironmentalL in interface Environmentalstr - 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)
ModifiablegetStat in interface Modifiablecode - the name of the field to read.Modifiable.getStatCodes()public void setStat(java.lang.String code,
java.lang.String val)
ModifiablesetStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public int getSaveStatIndex()
ModifiablegetSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
ModifiablegetStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public boolean isStat(java.lang.String code)
ModifiableisStat in interface Modifiablecode - the name of the field to read.Modifiable.getStatCodes()protected int getCodeNum(java.lang.String code)
public boolean sameAs(Environmental E)
EnvironmentalsameAs in interface EnvironmentalE - the object to compare this one toModifiable.getStatCodes(),
Modifiable.getStat(String)