com.planet_ink.coffee_mud.Libraries
Class CommonMsgs
java.lang.Object
com.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.CommonMsgs
- All Implemented Interfaces:
- CMObject, CMLibrary, CommonCommands, java.lang.Cloneable, java.lang.Comparable<CMObject>
public class CommonMsgs
- extends StdLibrary
- implements CommonCommands
|
Method Summary |
protected java.lang.String |
dispossessionTimeLeftString(Item item)
|
java.lang.String |
examineItemString(MOB mob,
Item item)
|
boolean |
forceStandardCommand(MOB mob,
java.lang.String command,
java.util.Vector parms)
|
java.lang.StringBuffer |
getEquipment(MOB viewer,
MOB mob)
|
java.lang.StringBuffer |
getInventory(MOB viewer,
MOB mob)
|
java.lang.StringBuffer |
getScore(MOB mob)
|
void |
handleBeingDropped(CMMsg msg)
|
protected void |
handleBeingExitLookedAt(CMMsg msg)
|
void |
handleBeingGetted(CMMsg msg)
|
void |
handleBeingGivenTo(CMMsg msg)
|
void |
handleBeingHeld(CMMsg msg)
|
protected void |
handleBeingItemLookedAt(CMMsg msg)
|
protected void |
handleBeingItemSniffed(CMMsg msg)
|
void |
handleBeingLookedAt(CMMsg msg)
|
protected void |
handleBeingMobLookedAt(CMMsg msg)
|
void |
handleBeingMobSniffed(CMMsg msg)
|
void |
handleBeingRead(CMMsg msg)
|
void |
handleBeingRemoved(CMMsg msg)
|
protected void |
handleBeingRoomLookedAt(CMMsg msg)
|
protected void |
handleBeingRoomSniffed(CMMsg msg)
|
void |
handleBeingSniffed(CMMsg msg)
|
void |
handleBeingWielded(CMMsg msg)
|
void |
handleBeingWorn(CMMsg msg)
|
void |
handleIntroductions(MOB speaker,
MOB me,
java.lang.String msg)
|
void |
handleRecall(CMMsg msg)
|
void |
handleSit(CMMsg msg)
|
void |
handleSleep(CMMsg msg)
|
void |
handleStand(CMMsg msg)
|
boolean |
handleUnknownCommand(MOB mob,
java.util.Vector command)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of
this object. |
void |
lookAtExits(Room room,
MOB mob)
|
void |
lookAtExitsShort(Room room,
MOB mob)
|
void |
postChannel(MOB mob,
java.lang.String channelName,
java.lang.String message,
boolean systemMsg)
|
void |
postChannel(java.lang.String channelName,
java.lang.String clanID,
java.lang.String message,
boolean systemMsg)
|
void |
postDraw(MOB mob,
boolean doHold,
boolean ifNecessary)
|
boolean |
postDrop(MOB mob,
Environmental dropThis,
boolean quiet,
boolean optimized)
|
void |
postFlee(MOB mob,
java.lang.String whereTo)
|
void |
postFollow(MOB follower,
MOB leader,
boolean quiet)
|
boolean |
postGet(MOB mob,
Item container,
Item getThis,
boolean quiet)
|
void |
postLook(MOB mob,
boolean quiet)
|
boolean |
postRemove(MOB mob,
Item item,
boolean quiet)
|
void |
postSay(MOB mob,
MOB target,
java.lang.String text)
|
void |
postSay(MOB mob,
MOB target,
java.lang.String text,
boolean isPrivate,
boolean tellFlag)
|
void |
postSay(MOB mob,
java.lang.String text)
|
void |
postSheath(MOB mob,
boolean ifPossible)
|
void |
postStand(MOB mob,
boolean ifNecessary)
|
protected java.lang.String |
relativeCharStatTest(CharStats C,
MOB mob,
java.lang.String weakword,
java.lang.String strongword,
int stat)
|
void |
tickAging(MOB mob)
|
int |
tickManaConsumption(MOB mob,
int manaConsumeCounter)
|
protected java.lang.String |
unknownCommand()
|
protected java.lang.String |
unknownInvoke()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
LOOK_LONG
protected static final int LOOK_LONG
- See Also:
- Constant Field Values
LOOK_NORMAL
protected static final int LOOK_NORMAL
- See Also:
- Constant Field Values
LOOK_BRIEFOK
protected static final int LOOK_BRIEFOK
- See Also:
- Constant Field Values
CommonMsgs
public CommonMsgs()
ID
public java.lang.String ID()
- Description copied from interface:
CMObject
- The CoffeeMud Java Class ID shared by all instances of
this object. Unlike the Java Class name, this method
does not include package information. However, it must
return a String value unique to its class category in
the ClassLoader. Class categories include Libraries, Common,
Areas, Abilities, Behaviors, CharClasses, Commands, Exits
Locales, MOBS, Races, WebMacros, Basic Items, Armor,
Weapons, ClanItems, MiscTech. The name is typically identical
to the class name.
- Specified by:
ID in interface CMObject- Overrides:
ID in class StdLibrary
- Returns:
- the name of this class
unknownCommand
protected java.lang.String unknownCommand()
unknownInvoke
protected java.lang.String unknownInvoke()
handleUnknownCommand
public boolean handleUnknownCommand(MOB mob,
java.util.Vector command)
- Specified by:
handleUnknownCommand in interface CommonCommands
forceStandardCommand
public boolean forceStandardCommand(MOB mob,
java.lang.String command,
java.util.Vector parms)
- Specified by:
forceStandardCommand in interface CommonCommands
getScore
public java.lang.StringBuffer getScore(MOB mob)
- Specified by:
getScore in interface CommonCommands
getEquipment
public java.lang.StringBuffer getEquipment(MOB viewer,
MOB mob)
- Specified by:
getEquipment in interface CommonCommands
getInventory
public java.lang.StringBuffer getInventory(MOB viewer,
MOB mob)
- Specified by:
getInventory in interface CommonCommands
postChannel
public void postChannel(MOB mob,
java.lang.String channelName,
java.lang.String message,
boolean systemMsg)
- Specified by:
postChannel in interface CommonCommands
postChannel
public void postChannel(java.lang.String channelName,
java.lang.String clanID,
java.lang.String message,
boolean systemMsg)
- Specified by:
postChannel in interface CommonCommands
postDrop
public boolean postDrop(MOB mob,
Environmental dropThis,
boolean quiet,
boolean optimized)
- Specified by:
postDrop in interface CommonCommands
postGet
public boolean postGet(MOB mob,
Item container,
Item getThis,
boolean quiet)
- Specified by:
postGet in interface CommonCommands
postRemove
public boolean postRemove(MOB mob,
Item item,
boolean quiet)
- Specified by:
postRemove in interface CommonCommands
postLook
public void postLook(MOB mob,
boolean quiet)
- Specified by:
postLook in interface CommonCommands
postFlee
public void postFlee(MOB mob,
java.lang.String whereTo)
- Specified by:
postFlee in interface CommonCommands
postSheath
public void postSheath(MOB mob,
boolean ifPossible)
- Specified by:
postSheath in interface CommonCommands
postDraw
public void postDraw(MOB mob,
boolean doHold,
boolean ifNecessary)
- Specified by:
postDraw in interface CommonCommands
postStand
public void postStand(MOB mob,
boolean ifNecessary)
- Specified by:
postStand in interface CommonCommands
postFollow
public void postFollow(MOB follower,
MOB leader,
boolean quiet)
- Specified by:
postFollow in interface CommonCommands
postSay
public void postSay(MOB mob,
MOB target,
java.lang.String text)
- Specified by:
postSay in interface CommonCommands
postSay
public void postSay(MOB mob,
java.lang.String text)
- Specified by:
postSay in interface CommonCommands
postSay
public void postSay(MOB mob,
MOB target,
java.lang.String text,
boolean isPrivate,
boolean tellFlag)
- Specified by:
postSay in interface CommonCommands
handleBeingSniffed
public void handleBeingSniffed(CMMsg msg)
- Specified by:
handleBeingSniffed in interface CommonCommands
handleBeingMobSniffed
public void handleBeingMobSniffed(CMMsg msg)
handleSit
public void handleSit(CMMsg msg)
- Specified by:
handleSit in interface CommonCommands
handleSleep
public void handleSleep(CMMsg msg)
- Specified by:
handleSleep in interface CommonCommands
handleStand
public void handleStand(CMMsg msg)
- Specified by:
handleStand in interface CommonCommands
handleRecall
public void handleRecall(CMMsg msg)
- Specified by:
handleRecall in interface CommonCommands
tickManaConsumption
public int tickManaConsumption(MOB mob,
int manaConsumeCounter)
- Specified by:
tickManaConsumption in interface CommonCommands
tickAging
public void tickAging(MOB mob)
- Specified by:
tickAging in interface CommonCommands
relativeCharStatTest
protected java.lang.String relativeCharStatTest(CharStats C,
MOB mob,
java.lang.String weakword,
java.lang.String strongword,
int stat)
handleBeingLookedAt
public void handleBeingLookedAt(CMMsg msg)
- Specified by:
handleBeingLookedAt in interface CommonCommands
examineItemString
public java.lang.String examineItemString(MOB mob,
Item item)
dispossessionTimeLeftString
protected java.lang.String dispossessionTimeLeftString(Item item)
handleBeingItemLookedAt
protected void handleBeingItemLookedAt(CMMsg msg)
handleBeingItemSniffed
protected void handleBeingItemSniffed(CMMsg msg)
handleIntroductions
public void handleIntroductions(MOB speaker,
MOB me,
java.lang.String msg)
- Specified by:
handleIntroductions in interface CommonCommands
handleBeingRoomSniffed
protected void handleBeingRoomSniffed(CMMsg msg)
handleBeingRoomLookedAt
protected void handleBeingRoomLookedAt(CMMsg msg)
handleBeingExitLookedAt
protected void handleBeingExitLookedAt(CMMsg msg)
handleBeingMobLookedAt
protected void handleBeingMobLookedAt(CMMsg msg)
handleBeingGivenTo
public void handleBeingGivenTo(CMMsg msg)
- Specified by:
handleBeingGivenTo in interface CommonCommands
handleBeingRead
public void handleBeingRead(CMMsg msg)
- Specified by:
handleBeingRead in interface CommonCommands
handleBeingGetted
public void handleBeingGetted(CMMsg msg)
- Specified by:
handleBeingGetted in interface CommonCommands
handleBeingDropped
public void handleBeingDropped(CMMsg msg)
- Specified by:
handleBeingDropped in interface CommonCommands
handleBeingRemoved
public void handleBeingRemoved(CMMsg msg)
- Specified by:
handleBeingRemoved in interface CommonCommands
handleBeingWorn
public void handleBeingWorn(CMMsg msg)
- Specified by:
handleBeingWorn in interface CommonCommands
handleBeingWielded
public void handleBeingWielded(CMMsg msg)
- Specified by:
handleBeingWielded in interface CommonCommands
handleBeingHeld
public void handleBeingHeld(CMMsg msg)
- Specified by:
handleBeingHeld in interface CommonCommands
lookAtExits
public void lookAtExits(Room room,
MOB mob)
- Specified by:
lookAtExits in interface CommonCommands
lookAtExitsShort
public void lookAtExitsShort(Room room,
MOB mob)
- Specified by:
lookAtExitsShort in interface CommonCommands