|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.crowd.chat.client.ChatDirector.CommandHandler
public abstract static class ChatDirector.CommandHandler
Used to implement a slash command (e.g. /who).
| Constructor Summary | |
|---|---|
ChatDirector.CommandHandler()
|
|
| Method Summary | |
|---|---|
boolean |
checkAccess(BodyObject user)
Returns true if this user should have access to this chat command. |
java.lang.String |
getUsage(java.lang.String command)
Returns the translatable usage message for the specified command. |
abstract java.lang.String |
handleCommand(SpeakService speakSvc,
java.lang.String command,
java.lang.String args,
java.lang.String[] history)
Handles the specified chat command. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatDirector.CommandHandler()
| Method Detail |
|---|
public java.lang.String getUsage(java.lang.String command)
public abstract java.lang.String handleCommand(SpeakService speakSvc,
java.lang.String command,
java.lang.String args,
java.lang.String[] history)
speakSvc - an optional SpeakService object representing the object to send the chat
message on.command - the slash command that was used to invoke this handler
(e.g. /tell).args - the arguments provided along with the command (e.g. Bob hello)
or null if no arguments were supplied.history - an in/out parameter that allows the command to modify the text that will
be appended to the chat history. If this is set to null, nothing will be appended.
ChatCodes.SUCCESS.public boolean checkAccess(BodyObject user)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||