|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.commands.EventImpl wyvern.kernel.commands.TargetedEvent wyvern.lib.commands.WhisperCommand.WhisperEvent
CommandEvent subclass to encapsulate the parameters of the whisper.
Field Summary | |
protected java.lang.String |
message_
|
protected java.lang.String |
targetName_
|
Fields inherited from class wyvern.kernel.commands.TargetedEvent |
cloneError_, location_, quantity_, target_ |
Fields inherited from class wyvern.kernel.commands.EventImpl |
agent_, appendToFile_, argString_, argStringParsed_, argv_, argvParsed_, delay_, failureMessage_, filterObjects_, filters_, handler_, map_, modified_, originalText_, playerOriginated_, redirectFile_, redirecting_, sendToAgent_, successMessage_, verb_, vetoed_, wizParsed_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Constructor Summary | |
WhisperCommand.WhisperEvent(java.lang.String cmd,
Commandable agent)
Constructs a new WhisperEvent. |
Method Summary | |
boolean |
execute()
Executes the whisper. |
java.lang.String |
getMessage()
Returns the whisper message. |
boolean |
parseArgs()
Figures out who we're talking to. |
void |
setMessage(java.lang.String message)
Sets the whisper message. |
void |
whisper(Player agent,
Monster target)
Sends the messages to agent and target. |
Methods inherited from class wyvern.kernel.commands.TargetedEvent |
getCloneErrorMsg, getLocation, getQuantity, getTarget, getTargetName, hasTarget, isQuantified, isTargetSpecifiedByHashcode, setLocation, setQuantified, setQuantity, setTarget, setTargetName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String message_
protected java.lang.String targetName_
Constructor Detail |
public WhisperCommand.WhisperEvent(java.lang.String cmd, Commandable agent)
cmd
- whatever the user typedagent
- the person doing the whisperingMethod Detail |
public boolean parseArgs()
public boolean execute()
public void whisper(Player agent, Monster target)
agent
- the player whisperingtarget
- the recipient of the whisper messagepublic java.lang.String getMessage()
getMessage
in interface VerbalEvent
public void setMessage(java.lang.String message)
setMessage
in interface VerbalEvent
message
- the new message to whisper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |