|
||||||||||
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.lib.commands.ShoutEvent
Encapsulates a player shout.
Field Summary | |
static int |
MAX_SHOUT_LENGTH
|
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 | |
ShoutEvent(java.lang.String originalText,
Commandable agent)
Constructs a new ShoutEvent. |
Method Summary | |
boolean |
execute()
Executes the shout. |
java.lang.String |
getMessage()
Returns the message that will be communicated, stripped of the command verb. |
int |
getRequiredShoutPoints()
|
boolean |
isCensored()
|
void |
setCensored()
|
void |
setMessage(java.lang.String msg)
Sets the message to be said, shouted, told, whispered. |
void |
setRequiredShoutPoints(int value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MAX_SHOUT_LENGTH
Constructor Detail |
public ShoutEvent(java.lang.String originalText, Commandable agent)
originalText
- whatever the user typedagent
- the person shouting somethingMethod Detail |
public java.lang.String getMessage()
VerbalEvent
getMessage
in interface VerbalEvent
public void setMessage(java.lang.String msg)
VerbalEvent
setMessage
in interface VerbalEvent
msg
- the new message to shout, say, tell, whisperpublic void setCensored()
public boolean isCensored()
public void setRequiredShoutPoints(int value)
public int getRequiredShoutPoints()
public boolean execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |