CMMsg.CheckedMsgResponse, CMMsg.Desc, CMMsg.View
Modifier and Type | Field | Description |
---|---|---|
protected MOB |
myAgent |
|
protected Environmental |
myTarget |
|
protected Environmental |
myTool |
|
protected int |
othersMajorMask |
|
protected int |
othersMinorType |
|
protected java.lang.String |
othersMsg |
|
protected int |
sourceMajorMask |
|
protected int |
sourceMinorType |
|
protected java.lang.String |
sourceMsg |
|
protected boolean |
suspendTrailers |
|
protected int |
targetMajorMask |
|
protected int |
targetMinorType |
|
protected java.lang.String |
targetMsg |
|
protected java.util.List<CMMsg> |
trailMsgs |
|
protected java.util.List<java.lang.Runnable> |
trailRunnables |
|
protected int |
value |
MAJOR_MASK, MASK_ALWAYS, MASK_CHANNEL, MASK_CNTRLMSG, MASK_DELICATE, MASK_DESCS, MASK_EYES, MASK_HANDS, MASK_INTERMSG, MASK_MAGIC, MASK_MALICIOUS, MASK_MOUTH, MASK_MOVE, MASK_OPTIMIZE, MASK_SOUND, MINOR_MASK, MISC_DESCS, MSG_ACTIVATE, MSG_ADVANCE, MSG_AREAAFFECT, MSG_ATTACKMISS, MSG_BID, MSG_BODYDROP, MSG_BORROW, MSG_BRINGTOLIFE, MSG_BUY, MSG_CAST, MSG_CAST_ATTACK_SOMANTIC_SPELL, MSG_CAST_ATTACK_VERBAL_SPELL, MSG_CAST_MALICIOUS, MSG_CAST_SOMANTIC_SPELL, MSG_CAST_VERBAL_SPELL, MSG_CAUSESINK, MSG_CLANEVENT, MSG_CLOSE, MSG_COLLISION, MSG_COMMAND, MSG_COMMANDFAIL, MSG_COMMANDREJECT, MSG_CONTEMPLATE, MSG_CRAWLFLEE, MSG_DAMAGE, MSG_DEACTIVATE, MSG_DEATH, MSG_DELICATE_HANDS_ACT, MSG_DELICATE_SMALL_HANDS_ACT, MSG_DEPOSIT, MSG_DIG, MSG_DISMOUNT, MSG_DISPOSSESS, MSG_DRINK, MSG_DROP, MSG_DUELCHALLENGE, MSG_DUELLOSS, MSG_EAT, MSG_EAT_GROUND, MSG_EMISSION, MSG_EMOTE, MSG_ENHANCE, MSG_ENTER, MSG_EXAMINE, MSG_EXPIRE, MSG_EXTINGUISH, MSG_FILL, MSG_FLEE, MSG_FOLLOW, MSG_GET, MSG_GIVE, MSG_GLANCE, MSG_GRAVITY, MSG_HANDS, MSG_HEALING, MSG_HOLD, MSG_HOLYEVENT, MSG_HUH, MSG_INSTALL, MSG_KNOCK, MSG_LEAVE, MSG_LEGALSTATE, MSG_LEGALWARRANT, MSG_LEVEL, MSG_LIST, MSG_LOCK, MSG_LOGIN, MSG_LOOK, MSG_LOOK_EXITS, MSG_MOUNT, MSG_NEWROOM, MSG_NOFOLLOW, MSG_NOISE, MSG_NOISYMOVEMENT, MSG_OK_ACTION, MSG_OK_VISUAL, MSG_OPEN, MSG_ORDER, MSG_PANIC, MSG_POSSESS, MSG_POUR, MSG_POWERCURRENT, MSG_PRACTICE, MSG_PREINVOKE, MSG_PULL, MSG_PUSH, MSG_PUT, MSG_QUIETMOVEMENT, MSG_QUIT, MSG_READ, MSG_REBUKE, MSG_RECALL, MSG_RELOAD, MSG_REMOVE, MSG_REPAIR, MSG_RETIRE, MSG_RETREAT, MSG_REWRITE, MSG_RITUAL, MSG_ROOMRESET, MSG_SELL, MSG_SERVE, MSG_SHUTDOWN, MSG_SIT, MSG_SITMOVE, MSG_SLEEP, MSG_SNIFF, MSG_SPEAK, MSG_STAND, MSG_STARTUP, MSG_SUBTLEMOVEMENT, MSG_TEACH, MSG_TELL, MSG_THIEF_ACT, MSG_THINK, MSG_THROW, MSG_TRAVEL, MSG_UNLOAD, MSG_UNLOCK, MSG_VALUE, MSG_VIEW, MSG_WASREAD, MSG_WEAPONATTACK, MSG_WEAR, MSG_WEATHER, MSG_WIELD, MSG_WITHDRAW, MSG_WRITE, MSG_WROTE, MSK_CAST, MSK_CAST_MALICIOUS, MSK_CAST_MALICIOUS_SOMANTIC, MSK_CAST_MALICIOUS_VERBAL, MSK_CAST_SOMANTIC, MSK_CAST_VERBAL, MSK_HAGGLE, MSK_MALICIOUS_MOVE, NO_EFFECT, TYP_ACID, TYP_ACTIVATE, TYP_ADVANCE, TYP_AREAAFFECT, TYP_AROMA, TYP_ATTACKMISS, TYP_BID, TYP_BODYDROP, TYP_BORROW, TYP_BUY, TYP_CAST_SPELL, TYP_CAUSESINK, TYP_CHANNEL, TYP_CLANEVENT, TYP_CLOSE, TYP_COLD, TYP_COLLISION, TYP_COMMAND, TYP_COMMANDFAIL, TYP_COMMANDREJECT, TYP_CONTEMPLATE, TYP_DAMAGE, TYP_DEACTIVATE, TYP_DEATH, TYP_DELICATE_HANDS_ACT, TYP_DEPOSIT, TYP_DIG, TYP_DISEASE, TYP_DISMOUNT, TYP_DISPOSSESS, TYP_DRINK, TYP_DROP, TYP_DUELCHALLENGE, TYP_DUELLOSS, TYP_EAT, TYP_ELECTRIC, TYP_EMISSION, TYP_EMOTE, TYP_ENDQUEST, TYP_ENHANCE, TYP_ENTER, TYP_EXAMINE, TYP_EXPCHANGE, TYP_EXPIRE, TYP_EXTINGUISH, TYP_FACTIONCHANGE, TYP_FILL, TYP_FIRE, TYP_FLEE, TYP_FOLLOW, TYP_GAS, TYP_GENERAL, TYP_GET, TYP_GIVE, TYP_GLANCE, TYP_GRAVITY, TYP_HANDS, TYP_HEALING, TYP_HOLD, TYP_HOLYEVENT, TYP_HUH, TYP_INSTALL, TYP_ITEMGENERATED, TYP_ITEMSGENERATED, TYP_JUSTICE, TYP_KNOCK, TYP_LASER, TYP_LEAVE, TYP_LEGALSTATE, TYP_LEGALWARRANT, TYP_LEVEL, TYP_LIFE, TYP_LIST, TYP_LOCK, TYP_LOGIN, TYP_LOOK, TYP_LOOK_EXITS, TYP_MIND, TYP_MOUNT, TYP_NEWROOM, TYP_NOFOLLOW, TYP_NOISE, TYP_NOISYMOVEMENT, TYP_OK_ACTION, TYP_OK_VISUAL, TYP_OPEN, TYP_ORDER, TYP_PANIC, TYP_PARALYZE, TYP_POISON, TYP_POSSESS, TYP_POUR, TYP_POWERCURRENT, TYP_PRACTICE, TYP_PREINVOKE, TYP_PULL, TYP_PUSH, TYP_PUT, TYP_QUIETMOVEMENT, TYP_QUIT, TYP_READ, TYP_REBUKE, TYP_RECALL, TYP_RECIPELEARNED, TYP_RELOAD, TYP_REMOVE, TYP_REPAIR, TYP_RETIRE, TYP_RETREAT, TYP_REWRITE, TYP_RITUAL, TYP_ROOMRESET, TYP_RPXPCHANGE, TYP_SELL, TYP_SERVE, TYP_SHUTDOWN, TYP_SIT, TYP_SITMOVE, TYP_SLEEP, TYP_SNIFF, TYP_SONIC, TYP_SPEAK, TYP_STAND, TYP_STARTUP, TYP_TEACH, TYP_TELL, TYP_THINK, TYP_THROW, TYP_TRAVEL, TYP_UNDEAD, TYP_UNLOAD, TYP_UNLOCK, TYP_VALUE, TYP_VIEW, TYP_WAND_USE, TYP_WASREAD, TYP_WATER, TYP_WEAPONATTACK, TYP_WEAR, TYP_WEATHER, TYP_WIELD, TYP_WINQUEST, TYP_WITHDRAW, TYP_WRITE, TYP_WROTE, TYPE_DESCS
idConverter
Constructor | Description |
---|---|
DefaultMessage() |
Modifier and Type | Method | Description |
---|---|---|
CMMsg |
addTrailerMsg(CMMsg msg) |
Appends to the list of other CMMsg events which are slated to be confirmed
and executed AFTER this current message is handled.
|
CMMsg |
addTrailerRunnable(java.lang.Runnable r) |
Appends to the list of Runnable objects which are slated to be confirmed
and executed AFTER this current message is handled.
|
boolean |
amISource(MOB thisOne) |
Returns whether the given Environmental object is, in fact, the source
of this message.
|
boolean |
amITarget(Environmental thisOne) |
Returns whether the given Environmental object is, in fact, the target
of this message.
|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
boolean |
equals(java.lang.Object o) |
|
protected void |
finalize() |
|
int |
hashCode() |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isOthers(int codeOrMask) |
Returns whether the given code or mask is either the minor code
or a part of the major code of the othersCode
|
boolean |
isOthers(Environmental E) |
Returns whether the given Environmental object is neither the source
nor the target of this message.
|
boolean |
isOthers(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches the minor code
or a part of the major code of the othersCode.
|
boolean |
isOthersMajor(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches
a part of the major code of the othersCode.
|
boolean |
isOthersMinor(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches the minor sourceCode
(Others are everyone not source, not target)
|
boolean |
isSource(int codeOrMask) |
Returns whether the given code or mask is either the minor code
or a part of the major code of the sourceCode
|
boolean |
isSource(Environmental E) |
Returns whether the given Environmental object is, in fact, the source
of this message.
|
boolean |
isSource(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches the minor code
or a part of the major code of the sourceCode.
|
boolean |
isSourceMajor(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches
a part of the major code of the sourceCode.
|
boolean |
isSourceMinor(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches the minor sourceCode
|
boolean |
isTarget(int codeOrMask) |
Returns whether the given code or mask is either the minor code
or a part of the major code of the targetCode
|
boolean |
isTarget(Environmental E) |
Returns whether the given Environmental object is, in fact, the target
of this message.
|
boolean |
isTarget(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches the minor code
or a part of the major code of the targetCode.
|
boolean |
isTargetMajor(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches
a part of the major code of the targetCode.
|
boolean |
isTargetMinor(java.lang.String codeOrMaskDesc) |
Returns whether the given code or mask string matches the minor sourceCode
|
protected static boolean |
matches(int major,
int minor,
int code) |
|
protected static boolean |
matches(int major,
int minor,
java.lang.String code2) |
|
CMMsg |
modify(int newAllCode,
java.lang.String allMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(int newSourceCode,
java.lang.String sourceMessage,
int newTargetCode,
java.lang.String targetMessage,
int newOthersCode,
java.lang.String othersMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(MOB source,
int newAllCode,
java.lang.String allMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(MOB source,
int newAllCode,
java.lang.String allMessage,
int newValue) |
Modifies one of more fields in this event.
|
CMMsg |
modify(MOB source,
Environmental target,
int newAllCode,
java.lang.String allMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newSourceCode,
int newTargetCode,
int newOthersCode,
java.lang.String allMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newAllCode,
java.lang.String allMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newSourceCode,
java.lang.String sourceMessage,
int newTargetCode,
java.lang.String targetMessage,
int newOthersCode,
java.lang.String othersMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(MOB source,
Environmental target,
Environmental tool,
int newAllCode,
java.lang.String sourceMessage,
java.lang.String targetMessage,
java.lang.String othersMessage) |
Modifies one of more fields in this event.
|
CMMsg |
modify(java.lang.String allMessage) |
Modifies one of more fields in this event.
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
int |
othersCode() |
A combination bitmask, action type integer that describes information
about how this event affects or is perceived by the others of the
action.
|
int |
othersMajor() |
Returns high order bitmask for the others code
(Others are everyone not source, not target)
|
boolean |
othersMajor(int bitMask) |
Returns whether high order bitmask for the others code is set
(Others are everyone not source, not target)
|
java.lang.String |
othersMessage() |
Returns the string seen by the others of the event, and only by
the others of the event.
|
int |
othersMinor() |
Returns low order action type integer for the others code
(Others are everyone not source, not target)
|
protected CMObject |
parseFlatObject(java.lang.String part,
CMClass.CMObjectType preferClass) |
|
void |
parseFlatString(java.lang.String flat) |
Unserializes this message as well as it reasonably can.
|
boolean |
sameAs(CMMsg E) |
Whether this object instance is functionally identical to the object passed in.
|
CMMsg |
setOthersCode(int code) |
A combination bitmask, action type integer that describes information
about how this event affects or is perceived by the others of the
action.
|
CMMsg |
setOthersMessage(java.lang.String str) |
Sets the string seen by the others of the event, and only by
the others of the event.
|
CMMsg |
setSource(MOB mob) |
Sets the source of this event, a MOB object
|
CMMsg |
setSourceCode(int code) |
A combination bitmask, action type integer that describes information
about how this event affects or is perceived by the source of the
action.
|
CMMsg |
setSourceMessage(java.lang.String str) |
Sets the string seen by the source of the event, and only by
the source of the event.
|
CMMsg |
setTarget(Environmental E) |
Sets the target of this event, an Environmental object
|
CMMsg |
setTargetCode(int code) |
A combination bitmask, action type integer that describes information
about how this event affects or is perceived by the target of the
action.
|
CMMsg |
setTargetMessage(java.lang.String str) |
Sets the string seen by the target of the event, and only by
the target of the event.
|
CMMsg |
setTool(Environmental E) |
Sets the means, item, portal, or otherwise tool that helps the source
affect the event upon the target.
|
CMMsg |
setValue(int amount) |
Sets an arbitrary integer value associated with this event.
|
MOB |
source() |
Returns the source of this event, a MOB object
|
int |
sourceCode() |
A combination bitmask, action type integer that describes information
about how this event affects or is perceived by the source of the
action.
|
int |
sourceMajor() |
Returns high order bitmask for the source code
|
boolean |
sourceMajor(int bitMask) |
Returns whether high order bitmask for the source code is set
|
java.lang.String |
sourceMessage() |
Returns the string seen by the source of the event, and only by
the source of the event.
|
int |
sourceMinor() |
Returns low order action type integer for the target code
|
boolean |
suspendResumeTrailers(java.lang.Boolean newValue) |
Suspend or resume processing of trailer messages and runnables whenever
a room finishes processing a message.
|
Environmental |
target() |
Returns the target of this event, an Environmental object
|
int |
targetCode() |
A combination bitmask, action type integer that describes information
about how this event affects or is perceived by the target of the
action.
|
int |
targetMajor() |
Returns high order bitmask for the target code
|
boolean |
targetMajor(int bitMask) |
Returns whether high order bitmask for the target code is set
|
java.lang.String |
targetMessage() |
Returns the string seen by the target of the event, and only by
the target of the event.
|
int |
targetMinor() |
Returns low order action type integer for the target code
|
java.lang.String |
toFlatString() |
Serializes this message as well as it reasonably can.
|
Environmental |
tool() |
Returns the means, item, portal, or otherwise tool that helps the source
affect the event upon the target.
|
java.util.List<CMMsg> |
trailerMsgs() |
Returns a List of other CMMsg events which are slated to be confirmed
and executed AFTER this current message is handled.
|
java.util.List<java.lang.Runnable> |
trailerRunnables() |
Returns a List of other Runnables which are slated to be
and executed AFTER this current message is handled.
|
int |
value() |
Returns the arbitrary value integer associated with this event.
|
protected int targetMajorMask
protected int sourceMajorMask
protected int othersMajorMask
protected int targetMinorType
protected int sourceMinorType
protected int othersMinorType
protected java.lang.String targetMsg
protected java.lang.String othersMsg
protected java.lang.String sourceMsg
protected MOB myAgent
protected Environmental myTarget
protected Environmental myTool
protected int value
protected java.util.List<CMMsg> trailMsgs
protected java.util.List<java.lang.Runnable> trailRunnables
protected boolean suspendTrailers
public java.lang.String ID()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public CMObject copyOf()
CMObject
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public CMMsg modify(MOB source, Environmental target, int newAllCode, java.lang.String allMessage)
CMMsg
modify
in interface CMMsg
source
- the source of the eventtarget
- the target of the eventnewAllCode
- the source, target, and others codeallMessage
- the source, target, and others messageCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg modify(java.lang.String allMessage)
CMMsg
modify
in interface CMMsg
allMessage
- the new source, target, and others message of this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg modify(MOB source, int newAllCode, java.lang.String allMessage)
CMMsg
modify
in interface CMMsg
source
- the new source of this eventnewAllCode
- the new source, target, and others code of this eventallMessage
- the new source, target, and others message of this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg modify(MOB source, int newAllCode, java.lang.String allMessage, int newValue)
CMMsg
modify
in interface CMMsg
source
- the new source of this eventnewAllCode
- the new source, target, and others code of this eventallMessage
- the new source, target, and others message of this eventnewValue
- the new value for this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
,
CMMsg.value()
public CMMsg modify(MOB source, Environmental target, Environmental tool, int newAllCode, java.lang.String allMessage)
CMMsg
modify
in interface CMMsg
source
- the new source of this eventtarget
- the new target of this eventtool
- the new tool for this eventnewAllCode
- the new source, target, and others code of this eventallMessage
- the new source, target, and others message of this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg modify(MOB source, Environmental target, Environmental tool, int newAllCode, java.lang.String sourceMessage, java.lang.String targetMessage, java.lang.String othersMessage)
CMMsg
modify
in interface CMMsg
source
- the new source of this eventtarget
- the new target of this eventtool
- the new tool for this eventnewAllCode
- the new source, target, and others code of this eventsourceMessage
- the new source message for this eventtargetMessage
- the new target message for this eventothersMessage
- the new others message for this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg setSourceCode(int code)
CMMsg
setSourceCode
in interface CMMsg
code
- the new full bitmask/action type source event codeCMMsg.source()
,
CMMsg.sourceMessage()
,
CMMsg.sourceCode()
,
CMMsg.sourceMajor(int)
,
CMMsg.sourceMinor()
,
CMMsg.MASK_MAGIC
,
CMMsg.TYP_CAST_SPELL
public CMMsg setTargetCode(int code)
CMMsg
setTargetCode
in interface CMMsg
code
- the new full bitmask/action type target event codeCMMsg.target()
,
CMMsg.targetMessage()
,
CMMsg.targetCode()
,
CMMsg.targetMajor(int)
,
CMMsg.targetMinor()
,
CMMsg.MASK_MAGIC
,
CMMsg.TYP_CAST_SPELL
public CMMsg setOthersCode(int code)
CMMsg
setOthersCode
in interface CMMsg
code
- the new full bitmask/action type others event codeCMMsg.othersMessage()
,
CMMsg.othersCode()
,
CMMsg.othersMajor(int)
,
CMMsg.othersMinor()
,
CMMsg.MASK_MAGIC
,
CMMsg.TYP_CAST_SPELL
public CMMsg setSourceMessage(java.lang.String str)
CMMsg
setSourceMessage
in interface CMMsg
str
- the string to show to the source, or NULLCMMsg.source()
,
CMMsg.sourceMessage()
,
CMMsg.sourceCode()
public CMMsg setTargetMessage(java.lang.String str)
CMMsg
setTargetMessage
in interface CMMsg
str
- the string to show to the target, or NULLCMMsg.target()
,
CMMsg.targetMessage()
,
CMMsg.targetCode()
public CMMsg setOthersMessage(java.lang.String str)
CMMsg
setOthersMessage
in interface CMMsg
str
- the string to show to the others, or NULLCMMsg.othersMessage()
,
CMMsg.othersCode()
public int value()
CMMsg
public CMMsg setValue(int amount)
CMMsg
public java.util.List<CMMsg> trailerMsgs()
CMMsg
trailerMsgs
in interface CMMsg
Room.send(MOB, CMMsg)
public java.util.List<java.lang.Runnable> trailerRunnables()
CMMsg
trailerRunnables
in interface CMMsg
Room.send(MOB, CMMsg)
public boolean suspendResumeTrailers(java.lang.Boolean newValue)
CMMsg
suspendResumeTrailers
in interface CMMsg
newValue
- null to return the existing value only, or a new valuepublic CMMsg addTrailerMsg(CMMsg msg)
CMMsg
addTrailerMsg
in interface CMMsg
msg
- the CMMsg to append to this message.Room.send(MOB, CMMsg)
public CMMsg addTrailerRunnable(java.lang.Runnable r)
CMMsg
addTrailerRunnable
in interface CMMsg
r
- the Runnable to append to this message.Room.send(MOB, CMMsg)
public CMMsg modify(MOB source, Environmental target, Environmental tool, int newSourceCode, java.lang.String sourceMessage, int newTargetCode, java.lang.String targetMessage, int newOthersCode, java.lang.String othersMessage)
CMMsg
modify
in interface CMMsg
source
- the new source of this eventtarget
- the new target of this eventtool
- the new tool for this eventnewSourceCode
- the new source code for this eventsourceMessage
- the new source message for this eventnewTargetCode
- the new target code for this eventtargetMessage
- the new target message for this eventnewOthersCode
- the new others code for this eventothersMessage
- the new others message for this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg modify(MOB source, Environmental target, Environmental tool, int newSourceCode, int newTargetCode, int newOthersCode, java.lang.String allMessage)
CMMsg
modify
in interface CMMsg
source
- the new source of this eventtarget
- the new target of this eventtool
- the new tool for this eventnewSourceCode
- the new source code for this eventnewTargetCode
- the new target code for this eventnewOthersCode
- the new others code for this eventallMessage
- the new source, target, and others message of this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg modify(int newAllCode, java.lang.String allMessage)
CMMsg
modify
in interface CMMsg
newAllCode
- the new source, target, and others code of this eventallMessage
- the new source, target, and others message of this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public CMMsg modify(int newSourceCode, java.lang.String sourceMessage, int newTargetCode, java.lang.String targetMessage, int newOthersCode, java.lang.String othersMessage)
CMMsg
modify
in interface CMMsg
newSourceCode
- the new source code for this eventsourceMessage
- the new source message for this eventnewTargetCode
- the new target code for this eventtargetMessage
- the new target message for this eventnewOthersCode
- the new others code for this eventothersMessage
- the new others message for this eventCMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
public final MOB source()
CMMsg
source
in interface CMMsg
CMMsg.setSource(MOB)
,
MOB
public final CMMsg setSource(MOB mob)
CMMsg
setSource
in interface CMMsg
mob
- the new source of this eventCMMsg.source()
,
MOB
public final Environmental target()
CMMsg
target
in interface CMMsg
CMMsg.setTarget(Environmental)
,
Environmental
public final CMMsg setTarget(Environmental E)
CMMsg
setTarget
in interface CMMsg
E
- the new target of this eventCMMsg.target()
,
Environmental
public final Environmental tool()
CMMsg
tool
in interface CMMsg
Environmental
,
CMMsg.setTool(Environmental)
public final CMMsg setTool(Environmental E)
CMMsg
setTool
in interface CMMsg
E
- the new tool of this eventEnvironmental
,
CMMsg.tool()
public final int targetMajor()
CMMsg
targetMajor
in interface CMMsg
CMMsg.targetCode()
,
CMMsg.targetMinor()
,
CMMsg.MASK_MAGIC
public final int sourceMajor()
CMMsg
sourceMajor
in interface CMMsg
CMMsg.sourceCode()
,
CMMsg.sourceMinor()
,
CMMsg.MASK_MAGIC
public final int othersMajor()
CMMsg
othersMajor
in interface CMMsg
CMMsg.othersCode()
,
CMMsg.othersMinor()
,
CMMsg.MASK_MAGIC
public final boolean targetMajor(int bitMask)
CMMsg
targetMajor
in interface CMMsg
bitMask
- the bitmask to check forCMMsg.targetCode()
,
CMMsg.targetMinor()
,
CMMsg.MASK_MAGIC
public final int targetMinor()
CMMsg
targetMinor
in interface CMMsg
CMMsg.targetCode()
,
CMMsg.targetMajor(int)
,
CMMsg.TYP_CAST_SPELL
public final int targetCode()
CMMsg
targetCode
in interface CMMsg
CMMsg.target()
,
CMMsg.targetMessage()
,
CMMsg.targetMajor(int)
,
CMMsg.targetMinor()
,
CMMsg.MASK_MAGIC
,
CMMsg.TYP_CAST_SPELL
,
CMMsg.setTargetCode(int)
public final java.lang.String targetMessage()
CMMsg
targetMessage
in interface CMMsg
CMMsg.target()
,
CMMsg.setTargetMessage(String)
,
CMMsg.targetCode()
public final int sourceCode()
CMMsg
sourceCode
in interface CMMsg
CMMsg.source()
,
CMMsg.sourceMessage()
,
CMMsg.sourceMajor(int)
,
CMMsg.sourceMinor()
,
CMMsg.MASK_MAGIC
,
CMMsg.TYP_CAST_SPELL
,
CMMsg.setSourceCode(int)
public final boolean sourceMajor(int bitMask)
CMMsg
sourceMajor
in interface CMMsg
bitMask
- the bitmask to check forCMMsg.sourceCode()
,
CMMsg.sourceMinor()
,
CMMsg.MASK_MAGIC
public final int sourceMinor()
CMMsg
sourceMinor
in interface CMMsg
CMMsg.targetCode()
,
CMMsg.targetMajor(int)
,
CMMsg.TYP_CAST_SPELL
public final java.lang.String sourceMessage()
CMMsg
sourceMessage
in interface CMMsg
CMMsg.source()
,
CMMsg.setSourceMessage(String)
,
CMMsg.sourceCode()
public final boolean othersMajor(int bitMask)
CMMsg
othersMajor
in interface CMMsg
bitMask
- the bitmask to check forCMMsg.othersCode()
,
CMMsg.othersMinor()
,
CMMsg.MASK_MAGIC
public final int othersMinor()
CMMsg
othersMinor
in interface CMMsg
CMMsg.othersCode()
,
CMMsg.othersMajor(int)
,
CMMsg.TYP_CAST_SPELL
public final int othersCode()
CMMsg
othersCode
in interface CMMsg
CMMsg.othersMessage()
,
CMMsg.othersMajor(int)
,
CMMsg.othersMinor()
,
CMMsg.MASK_MAGIC
,
CMMsg.TYP_CAST_SPELL
,
CMMsg.setOthersCode(int)
public final java.lang.String othersMessage()
CMMsg
othersMessage
in interface CMMsg
CMMsg.setOthersMessage(String)
,
CMMsg.othersCode()
public final boolean amITarget(Environmental thisOne)
CMMsg
amITarget
in interface CMMsg
thisOne
- the Environmental to inspect, may not be nullCMMsg.target()
,
Environmental
public final boolean amISource(MOB thisOne)
CMMsg
amISource
in interface CMMsg
thisOne
- the Environmental to inspect, may not be nullCMMsg.source()
,
Environmental
public final boolean isTarget(Environmental E)
CMMsg
isTarget
in interface CMMsg
E
- the Environmental to inspect, may not be nullCMMsg.target()
,
Environmental
public final boolean isTarget(int codeOrMask)
CMMsg
isTarget
in interface CMMsg
codeOrMask
- the target action code or target major mask to checkCMMsg.targetCode()
public final boolean isTarget(java.lang.String codeOrMaskDesc)
CMMsg
isTarget
in interface CMMsg
codeOrMaskDesc
- the target action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.targetCode()
public final boolean isTargetMajor(java.lang.String codeOrMaskDesc)
CMMsg
isTargetMajor
in interface CMMsg
codeOrMaskDesc
- the target action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.targetCode()
public final boolean isTargetMinor(java.lang.String codeOrMaskDesc)
CMMsg
isTargetMinor
in interface CMMsg
codeOrMaskDesc
- the target action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.targetCode()
public final boolean isSource(Environmental E)
CMMsg
isSource
in interface CMMsg
E
- the Environmental to inspect, may not be nullCMMsg.source()
,
Environmental
public final boolean isSource(int codeOrMask)
CMMsg
isSource
in interface CMMsg
codeOrMask
- the source action code or source major mask to checkCMMsg.sourceCode()
public final boolean isSource(java.lang.String codeOrMaskDesc)
CMMsg
isSource
in interface CMMsg
codeOrMaskDesc
- the source action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.sourceCode()
public final boolean isSourceMajor(java.lang.String codeOrMaskDesc)
CMMsg
isSourceMajor
in interface CMMsg
codeOrMaskDesc
- the source action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.sourceCode()
public final boolean isSourceMinor(java.lang.String codeOrMaskDesc)
CMMsg
isSourceMinor
in interface CMMsg
codeOrMaskDesc
- the source action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.sourceCode()
public final boolean isOthers(Environmental E)
CMMsg
isOthers
in interface CMMsg
E
- the Environmental to inspect, may not be nullEnvironmental
,
CMMsg.source()
,
CMMsg.target()
public final boolean isOthers(int codeOrMask)
CMMsg
isOthers
in interface CMMsg
codeOrMask
- the others action code or others major mask to checkCMMsg.othersCode()
public final boolean isOthers(java.lang.String codeOrMaskDesc)
CMMsg
isOthers
in interface CMMsg
codeOrMaskDesc
- the others action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.othersCode()
public final boolean isOthersMajor(java.lang.String codeOrMaskDesc)
CMMsg
isOthersMajor
in interface CMMsg
codeOrMaskDesc
- the others action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.othersCode()
public final boolean isOthersMinor(java.lang.String codeOrMaskDesc)
CMMsg
isOthersMinor
in interface CMMsg
codeOrMaskDesc
- the others action code string, or mask stringCMMsg.TYPE_DESCS
,
CMMsg.MASK_DESCS
,
CMMsg.othersCode()
protected static final boolean matches(int major, int minor, int code)
protected static final boolean matches(int major, int minor, java.lang.String code2)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toFlatString()
CMMsg
toFlatString
in interface CMMsg
CMMsg.parseFlatString(String)
protected CMObject parseFlatObject(java.lang.String part, CMClass.CMObjectType preferClass)
public void parseFlatString(java.lang.String flat)
CMMsg
parseFlatString
in interface CMMsg
flat
- the serialized messageCMMsg.toFlatString()