AbilityContainer
, Affectable
, Behavable
, java.lang.Cloneable
, CMObject
, Combatant
, java.lang.Comparable<CMObject>
, Contingent
, DBIdentifiable
, Environmental
, Expireable
, FactionMember
, Followable<MOB>
, ItemCollection
, ItemPossessor
, Modifiable
, MsgListener
, MUDCmdProcessor
, Physical
, PhysicalAgent
, Rider
, StatsAffecting
, Tattooable
, Tickable
Deity
Alligator
, AngryCitizen
, Ape
, Assassin
, Beaver
, Bee
, BlackBear
, BlackDragon
, BlueDragon
, BrassDragon
, BronzeDragon
, BrownBear
, BrownSnake
, Buck
, Buffalo
, Bugbear
, Bull
, Cat
, Centaur
, Centipede
, Cheetah
, Chicken
, Chimp
, Citizen
, Cobra
, CombatDummy
, CommonBat
, CopperDragon
, Cougar
, Cow
, Coyote
, Crocodile
, Deer
, DireWolf
, Doe
, Dog
, Dolphin
, Doppleganger
, Dragon
, DrowElf
, DrowPriestess
, DrowWarrior
, DrowWizard
, Duck
, Elephant
, Falcon
, FireGiant
, FlyingInsect
, Fox
, Frog
, FrostGiant
, GardenSnake
, GenAuctioneer
, GenBanker
, GenCow
, GenDeity
, GenHorse
, GenLibrarian
, GenMob
, GenPostman
, GenRideable
, GenRideableUndead
, GenShopkeeper
, GenUndead
, GiantBat
, GiantScorpion
, Gnoll
, Goat
, GoatDoe
, Goblin
, GoldDragon
, Gorilla
, GreenDragon
, Hawk
, HeavenlyServent
, HillGiant
, Hornet
, Horse
, InvisibleStalker
, Jaguar
, Kitten
, LargeBat
, Lion
, Lizard
, LizardMan
, LizardManShaman
, Minotaur
, Monkey
, MountainLion
, Mouse
, Naga
, Ogre
, Orc
, Owl
, Panther
, Parakeet
, Pegasus
, PegasusGreater
, Penguin
, Pig
, Puppy
, Python
, Rabbit
, Rat
, Rattlesnake
, Raven
, RedDragon
, Rooster
, Scorpion
, Seal
, Shark
, Sheep
, SilverDragon
, Skeleton
, Snake
, Spider
, Squirrel
, StdAuctioneer
, StdBanker
, StdDeity
, StdFactoryMOB
, StdLibrarian
, StdMOB
, StdMobWrapper
, StdPostman
, StdRideable
, StdRideableWrapper
, StdShopKeeper
, StoneGiant
, StoneGolem
, Swordfish
, Teacher
, Tiger
, Toad
, Troll
, Turtle
, UmberHulk
, Undead
, Vulture
, Walrus
, Whale
, WhiteBear
, WhiteDragon
, WildEagle
, Wolf
, Wolverine
, Worm
, Wyvern
, Zombie
public interface MOB extends Rider, DBIdentifiable, PhysicalAgent, ItemPossessor, AbilityContainer, Tattooable, FactionMember, MUDCmdProcessor, Followable<MOB>, Combatant
Modifier and Type | Interface | Description |
---|---|---|
static class |
MOB.Attrib |
Enum for the MOB Attributes, which will also return
whether the attribute is intuitively reversed (so
Setting turns it off instead of on) and a longer
description string.
|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move
Modifier and Type | Field | Description |
---|---|---|
static long |
AGE_MILLIS_THRESHOLD |
|
static long |
END_SHEATH_TIME |
The number of ticks out of combat this mob will try to sheath their weapon, assuming
the appropriate attribute is set.
|
static long |
START_SHEATH_TIME |
The number of ticks out of combat this mob should be before trying to sheath their weapon, assuming
the appropriate attribute is set.
|
idConverter
METAFLAG_AS, METAFLAG_ASMESSAGE, METAFLAG_FORCED, METAFLAG_INORDER, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_QUIETLY, METAFLAG_REVERSED, METAFLAG_SNOOPED
Modifier and Type | Method | Description |
---|---|---|
void |
addExpertise(java.lang.String code) |
Adds a new expertise, or updates an existing one.
|
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.
|
boolean |
amActive() |
Returns whether this mob has been removed from the game.
|
CharStats |
baseCharStats() |
Gets the Base CharStats object for this mob, which are the stats like saves and strength.
|
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.
|
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.
|
CharStats |
charStats() |
Gets the Current CharStats object for this mob, which are the stats like saves and strength.
|
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.
|
CharState |
curState() |
Gets the Current CharState object for this mob, which are the temp stats like health and mana.
|
void |
delAllExpertises() |
Deletes all expertises from the collection
|
void |
delExpertise(java.lang.String baseCode) |
Deletes an expertise.
|
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.
|
java.util.Enumeration<java.lang.String> |
expertises() |
Returns an enumerator of all the expertise names
with their numbers if any .
|
Pair<java.lang.String,java.lang.Integer> |
fetchExpertise(java.lang.String code) |
Returns the expertise and number for the given code.
|
Item |
fetchFirstWornItem(long wornCode) |
Returns the first item encountered on this player/mob at the given worn code, or
null if nothing found.
|
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.
|
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 name) |
Returns the best match ability/skill/spell of this mob to the given search
name string.
|
void |
flagVariableEq() |
Flags this mob as having their base inventory / shop inventory reconstructed from
the database.
|
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.
|
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.
|
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 |
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.
|
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.
|
Room |
getStartRoom() |
Gets the stored Start Room for this mob.
|
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 |
hasOnlyGoldInInventory() |
Returns whether this mob is only carrying money, meaning their main inventory
is essentially empty.
|
boolean |
isAttributeSet(MOB.Attrib attrib) |
Returns whether the given attribute is set.
|
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.
|
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.
|
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.
|
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.
|
CharState |
maxState() |
Gets the Max CharState object for this mob, which are the stats like health and mana.
|
int |
numAllEffects() |
Returns the total number of effects this mob/player is under, including
Racial and Clan effects.
|
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.
|
PlayerStats |
playerStats() |
Returns the PlayerStats object for this mob.
|
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 |
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.
|
Session |
session() |
Returns any Telnet Session object attached to this mob.
|
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 |
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 |
setExperience(int newVal) |
Sets the total number of experience points earned by this mob.
|
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 |
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 |
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 |
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 newRoom) |
Sets the stored Start Room for this mob.
|
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.
|
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 |
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.
|
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.
|
abilities, addAbility, allAbilities, delAbility, delAllAbilities, fetchAbility, fetchAbility, fetchRandomAbility, numAbilities, numAllAbilities
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
copyOf, ID, initializeClass, newInstance
amDead, getCombatant, getDirectionToTarget, healthText, isInCombat, killMeDead, makePeace, mayIFight, mayPhysicallyAttack, rangeToTarget, setCombatant, setRangeToTarget
canSaveDatabaseID, databaseID, setDatabaseID
addFaction, adjustFaction, copyFactions, factions, fetchFaction, fetchFactionData, fetchFactionRanges, getFactionListing, hasFaction, removeFaction
addFollower, amFollowing, amUltimatelyFollowing, delFollower, fetchFollower, fetchFollower, fetchFollowerOrder, followers, getGroupMembers, getGroupMembersAndRideables, isFollowedBy, numFollowers, setFollowing, totalFollowers
addItem, delAllItems, delItem, eachItem, findItem, findItem, findItems, findItems, getItem, getRandomItem, isContent, items, numItems
addItem, getContextName, moveItemTo, moveItemTo
actions, clearCommandQueue, commandQueSize, dequeCommand, doCommand, enqueCommand, enqueCommands, getTopCommand, prequeCommand, prequeCommands, setActions
addTattoo, addTattoo, addTattoo, delTattoo, delTattoo, findTattoo, findTattooStartsWith, tattoos
static final long AGE_MILLIS_THRESHOLD
static final long START_SHEATH_TIME
static final long END_SHEATH_TIME
int getAttributesBitmap()
MOB.Attrib
,
setAttributesBitmap(int)
void setAttributesBitmap(int bitmap)
bitmap
- the raw numeric attributes bitmapMOB.Attrib
,
getAttributesBitmap()
void setAttribute(MOB.Attrib attrib, boolean set)
attrib
- the attribute to set or clearset
- true to set it, false to clear itisAttributeSet(Attrib)
boolean isAttributeSet(MOB.Attrib attrib)
attrib
- the attribute to checksetAttribute(Attrib, boolean)
java.lang.String titledName()
Environmental.Name()
,
Tickable.name()
java.lang.String titledName(MOB viewer)
viewer
- the person viewingEnvironmental.Name()
,
Tickable.name()
boolean isPlayer()
isMonster()
,
playerStats()
PlayerStats playerStats()
setPlayerStats(PlayerStats)
,
PlayerStats
void setPlayerStats(PlayerStats newStats)
newStats
- the PlayerStats object or null for an NPCplayerStats()
,
PlayerStats
CharStats baseCharStats()
charStats()
,
recoverCharStats()
,
setBaseCharStats(CharStats)
CharStats charStats()
baseCharStats()
,
recoverCharStats()
,
setBaseCharStats(CharStats)
void recoverCharStats()
baseCharStats()
,
charStats()
,
setBaseCharStats(CharStats)
Triggerer triggerer()
Triggerer
,
setTriggerer(Triggerer)
void setTriggerer(Triggerer triggerer)
triggerer
- the Triggerer for this mob.Triggerer
,
triggerer()
void setBaseCharStats(CharStats newBaseCharStats)
newBaseCharStats
- the CharStats object for this mobcharStats()
,
baseCharStats()
,
setBaseCharStats(CharStats)
int maxCarry()
maxItems()
int maxItems()
maxCarry()
int baseWeight()
void bringToLife(Room newLocation, boolean resetStats)
newLocation
- the room to bring the mob to life inresetStats
- true to bring all char state stats to maxbringToLife()
,
Combatant.killMeDead(boolean)
,
removeFromGame(boolean, boolean)
void bringToLife()
void removeFromGame(boolean preserveFollowers, boolean killSession)
preserveFollowers
- true to copy the followers overkillSession
- true to end the session connected to this mob, if anybringToLife(Room, boolean)
,
Combatant.killMeDead(boolean)
,
amActive()
boolean amActive()
bringToLife(Room, boolean)
,
Combatant.killMeDead(boolean)
,
removeFromGame(boolean, boolean)
MOB getVictim()
Combatant.isInCombat()
,
setVictim(MOB)
,
Combatant.makePeace(boolean)
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
void setVictim(MOB other)
other
- the combat target, or null for a peace stateCombatant.isInCombat()
,
getVictim()
,
Combatant.makePeace(boolean)
,
Combatant.setRangeToTarget(int)
,
Combatant.mayIFight(PhysicalAgent)
void tell(MOB source, Environmental target, Environmental tool, java.lang.String msg)
source
- the <S-NAME> source/agent of the message or nulltarget
- the <T-NAME> target of the message or nulltool
- the <O-NAME> tool of the message or nullmsg
- the string message with naming tagstell(String)
void tell(java.lang.String msg)
msg
- the string message to send to the session.tell(MOB, Environmental, Environmental, String)
Session session()
setSession(Session)
,
isMonster()
,
isPossessing()
,
soulMate()
void setSession(Session newSession)
newSession
- the Telnet Session attached to this mobsession()
,
isMonster()
,
isPossessing()
,
soulMate()
boolean isMonster()
session()
,
setSession(Session)
,
isPossessing()
,
soulMate()
boolean isPossessing()
session()
,
setSession(Session)
,
soulMate()
,
dispossess(boolean)
MOB soulMate()
session()
,
isPossessing()
,
setSoulMate(MOB)
,
dispossess(boolean)
void setSoulMate(MOB mob)
mob
- the mob that is possessing this mobsession()
,
isPossessing()
,
soulMate()
,
dispossess(boolean)
void dispossess(boolean forceLook)
forceLook
- true to force the player to Look afterwardssession()
,
isPossessing()
,
soulMate()
,
setSoulMate(MOB)
int getExperience()
setExperience(int)
,
getExpNextLevel()
,
getExpNeededDelevel()
,
getExpNeededLevel()
,
getExpPrevLevel()
void setExperience(int newVal)
newVal
- the total number of experience points earned by this mob.getExperience()
,
getExpNextLevel()
,
getExpNeededDelevel()
,
getExpNeededLevel()
,
getExpPrevLevel()
long getPeaceTime()
int getExpNextLevel()
getExperience()
,
setExperience(int)
,
getExpNeededDelevel()
,
getExpNeededLevel()
,
getExpPrevLevel()
int getExpNeededLevel()
getExperience()
,
getExpNextLevel()
,
getExpNeededDelevel()
,
setExperience(int)
,
getExpPrevLevel()
int getExpNeededDelevel()
getExperience()
,
getExpNextLevel()
,
setExperience(int)
,
getExpNeededLevel()
,
getExpPrevLevel()
int getExpPrevLevel()
long getAgeMinutes()
setAgeMinutes(long)
void setAgeMinutes(long newVal)
newVal
- the total number of rl minutes this player has ever played.getAgeMinutes()
int getPractices()
setPractices(int)
void setPractices(int newVal)
newVal
- the number of practice points this mob hasgetPractices()
int getTrains()
setTrains(int)
void setTrains(int newVal)
newVal
- the number of training sessions this mob hasgetTrains()
int getMoney()
setMoney(int)
,
getMoneyVariation()
,
setMoneyVariation(double)
void setMoney(int newVal)
newVal
- the mob npc moneygetMoney()
,
getMoneyVariation()
,
setMoneyVariation(double)
double getMoneyVariation()
getMoney()
,
setMoney(int)
,
setMoneyVariation(double)
void setMoneyVariation(double newVal)
newVal
- the amount of money to vary for looting moneygetMoney()
,
getMoneyVariation()
,
setMoneyVariation(double)
CharState baseState()
CharState
,
setBaseState(CharState)
,
curState()
,
maxState()
,
recoverMaxState()
,
resetToMaxState()
void setBaseState(CharState newState)
newState
- the base CharState object for this mobCharState
,
baseState()
,
curState()
,
maxState()
,
recoverMaxState()
,
resetToMaxState()
CharState curState()
CharState
,
setBaseState(CharState)
,
baseState()
,
maxState()
,
recoverMaxState()
,
resetToMaxState()
CharState maxState()
CharState
,
setBaseState(CharState)
,
curState()
,
baseState()
,
recoverMaxState()
,
resetToMaxState()
void recoverMaxState()
setBaseState(CharState)
,
curState()
,
baseState()
,
maxState()
,
resetToMaxState()
void resetToMaxState()
setBaseState(CharState)
,
curState()
,
baseState()
,
maxState()
,
recoverMaxState()
Weapon getNaturalWeapon()
java.lang.String getLiegeID()
setLiegeID(String)
,
isMarriedToLiege()
void setLiegeID(java.lang.String newVal)
newVal
- the name of the player to which this mob owes loyaltygetLiegeID()
,
isMarriedToLiege()
boolean isMarriedToLiege()
getLiegeID()
,
setLiegeID(String)
int getWimpHitPoint()
setWimpHitPoint(int)
void setWimpHitPoint(int newVal)
newVal
- the wimpy hit point numbergetWimpHitPoint()
int getQuestPoint()
setQuestPoint(int)
void setQuestPoint(int newVal)
newVal
- the number of quest points that this mob has earned.getQuestPoint()
long lastTickedDateTime()
java.lang.Iterable<Pair<Clan,java.lang.Integer>> clans()
setClan(String, int)
,
getClanRole(String)
Pair<Clan,java.lang.Integer> getClanRole(java.lang.String clanID)
clanID
- the clan name/idclans()
,
setClan(String, int)
void setClan(java.lang.String clanID, int role)
clanID
- the clanID/namerole
- the rank/role of this player in the clanclans()
,
getClanRole(String)
Room getStartRoom()
setStartRoom(Room)
void setStartRoom(Room newRoom)
newRoom
- the stored Start Room for this mobgetStartRoom()
Room location()
setLocation(Room)
,
Room.isInhabitant(MOB)
void setLocation(Room newRoom)
newRoom
- the room in which this mob/player is currently standinglocation()
,
Room.isInhabitant(MOB)
void flagVariableEq()
Item fetchItem(Item goodLocation, Filterer<Environmental> filter, java.lang.String itemName)
goodLocation
- the container to look in, or null for uncontainedfilter
- the wearable filter to useitemName
- the name, id, or display text, or keyboard for the item to find.Wearable.FILTER_WORNONLY
,
fetchWornItems(long, short, short)
,
fetchWieldedItem()
java.util.List<Item> fetchWornItems(long wornCode, short aboveOrAroundLayer, short layerAttributes)
wornCode
- the specific worn code to loook for worn itemsaboveOrAroundLayer
- -2048 will grab everything, and > 0 are higher layerslayerAttributes
- 0 will grab everything, or one of the layer attributesWearable.WORN_HEAD
,
Armor.LAYERMASK_MULTIWEAR
,
fetchItem(Item, Filterer, String)
,
fetchWieldedItem()
,
fetchFirstWornItem(long)
Item fetchFirstWornItem(long wornCode)
wornCode
- the worn_ codeWearable.WORN_HEAD
,
fetchItem(Item, Filterer, String)
,
fetchFirstWornItem(long)
,
fetchWieldedItem()
Item fetchWieldedItem()
fetchFirstWornItem(long)
,
fetchWornItems(long, short, short)
,
fetchHeldItem()
Item fetchHeldItem()
fetchFirstWornItem(long)
,
fetchWornItems(long, short, short)
,
fetchWieldedItem()
boolean hasOnlyGoldInInventory()
int freeWearPositions(long wornCode, short belowLayer, short layerAttributes)
wornCode
- the worn location to look for a free spot inbelowLayer
- the layer at or below which you need a spot -- 0 workslayerAttributes
- the layer attributes to check, again, 0 worksWearable.WORN_HEAD
,
Armor.LAYERMASK_MULTIWEAR
,
getWearPositions(long)
int getWearPositions(long wornCode)
wornCode
- the worn location to look inWearable.WORN_HEAD
,
freeWearPositions(long, short, short)
boolean isMine(Environmental env)
env
- the mob, item, or Ability to look forint numAllEffects()
addPriorityEffect(Ability)
,
personalEffects()
,
Affectable.numEffects()
void addPriorityEffect(Ability to)
to
- the Ability to add as an effectnumAllEffects()
,
personalEffects()
,
Ability
,
Affectable.addEffect(Ability)
java.util.Enumeration<Ability> personalEffects()
numAllEffects()
,
addPriorityEffect(Ability)
,
Ability
,
Affectable.effects()
java.util.Set<MOB> getRideBuddies(java.util.Set<MOB> list)
boolean willFollowOrdersOf(MOB mob)
mob
- the mob to check to see if he's the leaderint maxFollowers()
Followable
Ability findAbility(java.lang.String name)
name
- the search string for the ability id, name, or whateverint[][] getAbilityUsageCache(java.lang.String abilityID)
abilityID
- the specific Ability ID() to get the cache forAbility.CACHEINDEX_TOTAL
boolean isRacialAbility(java.lang.String abilityID)
abilityID
- the ability object to check forvoid addExpertise(java.lang.String code)
code
- the expertise to add or updatefetchExpertise(String)
,
expertises()
,
delAllExpertises()
,
delExpertise(String)
void delExpertise(java.lang.String baseCode)
baseCode
- the expertise codefetchExpertise(String)
,
expertises()
,
delAllExpertises()
,
addExpertise(String)
Pair<java.lang.String,java.lang.Integer> fetchExpertise(java.lang.String code)
code
- the expertise codedelAllExpertises()
,
expertises()
,
delExpertise(String)
,
addExpertise(String)
void delAllExpertises()
java.util.Enumeration<java.lang.String> expertises()
delAllExpertises()
,
fetchExpertise(String)
,
delExpertise(String)
,
addExpertise(String)