|
||||||||||
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.TalkCommand.TalkEvent
This class encapsulates a talk request, so that onlookers can respond when the user tries to "talk" to someone (e.g. an NPC).
Field Summary | |
protected java.lang.String |
message_
|
Fields inherited from class wyvern.kernel.commands.TargetedEvent |
cloneError_, location_, quantity_, target_, targetName_ |
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 | |
TalkCommand.TalkEvent(java.lang.String originalText,
Commandable agent)
Constructs a new standard TalkEvent. |
Method Summary | |
boolean |
execute()
Executes the transaction by invoking the Talker. |
java.lang.String |
getMessage()
Gets the message that the player is saying. |
protected boolean |
parseTarget(java.lang.String text)
See if they said "talk to |
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_
Constructor Detail |
public TalkCommand.TalkEvent(java.lang.String originalText, Commandable agent)
Method Detail |
protected boolean parseTarget(java.lang.String text)
public boolean execute() throws java.lang.Exception
java.lang.Exception
public java.lang.String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |