|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.MOBS.StdMOB
public class StdMOB
| Nested Class Summary | |
|---|---|
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 |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
MOB.Attrib |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemPossessor |
|---|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move |
| Field Summary | |
|---|---|
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 CMUniqNameSortSVec<Tattoo> |
tattoos
|
protected int |
tickAgeCounter
|
protected int |
tickStatus
|
protected int |
trains
|
java.lang.String |
username
|
protected MOB |
victim
|
protected int |
wimpHitPoint
|
protected java.lang.String |
worshipCharID
|
protected java.lang.String[] |
xtraValues
|
| Fields inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
AGE_MILLIS_THRESHOLD, END_SHEATH_TIME, START_SHEATH_TIME |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.MUDCmdProcessor |
|---|
METAFLAG_AS, METAFLAG_ASMESSAGE, METAFLAG_FORCED, METAFLAG_INORDER, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_SNOOPED |
| Constructor Summary | |
|---|---|
StdMOB()
|
|
| Method Summary | |
|---|---|
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(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 |
addTattoo(Tattoo of)
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 mob 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 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. |
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(java.lang.String of)
Remove a specific tattoo from this object |
void |
delTattoo(Tattoo 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. |
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. |
protected void |
doCommand(java.lang.Object O,
java.util.List<java.lang.String> commands,
int metaFlags)
|
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 the age-range and race of this mob, as if it were someone spotted on the street that you didn't know. |
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. |
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. |
Deity |
getMyDeity()
Returns the Deity object of the mob that this player/mob worships. |
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. |
int |
getTrains()
Returns the number of training points 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. |
java.lang.String |
getWorshipCharID()
Returns the name of the Deity mob that this player/mob worships. |
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 mob in a dead state, removes all temporary effects, creates a corpse, ends combat, and sends 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 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 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()
The raw unmodified name of this object as stored in the database. |
java.lang.String |
name(MOB viewer)
Returns the name, but as seen by the given viewer. |
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. |
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 points this mob has |
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. |
void |
setWorshipCharID(java.lang.String newVal)
Sets the name of the Deity mob that this player/mob worships. |
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. |
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String username
protected CharStats baseCharStats
protected CharStats charStats
protected PhyStats phyStats
protected PhyStats basePhyStats
protected PlayerStats playerStats
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 int attributesBitmap
protected java.lang.String databaseID
protected int tickAgeCounter
protected int recoverTickCter
public CharState curState
public CharState maxState
public CharState baseState
protected Room possStartRoom
protected java.lang.String worshipCharID
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 SVector<Item> inventory
protected CMUniqSortSVec<Ability> abilitys
protected int[] abilityUseTrig
protected STreeMap<java.lang.String,int[][]> abilityUseCache
protected STreeMap<java.lang.String,java.lang.Integer> expertises
protected SVector<Ability> affects
protected CMUniqSortSVec<Behavior> behaviors
protected CMUniqNameSortSVec<Tattoo> tattoos
protected volatile PairList<MOB,java.lang.Short> followers
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
| Constructor Detail |
|---|
public StdMOB()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic long lastTickedDateTime()
MOB
lastTickedDateTime in interface MOBpublic void flagVariableEq()
MOB
flagVariableEq in interface MOBpublic long getAgeMinutes()
MOB
getAgeMinutes in interface MOBMOB.setAgeMinutes(long)public int getPractices()
MOB
getPractices in interface MOBMOB.setPractices(int)public int getExperience()
MOB
getExperience in interface MOBMOB.setExperience(int),
MOB.getExpNextLevel(),
MOB.getExpNeededDelevel(),
MOB.getExpNeededLevel(),
MOB.getExpPrevLevel()public int getExpNextLevel()
MOB
getExpNextLevel in interface MOBMOB.getExperience(),
MOB.setExperience(int),
MOB.getExpNeededDelevel(),
MOB.getExpNeededLevel(),
MOB.getExpPrevLevel()public int getExpPrevLevel()
MOB
getExpPrevLevel in interface MOBpublic int getExpNeededDelevel()
MOB
getExpNeededDelevel in interface MOBMOB.getExperience(),
MOB.getExpNextLevel(),
MOB.setExperience(int),
MOB.getExpNeededLevel(),
MOB.getExpPrevLevel()public int getExpNeededLevel()
MOB
getExpNeededLevel in interface MOBMOB.getExperience(),
MOB.getExpNextLevel(),
MOB.getExpNeededDelevel(),
MOB.setExperience(int),
MOB.getExpPrevLevel()public int getTrains()
MOB
getTrains in interface MOBMOB.setTrains(int)public int getMoney()
MOB
getMoney in interface MOBMOB.setMoney(int),
MOB.getMoneyVariation(),
MOB.setMoneyVariation(double)public double getMoneyVariation()
MOB
getMoneyVariation in interface MOBMOB.getMoney(),
MOB.setMoney(int),
MOB.setMoneyVariation(double)public int getAttributesBitmap()
MOB
getAttributesBitmap in interface MOBMOB.Attrib,
MOB.setAttributesBitmap(int)public void setAgeMinutes(long newVal)
MOB
setAgeMinutes in interface MOBnewVal - the total number of rl minutes this player has ever played.MOB.getAgeMinutes()public void setExperience(int newVal)
MOB
setExperience 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)
MOB
setPractices in interface MOBnewVal - the number of practice points this mob hasMOB.getPractices()public void setTrains(int newVal)
MOB
setTrains in interface MOBnewVal - the number of training points this mob hasMOB.getTrains()public void setMoney(int newVal)
MOB
setMoney in interface MOBnewVal - the mob npc moneyMOB.getMoney(),
MOB.getMoneyVariation(),
MOB.setMoneyVariation(double)public void setMoneyVariation(double newVal)
MOB
setMoneyVariation in interface MOBnewVal - the amount of money to vary for looting moneyMOB.getMoney(),
MOB.getMoneyVariation(),
MOB.setMoneyVariation(double)public void setAttributesBitmap(int bitmap)
MOB
setAttributesBitmap in interface MOBbitmap - the raw numeric attributes bitmapMOB.Attrib,
MOB.getAttributesBitmap()
public void setAttribute(MOB.Attrib attrib,
boolean set)
MOB
setAttribute 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)
MOB
isAttributeSet in interface MOBattrib - the attribute to check
MOB.setAttribute(Attrib, boolean)public java.lang.String getFactionListing()
FactionMember
getFactionListing in interface FactionMemberFactionMemberpublic java.lang.String getLiegeID()
MOB
getLiegeID in interface MOBMOB.setLiegeID(String),
MOB.isMarriedToLiege()public java.lang.String getWorshipCharID()
MOB
getWorshipCharID in interface MOBMOB.setWorshipCharID(String),
MOB.getMyDeity()public int getWimpHitPoint()
MOB
getWimpHitPoint in interface MOBMOB.setWimpHitPoint(int)public int getQuestPoint()
MOB
getQuestPoint in interface MOBMOB.setQuestPoint(int)public void setLiegeID(java.lang.String newVal)
MOB
setLiegeID in interface MOBnewVal - the name of the player to which this mob owes loyaltyMOB.getLiegeID(),
MOB.isMarriedToLiege()public void setWorshipCharID(java.lang.String newVal)
MOB
setWorshipCharID in interface MOBnewVal - the name of the Deity mob that this player/mob worships.MOB.setWorshipCharID(String),
MOB.getMyDeity()public void setWimpHitPoint(int newVal)
MOB
setWimpHitPoint in interface MOBnewVal - the wimpy hit point numberMOB.getWimpHitPoint()public void setQuestPoint(int newVal)
MOB
setQuestPoint in interface MOBnewVal - the number of quest points that this mob has earned.MOB.getQuestPoint()public Deity getMyDeity()
MOB
getMyDeity in interface MOBMOB.getWorshipCharID(),
MOB.setWorshipCharID(String)public void initializeClass()
CMObject
initializeClass in interface CMObjectpublic CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic Room getStartRoom()
MOB
getStartRoom in interface MOBMOB.setStartRoom(Room)public void setStartRoom(Room room)
MOB
setStartRoom in interface MOBroom - the stored Start Room for this mobMOB.getStartRoom()public void setDatabaseID(java.lang.String id)
DBIdentifiable
setDatabaseID in interface DBIdentifiableid - the unique contextual database ID for this object.DBIdentifiable.canSaveDatabaseID(),
DBIdentifiable.databaseID()public boolean canSaveDatabaseID()
DBIdentifiable
canSaveDatabaseID in interface DBIdentifiableDBIdentifiable.databaseID(),
DBIdentifiable.setDatabaseID(String)public java.lang.String databaseID()
DBIdentifiable
databaseID in interface DBIdentifiableDBIdentifiable.canSaveDatabaseID(),
DBIdentifiable.setDatabaseID(String)public java.lang.String Name()
Environmental
Name in interface EnvironmentalTickable.name()public void setName(java.lang.String newName)
Environmental
setName in interface EnvironmentalnewName - the raw base name of this object on the map.Environmental.Name()public java.lang.String name()
Tickable
name in interface CMObjectname in interface TickableEnvironmental.Name()public java.lang.String titledName()
MOB
titledName in interface MOBEnvironmental.Name(),
Tickable.name()public java.lang.String genericName()
MOB
genericName in interface MOBpublic java.lang.String image()
Environmental
image in interface Environmentalpublic java.lang.String rawImage()
Environmental
rawImage in interface Environmentalpublic void setImage(java.lang.String newImage)
Environmental
setImage in interface EnvironmentalnewImage - the raw name of the mxp image filepublic long expirationDate()
Environmental
expirationDate in interface EnvironmentalEnvironmental.setExpirationDate(long)public void setExpirationDate(long time)
Environmental
setExpirationDate in interface Environmentaltime - the time stamp when this thing expiresEnvironmental.expirationDate()public final boolean amDestroyed()
Contingent
amDestroyed in interface Contingentprotected void cloneFix(MOB M)
public CMObject copyOf()
CMObject
copyOf in interface CMObjectpublic boolean isGeneric()
Environmental
isGeneric in interface EnvironmentalEnvironmental.text()public PhyStats phyStats()
Affectable
phyStats in interface AffectableAffectable.basePhyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic PhyStats basePhyStats()
Affectable
basePhyStats in interface AffectableAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic void recoverPhyStats()
Affectable
recoverPhyStats in interface AffectableAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStatspublic void setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats in interface AffectablenewStats - a set of state fieldsAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic int baseWeight()
MOB
baseWeight in interface MOBpublic int maxCarry()
MOB
maxCarry in interface MOBMOB.maxItems()public int maxItems()
MOB
maxItems in interface MOBMOB.maxCarry()public int maxFollowers()
MOB
maxFollowers in interface MOBFollowablepublic int totalFollowers()
Followable
totalFollowers in interface Followable<MOB>Followable.numFollowers()public CharStats baseCharStats()
MOB
baseCharStats in interface MOBMOB.charStats(),
MOB.recoverCharStats(),
MOB.setBaseCharStats(CharStats)public CharStats charStats()
MOB
charStats in interface MOBMOB.baseCharStats(),
MOB.recoverCharStats(),
MOB.setBaseCharStats(CharStats)public void recoverCharStats()
MOB
recoverCharStats in interface MOBMOB.baseCharStats(),
MOB.charStats(),
MOB.setBaseCharStats(CharStats)public void setBaseCharStats(CharStats newBaseCharStats)
MOB
setBaseCharStats in interface MOBnewBaseCharStats - the CharStats object for this mobMOB.charStats(),
MOB.baseCharStats(),
MOB.setBaseCharStats(CharStats)
public void affectPhyStats(Physical affected,
PhyStats affectableStats)
StatsAffecting
affectPhyStats 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)
StatsAffecting
affectCharState 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()
MOB
isMarriedToLiege in interface MOBMOB.getLiegeID(),
MOB.setLiegeID(String)public CharState curState()
MOB
curState in interface MOBCharState,
MOB.setBaseState(CharState),
MOB.baseState(),
MOB.maxState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public CharState maxState()
MOB
maxState in interface MOBCharState,
MOB.setBaseState(CharState),
MOB.curState(),
MOB.baseState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public CharState baseState()
MOB
baseState in interface MOBCharState,
MOB.setBaseState(CharState),
MOB.curState(),
MOB.maxState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public PlayerStats playerStats()
MOB
playerStats in interface MOBMOB.setPlayerStats(PlayerStats),
PlayerStatspublic void setPlayerStats(PlayerStats newStats)
MOB
setPlayerStats in interface MOBnewStats - the PlayerStats object or null for an NPCMOB.playerStats(),
PlayerStatspublic void setBaseState(CharState newState)
MOB
setBaseState in interface MOBnewState - the base CharState object for this mobCharState,
MOB.baseState(),
MOB.curState(),
MOB.maxState(),
MOB.recoverMaxState(),
MOB.resetToMaxState()public void resetToMaxState()
MOB
resetToMaxState in interface MOBMOB.setBaseState(CharState),
MOB.curState(),
MOB.baseState(),
MOB.maxState(),
MOB.recoverMaxState()public void recoverMaxState()
MOB
recoverMaxState in interface MOBMOB.setBaseState(CharState),
MOB.curState(),
MOB.baseState(),
MOB.maxState(),
MOB.resetToMaxState()public boolean amDead()
MOB
amDead in interface MOBMOB.killMeDead(boolean),
MOB.bringToLife(Room, boolean),
MOB.removeFromGame(boolean, boolean)public boolean amActive()
MOB
amActive in interface MOBMOB.bringToLife(Room, boolean),
MOB.killMeDead(boolean),
MOB.removeFromGame(boolean, boolean)public void dispossess(boolean forceLook)
MOB
dispossess in interface MOBforceLook - 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 MOBpreserveFollowers - true to copy the followers overkillSession - true to end the session connected to this mob, if anyMOB.bringToLife(Room, boolean),
MOB.killMeDead(boolean),
MOB.amActive()public void bringToLife()
MOB
bringToLife in interface MOBMOB.bringToLife(Room, boolean),
MOB.killMeDead(boolean),
MOB.removeFromGame(boolean, boolean)protected final boolean confirmLocation(Room whereHeShouldBeR)
public void bringToLife(Room newLocation,
boolean resetStats)
MOB
bringToLife in interface MOBnewLocation - the room to bring the mob to life inresetStats - true to bring all char state stats to maxMOB.bringToLife(),
MOB.killMeDead(boolean),
MOB.removeFromGame(boolean, boolean)public boolean isInCombat()
Combatant
isInCombat 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)
Combatant
mayIFight in interface Combatantvictim - the potential combat target
MOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayPhysicallyAttack(PhysicalAgent)public boolean mayPhysicallyAttack(PhysicalAgent victim)
Combatant
mayPhysicallyAttack in interface Combatantvictim - the potential combat target
MOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayPhysicallyAttack(PhysicalAgent)public long getPeaceTime()
MOB
getPeaceTime in interface MOBpublic void setRangeToTarget(int newRange)
Combatant
setRangeToTarget 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()
Combatant
rangeToTarget in interface CombatantMOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public int getDirectionToTarget()
Combatant
getDirectionToTarget in interface CombatantMOB.getVictim(),
Combatant.setCombatant(PhysicalAgent),
Combatant.getCombatant(),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public int maxRange()
Environmental
maxRange in interface Environmentalpublic int minRange()
Environmental
minRange in interface Environmentalpublic void makePeace(boolean includePlayerFollowers)
Combatant
makePeace 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()
MOB
getVictim in interface MOBCombatant.isInCombat(),
MOB.setVictim(MOB),
Combatant.makePeace(boolean),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public PhysicalAgent getCombatant()
Combatant
getCombatant in interface CombatantCombatant.isInCombat(),
Combatant.setCombatant(PhysicalAgent),
Combatant.makePeace(boolean),
Combatant.setRangeToTarget(int),
Combatant.mayIFight(PhysicalAgent)public void setCombatant(PhysicalAgent other)
Combatant
setCombatant 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)
MOB
setVictim 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)
MOB
killMeDead in interface MOBcreateBody - true to create a corpse, false otherwise
MOB.amDead(),
MOB.bringToLife(Room, boolean),
MOB.removeFromGame(boolean, boolean)public Room location()
MOB
location in interface MOBMOB.setLocation(Room),
Room.isInhabitant(MOB)public void setLocation(Room newRoom)
MOB
setLocation in interface MOBnewRoom - the room in which this mob/player is currently standingMOB.location(),
Room.isInhabitant(MOB)public Rideable riding()
Rider
riding in interface RiderRideablepublic void setRiding(Rideable ride)
Rider
setRiding in interface Riderride - the Rideable to ride uponRideablepublic final Session session()
MOB
session in interface MOBMOB.setSession(Session),
MOB.isMonster(),
MOB.isPossessing(),
MOB.soulMate()public void setSession(Session newSession)
MOB
setSession in interface MOBnewSession - the Telnet Session attached to this mobMOB.session(),
MOB.isMonster(),
MOB.isPossessing(),
MOB.soulMate()public Weapon getNaturalWeapon()
MOB
getNaturalWeapon in interface MOBpublic java.lang.String name(MOB viewer)
Physical
name in interface Physicalviewer - the mob viewing the physical thing
Tickable.name()public java.lang.String displayText(MOB viewerMob)
Physical
displayText in interface PhysicalviewerMob - the mob viewing the physical thing
Environmental.displayText()public java.lang.String displayText()
Environmental
displayText in interface Environmentalpublic void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText in interface EnvironmentalnewDisplayText - the string describing how this object looks in the roompublic java.lang.String description()
Environmental
description in interface Environmentalpublic java.lang.String description(MOB viewerMob)
Physical
description in interface PhysicalviewerMob - the mob viewing the physical thing
Environmental.description()public void setDescription(java.lang.String newDescription)
Environmental
setDescription in interface EnvironmentalnewDescription - the basic detail description of this objectpublic void setMiscText(java.lang.String newText)
Environmental
setMiscText in interface EnvironmentalnewText - either an open internal text string, or XMLpublic java.lang.String text()
Environmental
text in interface Environmentalpublic java.lang.String miscTextFormat()
Environmental
miscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public java.lang.String healthText(MOB viewer)
MOB
healthText in interface MOBviewer - the mob viewing this mob
public double actions()
MUDCmdProcessor
actions in interface MUDCmdProcessorMUDCmdProcessor.enqueCommand(List, int, double),
MUDCmdProcessor.setActions(double)public void setActions(double remain)
MUDCmdProcessor
setActions in interface MUDCmdProcessorremain - the number of action pointsMUDCmdProcessor.enqueCommand(List, int, double),
MUDCmdProcessor.actions()public int commandQueSize()
MUDCmdProcessor
commandQueSize in interface MUDCmdProcessorMUDCmdProcessor.dequeCommand(),
MUDCmdProcessor.clearCommandQueue(),
MUDCmdProcessor.doCommand(List, int),
MUDCmdProcessor.enqueCommand(List, int, double),
MUDCmdProcessor.actions()public void clearCommandQueue()
MUDCmdProcessor
clearCommandQueue in interface MUDCmdProcessorMUDCmdProcessor.dequeCommand(),
MUDCmdProcessor.enqueCommand(List, int, double),
MUDCmdProcessor.doCommand(List, int),
MUDCmdProcessor.commandQueSize(),
MUDCmdProcessor.actions()public boolean dequeCommand()
MUDCmdProcessor
dequeCommand 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)
MUDCmdProcessor
doCommand 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)
public void prequeCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double actionCost)
MUDCmdProcessor
prequeCommand 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.actions()
public void prequeCommands(java.util.List<java.util.List<java.lang.String>> commands,
int metaFlags)
MUDCmdProcessor
prequeCommands in interface MUDCmdProcessorcommands - the parsed command string tokensmetaFlags - meta-command flags to send to the command, if anyMUDCmdProcessor.dequeCommand(),
MUDCmdProcessor.clearCommandQueue(),
MUDCmdProcessor.doCommand(List, int)
public void enqueCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double actionCost)
MUDCmdProcessor
enqueCommand 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.actions()
public void enqueCommands(java.util.List<java.util.List<java.lang.String>> commands,
int metaFlags)
MUDCmdProcessor
enqueCommands 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.actions()
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public void tell(MOB source,
Environmental target,
Environmental tool,
java.lang.String msg)
MOB
tell 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)
MOB
tell 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)
MsgListener
executeMsg in interface MsgListenermyHost - 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 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()
Tickable
getTickStatus in interface TickableTickable.tick(Tickable, int)
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGrouppublic boolean isPlayer()
MOB
isPlayer in interface MOBMOB.isMonster(),
MOB.playerStats()public boolean isMonster()
MOB
isMonster in interface MOBMOB.session(),
MOB.setSession(Session),
MOB.isPossessing(),
MOB.soulMate()public boolean isPossessing()
MOB
isPossessing 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)
ItemCollection
addItem in interface ItemCollectionitem - the item to addItemCollection.delItem(Item)
public void addItem(Item item,
ItemPossessor.Expire expire)
ItemPossessor
addItem in interface ItemPossessoritem - the item to addexpire - the expiration argument to decide when it will get cleaned upItemPossessor.Expirepublic void delItem(Item item)
ItemCollection
delItem in interface ItemCollectionitem - the item to removepublic void delAllItems(boolean destroy)
ItemCollection
delAllItems in interface ItemCollectiondestroy - true to also destroy the itemspublic int numItems()
ItemCollection
numItems in interface ItemCollectionpublic java.util.Enumeration<Item> items()
ItemCollection
items in interface ItemCollectionpublic boolean isContent(Item I)
ItemCollection
isContent in interface ItemCollectionI - the item to check
public java.util.List<Item> findItems(Item goodLocation,
java.lang.String itemName)
ItemCollection
findItems in interface ItemCollectiongoodLocation - the container to look in, or null for noneitemName - the name or partial name of the item to fetch
public Item getItem(int index)
ItemCollection
getItem in interface ItemCollectionindex - the index of the item
public void eachItem(EachApplicable<Item> applier)
ItemCollection
eachItem in interface ItemCollectionapplier - 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 ItemCollectionitemName - the name or partial name of the item to fetch
public Item findItem(Item goodLocation,
java.lang.String itemName)
ItemCollection
findItem in interface ItemCollectiongoodLocation - the container to look in, or null for noneitemName - the name or partial name of the item to fetch
public Item fetchItem(Item goodLocation,
Filterer<Environmental> filter,
java.lang.String itemName)
MOB
fetchItem 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.util.List<Item> findItems(java.lang.String itemName)
ItemCollection
findItems in interface ItemCollectionitemName - the name or partial name of the item to fetch
public 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 followable
public MOB fetchFollower(java.lang.String named)
Followable
fetchFollower in interface Followable<MOB>named - the search string name
public MOB fetchFollower(int index)
Followable
fetchFollower in interface Followable<MOB>index - the index (0-based) of the followable follower
public 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 MOBmob - the mob to check to see if he's the leader
public 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 MOBlist - the required list to populate with riders and rideable
Rider,
Rideablepublic java.util.Set<MOB> getGroupMembers(java.util.Set<MOB> list)
Followable
getGroupMembers in interface Followable<MOB>list - requires list to populate with followables
public 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 rideables
public boolean isSavable()
Contingent
isSavable in interface Contingentpublic void setSavable(boolean truefalse)
Contingent
setSavable in interface Contingenttruefalse - whether this behavior can be saved as part of its host.Contingent.isSavable()public MOB soulMate()
MOB
soulMate in interface MOBMOB.session(),
MOB.isPossessing(),
MOB.setSoulMate(MOB),
MOB.dispossess(boolean)public void setSoulMate(MOB mob)
MOB
setSoulMate in interface MOBmob - the mob that is possessing this mobMOB.session(),
MOB.isPossessing(),
MOB.soulMate(),
MOB.dispossess(boolean)public void addAbility(Ability to)
AbilityContainer
addAbility in interface AbilityContainerto - the Ability to add.Abilitypublic void delAbility(Ability to)
AbilityContainer
delAbility in interface AbilityContainerto - the exact Ability to removeAbilitypublic void delAllAbilities()
AbilityContainer
delAllAbilities in interface AbilityContainerpublic int numAbilities()
AbilityContainer
numAbilities in interface AbilityContainerAbilitypublic java.util.Enumeration<Ability> abilities()
AbilityContainer
abilities in interface AbilityContainerpublic java.util.Enumeration<Ability> allAbilities()
AbilityContainer
allAbilities in interface AbilityContainerpublic int numAllAbilities()
AbilityContainer
numAllAbilities in interface AbilityContainerpublic Ability fetchRandomAbility()
AbilityContainer
fetchRandomAbility in interface AbilityContainerAbilitypublic boolean isRacialAbility(java.lang.String abilityID)
MOB
isRacialAbility in interface MOBabilityID - the ability object to check for
public Ability fetchAbility(int index)
AbilityContainer
fetchAbility in interface AbilityContainerindex - the index of the Ability object to return
Abilitypublic Ability fetchAbility(java.lang.String ID)
AbilityContainer
fetchAbility in interface AbilityContainerID - the ID of the ability to return.
Abilitypublic Ability findAbility(java.lang.String ID)
MOB
findAbility in interface MOBID - the search string for the ability id, name, or whatever
protected 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 MOBMOB.setClan(String, int),
MOB.getClanRole(String)public Pair<Clan,java.lang.Integer> getClanRole(java.lang.String clanID)
MOB
getClanRole in interface MOBclanID - the clan name/id
MOB.clans(),
MOB.setClan(String, int)
public void setClan(java.lang.String clanID,
int role)
MOB
setClan in interface MOBclanID - 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 Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void addPriorityEffect(Ability to)
MOB
addPriorityEffect in interface MOBto - the Ability to add as an effectMOB.numAllEffects(),
MOB.personalEffects(),
Ability,
Affectable.addEffect(Ability)public void addEffect(Ability to)
Affectable
addEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void delEffect(Ability to)
Affectable
delEffect in interface Affectableto - The ability object to remove as an effect on this objectAbility,
Affectable.recoverPhyStats()public void eachEffect(EachApplicable<Ability> applier)
Affectable
eachEffect in interface Affectableapplier - code to execute against each objectpublic void delAllEffects(boolean unInvoke)
Affectable
delAllEffects in interface AffectableunInvoke - send true to uninvoke before deletingpublic int numAllEffects()
MOB
numAllEffects in interface MOBMOB.addPriorityEffect(Ability),
MOB.personalEffects(),
Affectable.numEffects()public int numEffects()
Affectable
numEffects in interface AffectableAbilitypublic Ability fetchEffect(int index)
Affectable
fetchEffect in interface Affectableindex - which object to return
Ability,
Affectable.numEffects()public Ability fetchEffect(java.lang.String ID)
Affectable
fetchEffect in interface AffectableID - the Ability ID to look for in effects
Ability,
CMObject.ID()public java.util.Enumeration<Ability> personalEffects()
MOB
personalEffects in interface MOBMOB.numAllEffects(),
MOB.addPriorityEffect(Ability),
Ability,
Affectable.effects()public java.util.Enumeration<Ability> effects()
Affectable
effects in interface AffectableAbilitypublic void addBehavior(Behavior to)
addBehavior in interface Behavableto - The behavior object to add.Behavior,
Affectable.recoverPhyStats()public void delBehavior(Behavior to)
Behavable
delBehavior in interface Behavableto - The behavior object to remove.Behavior,
Affectable.recoverPhyStats()public void delAllBehaviors()
Behavable
delAllBehaviors in interface Behavablepublic int numBehaviors()
Behavable
numBehaviors in interface BehavableBehaviorpublic java.util.Enumeration<Behavior> behaviors()
Behavable
behaviors in interface BehavableBehaviorpublic Behavior fetchBehavior(int index)
Behavable
fetchBehavior in interface Behavableindex - which object to return
Behavior,
Behavable.numBehaviors()public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior in interface BehavableID - the Behavior ID to look for
Behavior,
CMObject.ID()public void eachBehavior(EachApplicable<Behavior> applier)
Behavable
eachBehavior in interface Behavableapplier - code to execute against each objectpublic int[][] getAbilityUsageCache(java.lang.String abilityID)
MOB
getAbilityUsageCache in interface MOBabilityID - the specific Ability ID() to get the cache for
Ability.CACHEINDEX_TOTALpublic void addExpertise(java.lang.String code)
MOB
addExpertise 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)
MOB
delExpertise 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)
MOB
fetchExpertise in interface MOBbaseCode - the expertise code
MOB.delAllExpertises(),
MOB.expertises(),
MOB.delExpertise(String),
MOB.addExpertise(String)public void delAllExpertises()
MOB
delAllExpertises in interface MOBMOB.fetchExpertise(String),
MOB.expertises(),
MOB.delExpertise(String),
MOB.addExpertise(String)public java.util.Enumeration<java.lang.String> expertises()
MOB
expertises 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)
Behavable
delScript in interface BehavableS - the specific scripting engine to removeScriptingEnginepublic void delAllScripts()
Behavable
delAllScripts in interface Behavablepublic int numScripts()
Behavable
numScripts in interface Behavablepublic java.util.Enumeration<ScriptingEngine> scripts()
Behavable
scripts in interface BehavableScriptingEnginepublic ScriptingEngine fetchScript(int x)
Behavable
fetchScript in interface Behavablex - which script to return
ScriptingEnginepublic void eachScript(EachApplicable<ScriptingEngine> applier)
Behavable
eachScript 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)
Tattooable
addTattoo in interface Tattooableof - the permanent tattoo name to addtickDown - the ticks of life for this tattooTattooable,
Tattooable.addTattoo(String),
Tattooable.addTattoo(Tattoo)public void delTattoo(java.lang.String of)
Tattooable
delTattoo in interface Tattooableof - the tattoo name of the tattoo to removeTattooable,
Tattooable.delTattoo(Tattoo)public void addTattoo(Tattoo of)
Tattooable
addTattoo in interface Tattooableof - the tattoo object to addTattooable,
Tattooable.addTattoo(String, int),
Tattooable.addTattoo(String)public void delTattoo(Tattoo of)
Tattooable
delTattoo in interface Tattooableof - the tattoo object to removeTattooable,
Tattooable.delTattoo(String)public java.util.Enumeration<Tattoo> tattoos()
Tattooable
tattoos in interface TattooableTattooablepublic Tattoo findTattoo(java.lang.String of)
Tattooable
findTattoo in interface Tattooableof - the marker name to return a tattoo for
Tattooable,
Tattooable.findTattooStartsWith(String)public Tattoo findTattooStartsWith(java.lang.String of)
Tattooable
findTattooStartsWith in interface Tattooableof - the marker name to return a tattoo starter for
Tattooable,
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 factionFactionMember
public void adjustFaction(java.lang.String which,
int amount)
FactionMember
adjustFaction 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()
FactionMember
factions in interface FactionMemberFactionMemberpublic int fetchFaction(java.lang.String which)
FactionMember
fetchFaction in interface FactionMemberwhich - the faction id to return rank/value in
FactionMemberpublic Faction.FData fetchFactionData(java.lang.String which)
FactionMember
fetchFactionData in interface FactionMemberwhich - the faction id to return rank/value in
Faction.FDatapublic void removeFaction(java.lang.String which)
FactionMember
removeFaction in interface FactionMemberwhich - the faction id to removeFactionMemberpublic void copyFactions(FactionMember source)
FactionMember
copyFactions in interface FactionMembersource - the source of the factions to copyFactionMemberpublic boolean hasFaction(java.lang.String which)
FactionMember
hasFaction in interface FactionMemberwhich - the faction id to search for
FactionMemberpublic java.util.List<java.lang.String> fetchFactionRanges()
FactionMember
fetchFactionRanges in interface FactionMemberFactionMember
public int freeWearPositions(long wornCode,
short belowLayer,
short layerAttributes)
MOB
freeWearPositions 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 works
Wearable.WORN_HEAD,
Armor.LAYERMASK_MULTIWEAR,
MOB.getWearPositions(long)public int getWearPositions(long wornCode)
MOB
getWearPositions in interface MOBwornCode - the worn location to look in
Wearable.WORN_HEAD,
MOB.freeWearPositions(long, short, short)
public java.util.List<Item> fetchWornItems(long wornCode,
short aboveOrAroundLayer,
short layerAttributes)
MOB
fetchWornItems 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 attributes
Wearable.WORN_HEAD,
Armor.LAYERMASK_MULTIWEAR,
MOB.fetchItem(Item, Filterer, String),
MOB.fetchWieldedItem(),
MOB.fetchFirstWornItem(long)public boolean hasOnlyGoldInInventory()
MOB
hasOnlyGoldInInventory in interface MOBpublic Item fetchFirstWornItem(long wornCode)
MOB
fetchFirstWornItem in interface MOBwornCode - the worn_ code
Wearable.WORN_HEAD,
MOB.fetchItem(Item, Filterer, String),
MOB.fetchFirstWornItem(long),
MOB.fetchWieldedItem()public Item fetchWieldedItem()
MOB
fetchWieldedItem in interface MOBMOB.fetchFirstWornItem(long),
MOB.fetchWornItems(long, short, short),
MOB.fetchHeldItem()public Item fetchHeldItem()
MOB
fetchHeldItem in interface MOBMOB.fetchFirstWornItem(long),
MOB.fetchWornItems(long, short, short),
MOB.fetchWieldedItem()public boolean isMine(Environmental env)
MOB
isMine in interface MOBenv - the mob, item, or Ability to look for
public void moveItemTo(Item container,
ItemPossessor.Expire expire,
ItemPossessor.Move... moveFlags)
ItemPossessor
moveItemTo in interface ItemPossessorcontainer - the item to addexpire - the expiration codemoveFlags - any flags related to the moveItemPossessor.Expirepublic void moveItemTo(Item container)
ItemPossessor
moveItemTo in interface ItemPossessorcontainer - the item to addItemPossessor.Expire
public java.lang.String L(java.lang.String str,
java.lang.String... xs)
Environmental
L in interface Environmentalstr - the string to translatexs - the array of variables to replace
Call 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 Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code,
java.lang.String val)
Modifiable
setStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public int getSaveStatIndex()
Modifiable
getSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
Modifiable
getStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public boolean isStat(java.lang.String code)
Modifiable
isStat in interface Modifiablecode - 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 EnvironmentalE - the object to compare this one to
Modifiable.getStatCodes(),
Modifiable.getStat(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||