CMObject
, Tickable
, CMLibrary
, CommonCommands
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class CommonMsgs extends StdLibrary implements CommonCommands
CommonCommands.LookView
Modifier and Type | Field | Description |
---|---|---|
protected Ability |
awarenessA |
|
protected java.util.List<java.lang.ref.WeakReference<MsgMonitor>> |
globalMonitors |
|
protected MOB |
nonClanTalkerM |
|
protected Room |
talkLocationR |
idConverter
isDebugging, name, serviceClient, tickStatus
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Constructor | Description |
---|---|
CommonMsgs() |
Modifier and Type | Method | Description |
---|---|---|
void |
addGlobalMonitor(MsgMonitor M) |
Adds a new listener to global messages.
|
void |
delGlobalMonitor(MsgMonitor M) |
Removes a listener to global messages.
|
protected java.lang.String |
dispossessionTimeLeftString(Item item) |
|
java.lang.Object |
forceInternalCommand(MOB mob,
java.lang.String command,
java.lang.Object... parms) |
This method does a forced internal execute of a specific command with the
given parameters.
|
boolean |
forceStandardCommand(MOB mob,
java.lang.String command,
java.util.List<java.lang.String> parms) |
This method does a forced execution of a normal command using the
normal channels used by players.
|
protected boolean |
forceStandardCommand(MOB mob,
java.lang.String command,
java.util.List<java.lang.String> parms,
boolean quietly) |
|
java.lang.StringBuilder |
getEquipment(MOB viewer,
MOB mob) |
Builds a string list of the things the given mob is
wearing.
|
java.lang.StringBuilder |
getEquipmentLong(MOB viewer,
MOB mob) |
Builds a string list of the things the given mob is
wearing, in long view, which includes wear slots.
|
java.lang.String |
getExamineItemString(MOB mob,
Item item) |
This method builds a string of the things a mob knows about
an item from taking a good hard longlook at it.
|
protected java.lang.String |
getFollowAddendum(Followable iF) |
|
java.lang.String |
getFullRoomView(MOB mob,
Room room,
CommonCommands.LookView lookCode,
boolean doMXP) |
Builds the complete room view for the given mob.
|
java.lang.StringBuilder |
getInventory(MOB viewer,
MOB mob) |
Builds a string list of the things the given viewer can
see in the given mobs inventory.
|
protected java.lang.String |
getRiderAddendum(Rider iR) |
|
java.lang.StringBuilder |
getScore(MOB mob) |
Builds the standard SCORE command response.
|
protected void |
gmcpSaySend(java.lang.String sayName,
MOB mob,
MOB target,
CMMsg msg) |
|
void |
handleBeingDropped(CMMsg msg) |
Handler function for when a mob drops an item
|
protected void |
handleBeingExitLookedAt(CMMsg msg) |
|
void |
handleBeingGetted(CMMsg msg) |
Handler function for when a mob gets an item
|
void |
handleBeingGivenTo(CMMsg msg) |
Handler function for when a mob is given an item
by another mob.
|
void |
handleBeingHeld(CMMsg msg) |
Handler function for when a mob holds an item.
|
protected void |
handleBeingItemLookedAt(CMMsg msg) |
|
protected void |
handleBeingItemSniffed(CMMsg msg) |
|
void |
handleBeingLookedAt(CMMsg msg) |
Handler function for when a mob looks at something, or
examines it closely.
|
protected void |
handleBeingMobLookedAt(CMMsg msg) |
|
void |
handleBeingMobSniffed(CMMsg msg) |
|
void |
handleBeingRead(CMMsg msg) |
Handler function for when a mob reads something
|
void |
handleBeingRemoved(CMMsg msg) |
Handler function for when a mob removes an item
|
protected void |
handleBeingRoomLookedAt(CMMsg msg) |
|
protected void |
handleBeingRoomSniffed(CMMsg msg) |
|
void |
handleBeingSniffed(CMMsg msg) |
Handler function for when a mob sniffs an item or
mob or room or something.
|
void |
handleBeingSpokenTo(MOB speaker,
MOB me,
java.lang.String msg) |
Handler function called when a mob is spoken to by another mob
with targeted speech.
|
void |
handleBeingWielded(CMMsg msg) |
Handler function for when a mob wields a weapon.
|
void |
handleBeingWorn(CMMsg msg) |
Handler function for when a mob wears an item
|
void |
handleComeToLife(MOB mob,
CMMsg msg) |
Handler function that is called when a mob enters the
game, either by logging in, or respawning, or remorting.
|
boolean |
handleCommandFail(MOB mob,
Environmental target,
Environmental tools,
java.util.List<java.lang.String> command,
java.lang.String msgStr) |
|
boolean |
handleCommandFail(MOB mob,
java.util.List<java.lang.String> commands,
java.lang.String msgStr) |
|
void |
handleHygienicMessage(CMMsg msg,
int minHygiene,
long adjHygiene) |
Handler function called when a mob does something that might affect their
hygiene, typically in a cleanly way.
|
void |
handleIntroductions(MOB speaker,
MOB me,
java.lang.String msg) |
Handler function called when a mob is spoken to by another mob in
the same room, and the introduction system is enabled.
|
void |
handleObserveComesToLife(MOB observer,
MOB lifer,
CMMsg msg) |
Handler function that is called when a mob observes another mob enter the
game, either by logging in, or respawning, or remorting.
|
void |
handleRecall(CMMsg msg) |
Handler function for when a mob recalls back to their beacon room
|
protected void |
handleRecall(MOB recallingMob,
Room recallingRoom,
Room recallToRoom) |
|
void |
handleSit(CMMsg msg) |
Handler function for when a mob sits down
|
void |
handleSleep(CMMsg msg) |
Handler function for when a mob goes to sleep
|
void |
handleStand(CMMsg msg) |
Handler function for when a mob stands up
|
boolean |
handleUnknownCommand(MOB mob,
java.util.List<java.lang.String> command) |
Handler-like function that is called whenever the given mob
enters a command that cannot be resolved to an actual mud
command, social, or skill.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
isHygienicMessage(CMMsg msg) |
Returns true if the given message reflects something that would improve
someone's hygiene, such as washing.
|
void |
lookAtExits(Room room,
MOB mob) |
Constructs a full table of the exits for the given room
and sends them as a tell message to the given mob.
|
void |
lookAtExitsShort(Room room,
MOB mob) |
Constructs an abbreviated list of the exits for the given room
and sends them as a tell message to the given mob.
|
java.lang.String |
makeContainerTypes(Container E) |
This method builds a string of the things a container
can contain..
|
void |
monitorGlobalMessage(Room room,
CMMsg msg) |
When a message is generated and sent anywhere in the mud, this
method is called to allow any global followers to inspect the
message and possibly react.
|
java.lang.String |
parseVaries(MOB mob,
Area area,
Room room,
java.lang.String text) |
Parse variable display and description texts to generate
the dynamic text seen in some rooms.
|
protected java.lang.String |
parseVariesCodes(MOB mob,
Area A,
Room room,
java.lang.String text) |
|
void |
postChannel(MOB mob,
java.lang.String channelName,
java.lang.String message,
boolean systemMsg) |
Method to post a chat message onto a channel from a specific mob.
|
void |
postChannel(java.lang.String channelName,
java.lang.Iterable<Pair<Clan,java.lang.Integer>> clanList,
java.lang.String message,
boolean systemMsg) |
Method to post an informational, system-generated message to a channel.
|
boolean |
postCommandFail(MOB mob,
Environmental target,
Environmental tools,
java.util.List<java.lang.String> command,
java.lang.String msgStr) |
Method called by the system when certain (but not all -- maybe someday) commands
fail because of syntax or bad arguments.
|
boolean |
postCommandFail(MOB mob,
java.util.List<java.lang.String> commands,
java.lang.String msgStr) |
Method called by the system when certain (but not all -- maybe someday) commands
fail because of syntax or bad arguments.
|
boolean |
postCommandRejection(MOB mob,
Environmental target,
Environmental tools,
java.util.List<java.lang.String> command) |
Method called when certain (but not all -- maybe someday) commands fail because of
a message rejection specifically.
|
boolean |
postCommandRejection(MOB mob,
java.util.List<java.lang.String> commands) |
Method called by the system when certain (but not all -- maybe someday) commands
fail because of a message rejection specifically.
|
void |
postDraw(MOB mob,
boolean doHold,
boolean ifNecessary) |
Shortcut method for making a mob draw their first available weapon
from a sheath.
|
boolean |
postDrop(MOB mob,
Environmental dropThis,
boolean quiet,
boolean optimized,
boolean intermediate) |
Shortcut method to make a mob drop an item onto the room.
|
void |
postFlee(MOB mob,
java.lang.String whereTo) |
Shortcut method for making a mob panic and flee the room.
|
void |
postFollow(MOB follower,
MOB leader,
boolean quiet) |
Shortcut method for making one mob attempt to follow another.
|
boolean |
postGet(MOB mob,
Item container,
Item getThis,
boolean quiet) |
Shortcut method for making a mob get something from the room, or
from a container.
|
boolean |
postGive(MOB mob,
MOB targetM,
Item giveThis,
boolean quiet) |
Shortcut method to make one mob given an item to another
|
void |
postLook(MOB mob,
boolean quiet) |
Shortcut method for making a mob look around the room
|
boolean |
postOpen(MOB mob,
Environmental openThis,
boolean quiet) |
Shortcut method to make a mob try to open something
|
boolean |
postPut(MOB mob,
Item container,
Item getThis,
boolean quiet) |
Shortcut method for making a mob put an item into a container.
|
void |
postRead(MOB mob,
Physical target,
java.lang.String readOff,
boolean quiet) |
Shortcut method for making a mob read something.
|
boolean |
postRemove(MOB mob,
Item item,
boolean quiet) |
Shortcut method to make a mob remove an item and put it
into their inventory.
|
void |
postSay(MOB mob,
MOB target,
java.lang.String text) |
Shortcut method for forcing the given mob to do the command:
sayto [target] [text]
|
void |
postSay(MOB mob,
MOB target,
java.lang.String text,
boolean isPrivate,
boolean tellFlag) |
Shortcut method for forcing the given mob to do the command:
tell [target] [text] ...
|
void |
postSay(MOB mob,
java.lang.String text) |
Shortcut method for forcing the given mob to do the command:
say [text]
|
void |
postSheath(MOB mob,
boolean ifPossible) |
Shortcut method for making a mob sheath a weapon into
an available sheath.
|
void |
postSleep(MOB mob) |
Shortcut method for making a mob lay down and go to sleep
|
void |
postStand(MOB mob,
boolean ifNecessary,
boolean quietly) |
Shortcut method for making a mob stand up.
|
boolean |
postWear(MOB mob,
Item item,
boolean quiet) |
Shortcut method to make a mob attempt to wear an item.
|
protected java.lang.String |
relativeCharStatTest(CharStats C,
MOB mob,
java.lang.String weakword,
java.lang.String strongword,
int stat) |
|
void |
tickAging(MOB mob,
long millisSinceLast) |
Adjusts the mobs age based on ellapsed time,
and checks for age related diseases and
wish someone a happy birthday.
|
int |
tickManaConsumption(MOB mob,
int manaConsumeCounter) |
An optional system that consumes mana based on
effects cast by the player.
|
java.lang.Object |
unforcedInternalCommand(MOB mob,
java.lang.String command,
java.lang.Object... parms) |
This method does a normal internal execute of a specific command with the
given parameters.
|
activate, getServiceClient, L, propertiesLoaded, shutdown
copyOf, initializeClass, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tick
protected final java.util.List<java.lang.ref.WeakReference<MsgMonitor>> globalMonitors
protected Ability awarenessA
protected MOB nonClanTalkerM
protected Room talkLocationR
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public boolean handleUnknownCommand(MOB mob, java.util.List<java.lang.String> command)
CommonCommands
handleUnknownCommand
in interface CommonCommands
mob
- the player who entered the bad commandcommand
- the parsed command as entered.public boolean handleCommandFail(MOB mob, java.util.List<java.lang.String> commands, java.lang.String msgStr)
public boolean handleCommandFail(MOB mob, Environmental target, Environmental tools, java.util.List<java.lang.String> command, java.lang.String msgStr)
public boolean postCommandFail(MOB mob, java.util.List<java.lang.String> commands, java.lang.String msgStr)
CommonCommands
postCommandFail
in interface CommonCommands
mob
- the mob who tried the commandcommands
- the command that was typed inmsgStr
- the message explaining the failure, using <S-NAME>, <T-NAME>, etc..public boolean postCommandFail(MOB mob, Environmental target, Environmental tools, java.util.List<java.lang.String> command, java.lang.String msgStr)
CommonCommands
postCommandFail
in interface CommonCommands
mob
- the mob who tried the commandtarget
- the target of the command, if applicable and identifiedtools
- the tool used by the command, if applicable and identifiedcommand
- the command that was typed inmsgStr
- the message explaining the failure, using <S-NAME>, <T-NAME>, etc..public boolean postCommandRejection(MOB mob, java.util.List<java.lang.String> commands)
CommonCommands
postCommandRejection
in interface CommonCommands
mob
- the mob who did the commandcommands
- the command string enteredpublic boolean postCommandRejection(MOB mob, Environmental target, Environmental tools, java.util.List<java.lang.String> command)
CommonCommands
postCommandRejection
in interface CommonCommands
mob
- the mob who did the commandtarget
- the target of the command, if applicabletools
- a tool used by the command, if applicablecommand
- the command string enteredpublic java.lang.Object unforcedInternalCommand(MOB mob, java.lang.String command, java.lang.Object... parms)
CommonCommands
unforcedInternalCommand
in interface CommonCommands
mob
- the mob to execute the commandcommand
- the command class ID() to executeparms
- the parameters required by the commands internal execute methodCommonCommands.forceInternalCommand(MOB, String, Object...)
,
CommonCommands.forceStandardCommand(MOB, String, List)
public java.lang.Object forceInternalCommand(MOB mob, java.lang.String command, java.lang.Object... parms)
CommonCommands
forceInternalCommand
in interface CommonCommands
mob
- the mob to execute the commandcommand
- the command class ID() to executeparms
- the parameters required by the commands internal execute methodCommonCommands.unforcedInternalCommand(MOB, String, Object...)
,
CommonCommands.forceStandardCommand(MOB, String, List)
protected boolean forceStandardCommand(MOB mob, java.lang.String command, java.util.List<java.lang.String> parms, boolean quietly)
public boolean forceStandardCommand(MOB mob, java.lang.String command, java.util.List<java.lang.String> parms)
CommonCommands
forceStandardCommand
in interface CommonCommands
mob
- the mob to execute the commandcommand
- the command ID() to executeparms
- the arguments to the command, including the command wordpublic void monitorGlobalMessage(Room room, CMMsg msg)
CommonCommands
monitorGlobalMessage
in interface CommonCommands
room
- the room in which the event occurredmsg
- the message sent to that room.CommonCommands.addGlobalMonitor(MsgMonitor)
,
CommonCommands.delGlobalMonitor(MsgMonitor)
public void addGlobalMonitor(MsgMonitor M)
CommonCommands
addGlobalMonitor
in interface CommonCommands
M
- the monitor object to call backMsgMonitor
,
CommonCommands.monitorGlobalMessage(Room, CMMsg)
,
CommonCommands.delGlobalMonitor(MsgMonitor)
public void delGlobalMonitor(MsgMonitor M)
CommonCommands
delGlobalMonitor
in interface CommonCommands
M
- the monitor object to call backMsgMonitor
,
CommonCommands.monitorGlobalMessage(Room, CMMsg)
,
CommonCommands.addGlobalMonitor(MsgMonitor)
public java.lang.StringBuilder getScore(MOB mob)
CommonCommands
getScore
in interface CommonCommands
mob
- the mob whose score to getpublic java.lang.StringBuilder getEquipment(MOB viewer, MOB mob)
CommonCommands
getEquipment
in interface CommonCommands
viewer
- the viewer of the worn stuffmob
- the mob wearing the stuffpublic java.lang.StringBuilder getEquipmentLong(MOB viewer, MOB mob)
CommonCommands
getEquipmentLong
in interface CommonCommands
viewer
- the viewer of the worn stuffmob
- the mob wearing the stuffpublic java.lang.StringBuilder getInventory(MOB viewer, MOB mob)
CommonCommands
getInventory
in interface CommonCommands
viewer
- the viewer of the inventorymob
- the mob whose inventory needs viewingpublic void postChannel(MOB mob, java.lang.String channelName, java.lang.String message, boolean systemMsg)
CommonCommands
postChannel
in interface CommonCommands
mob
- the mob to do the chattingchannelName
- the channel to chat onmessage
- the message to send to the channelsystemMsg
- true to format as a system message, false for a normal chat messagepublic void postChannel(java.lang.String channelName, java.lang.Iterable<Pair<Clan,java.lang.Integer>> clanList, java.lang.String message, boolean systemMsg)
CommonCommands
postChannel
in interface CommonCommands
channelName
- the name of the channel to post the message toclanList
- null normally, or a list of clans for possible focusmessage
- the message to send to the channelsystemMsg
- true to format as a system message, false for a normal chat messagepublic boolean postDrop(MOB mob, Environmental dropThis, boolean quiet, boolean optimized, boolean intermediate)
CommonCommands
postDrop
in interface CommonCommands
mob
- the mob to do the droppingdropThis
- the item to dropquiet
- true to do so without a visible room messageoptimized
- true if this is part of a mass-drop (no stat recalc)intermediate
- true if this is only the first part of a GIVEpublic boolean postGive(MOB mob, MOB targetM, Item giveThis, boolean quiet)
CommonCommands
postGive
in interface CommonCommands
mob
- the mob to do the givingtargetM
- the mob to do the receiving of the givinggiveThis
- the item to givequiet
- true to do so without a visible room messagepublic boolean postOpen(MOB mob, Environmental openThis, boolean quiet)
CommonCommands
postOpen
in interface CommonCommands
mob
- the mob to do the openingopenThis
- the item or exit to openquiet
- true to do so without a visible room messagepublic boolean postGet(MOB mob, Item container, Item getThis, boolean quiet)
CommonCommands
postGet
in interface CommonCommands
mob
- the mob to do the gettingcontainer
- the items current container, or nullgetThis
- the item to getquiet
- true to do so without a visible messagepublic boolean postPut(MOB mob, Item container, Item getThis, boolean quiet)
CommonCommands
postPut
in interface CommonCommands
mob
- the mob to do the puttingcontainer
- the target container to put something intogetThis
- the item to put into the containerquiet
- true to do so without a visible room messagepublic boolean postRemove(MOB mob, Item item, boolean quiet)
CommonCommands
postRemove
in interface CommonCommands
mob
- the mob to do the removingitem
- the item to be removedquiet
- true to do so without a visible messagepublic boolean postWear(MOB mob, Item item, boolean quiet)
CommonCommands
postWear
in interface CommonCommands
mob
- the mob to do the wearingitem
- the item to be wornquiet
- true to attempt without a visible messagepublic void postLook(MOB mob, boolean quiet)
CommonCommands
postLook
in interface CommonCommands
mob
- the mob to do the lookingquiet
- true to do so without a visible messagepublic void postRead(MOB mob, Physical target, java.lang.String readOff, boolean quiet)
CommonCommands
postRead
in interface CommonCommands
mob
- the mob to do the readingtarget
- the item to readreadOff
- read arguments, such as page or chapter number, or ""quiet
- true to do so without a room-visible messagepublic void postFlee(MOB mob, java.lang.String whereTo)
CommonCommands
postFlee
in interface CommonCommands
mob
- the mob to fleewhereTo
- NOWHERE or a direction in which to flee, or "" to random choosepublic void postSheath(MOB mob, boolean ifPossible)
CommonCommands
postSheath
in interface CommonCommands
mob
- the mob to sheath a weaponifPossible
- true to suppress errors or lack of weapon/sheathpublic void postDraw(MOB mob, boolean doHold, boolean ifNecessary)
CommonCommands
postDraw
in interface CommonCommands
mob
- the mob to draw the weapondoHold
- true to off-hand the weapon, false for main-handifNecessary
- if true, only do so if not currently wieldingpublic void postStand(MOB mob, boolean ifNecessary, boolean quietly)
CommonCommands
postStand
in interface CommonCommands
mob
- the mob to standifNecessary
- true if they should attempt only if not standingquietly
- true to do so without a visible messagepublic void postSleep(MOB mob)
CommonCommands
postSleep
in interface CommonCommands
mob
- the mob to sleeppublic void postFollow(MOB follower, MOB leader, boolean quiet)
CommonCommands
postFollow
in interface CommonCommands
follower
- the mob to do the followingleader
- the mob to be followedquiet
- true to do so without a visible messagepublic void postSay(MOB mob, MOB target, java.lang.String text)
CommonCommands
postSay
in interface CommonCommands
mob
- the mob to do the commandtarget
- the target being spoken totext
- the text to saypublic void postSay(MOB mob, java.lang.String text)
CommonCommands
postSay
in interface CommonCommands
mob
- the mob to do the commandtext
- the text to saypublic void postSay(MOB mob, MOB target, java.lang.String text, boolean isPrivate, boolean tellFlag)
CommonCommands
postSay
in interface CommonCommands
mob
- the speakertarget
- the target of the telltext
- the message to sayisPrivate
- true to TELL or private SAYTO, false to public SAYTOtellFlag
- true to TELL, false to private SAYTOpublic void handleBeingSniffed(CMMsg msg)
CommonCommands
handleBeingSniffed
in interface CommonCommands
msg
- the item sniffing messagepublic void handleBeingMobSniffed(CMMsg msg)
public void handleObserveComesToLife(MOB observer, MOB lifer, CMMsg msg)
CommonCommands
handleObserveComesToLife
in interface CommonCommands
observer
- the player or npc observing the life happeninglifer
- the player or npc coming to lifemsg
- the "come to life" messagepublic void handleComeToLife(MOB mob, CMMsg msg)
CommonCommands
handleComeToLife
in interface CommonCommands
mob
- the player or npc coming to lifemsg
- the "come to life" messagepublic void handleSit(CMMsg msg)
CommonCommands
handleSit
in interface CommonCommands
msg
- the sitting messagepublic void handleSleep(CMMsg msg)
CommonCommands
handleSleep
in interface CommonCommands
msg
- the sleeping messagepublic void handleStand(CMMsg msg)
CommonCommands
handleStand
in interface CommonCommands
msg
- the standing messagepublic void handleRecall(CMMsg msg)
CommonCommands
handleRecall
in interface CommonCommands
msg
- the recall messagepublic int tickManaConsumption(MOB mob, int manaConsumeCounter)
CommonCommands
tickManaConsumption
in interface CommonCommands
mob
- the mob to consume mana of.manaConsumeCounter
- internally manipulated counterpublic void tickAging(MOB mob, long millisSinceLast)
CommonCommands
tickAging
in interface CommonCommands
mob
- the mob to tickmillisSinceLast
- the ellapsed timeprotected java.lang.String relativeCharStatTest(CharStats C, MOB mob, java.lang.String weakword, java.lang.String strongword, int stat)
public void handleBeingLookedAt(CMMsg msg)
CommonCommands
handleBeingLookedAt
in interface CommonCommands
msg
- the looking or examining messagepublic java.lang.String makeContainerTypes(Container E)
CommonCommands
makeContainerTypes
in interface CommonCommands
E
- the container containing thingspublic java.lang.String getExamineItemString(MOB mob, Item item)
CommonCommands
getExamineItemString
in interface CommonCommands
mob
- the mob doing the lookingitem
- the item being looked atprotected java.lang.String dispossessionTimeLeftString(Item item)
protected java.lang.String getRiderAddendum(Rider iR)
protected java.lang.String getFollowAddendum(Followable iF)
protected void handleBeingItemLookedAt(CMMsg msg)
protected void handleBeingItemSniffed(CMMsg msg)
public void handleIntroductions(MOB speaker, MOB me, java.lang.String msg)
CommonCommands
handleIntroductions
in interface CommonCommands
speaker
- the mob speakingme
- the mob being spoken tomsg
- what the speaker saidpublic void handleBeingSpokenTo(MOB speaker, MOB me, java.lang.String msg)
CommonCommands
handleBeingSpokenTo
in interface CommonCommands
speaker
- the speaker mobme
- the mob being spoken tomsg
- the messageprotected void handleBeingRoomSniffed(CMMsg msg)
public java.lang.String getFullRoomView(MOB mob, Room room, CommonCommands.LookView lookCode, boolean doMXP)
CommonCommands
getFullRoomView
in interface CommonCommands
mob
- the player to view the roomroom
- the room to be viewedlookCode
- the look view code for viewing optionsdoMXP
- true to add MXP where neededprotected void handleBeingRoomLookedAt(CMMsg msg)
public boolean isHygienicMessage(CMMsg msg)
CommonCommands
isHygienicMessage
in interface CommonCommands
msg
- the message to examinepublic void handleHygienicMessage(CMMsg msg, int minHygiene, long adjHygiene)
CommonCommands
handleHygienicMessage
in interface CommonCommands
msg
- the message that triggered the hygiene efectminHygiene
- the smallest hygiene amount to consider the mob cleanadjHygiene
- the amount by which to adjust hygiene, usually +protected void handleBeingExitLookedAt(CMMsg msg)
protected void handleBeingMobLookedAt(CMMsg msg)
public void handleBeingGivenTo(CMMsg msg)
CommonCommands
handleBeingGivenTo
in interface CommonCommands
msg
- the item giving messagepublic void handleBeingRead(CMMsg msg)
CommonCommands
handleBeingRead
in interface CommonCommands
msg
- the reading messagepublic void handleBeingGetted(CMMsg msg)
CommonCommands
handleBeingGetted
in interface CommonCommands
msg
- the item getting messagepublic void handleBeingDropped(CMMsg msg)
CommonCommands
handleBeingDropped
in interface CommonCommands
msg
- the item removing messagepublic void handleBeingRemoved(CMMsg msg)
CommonCommands
handleBeingRemoved
in interface CommonCommands
msg
- the item removing messagepublic void handleBeingWorn(CMMsg msg)
CommonCommands
handleBeingWorn
in interface CommonCommands
msg
- the item wearing messagepublic void handleBeingWielded(CMMsg msg)
CommonCommands
handleBeingWielded
in interface CommonCommands
msg
- the item wielding messagepublic void handleBeingHeld(CMMsg msg)
CommonCommands
handleBeingHeld
in interface CommonCommands
msg
- the item holding messagepublic void lookAtExits(Room room, MOB mob)
CommonCommands
lookAtExits
in interface CommonCommands
room
- the room to find exits inmob
- the mob to tell about those exitsCommonCommands.lookAtExitsShort(Room, MOB)
public void lookAtExitsShort(Room room, MOB mob)
CommonCommands
lookAtExitsShort
in interface CommonCommands
room
- the room to find exits inmob
- the mob to tell about those exitsCommonCommands.lookAtExits(Room, MOB)
protected java.lang.String parseVariesCodes(MOB mob, Area A, Room room, java.lang.String text)
public java.lang.String parseVaries(MOB mob, Area area, Room room, java.lang.String text)
CommonCommands
parseVaries
in interface CommonCommands
mob
- the mob who is lookingarea
- the area containing the mobroom
- the room containing the mobtext
- the raw variable text