com.threerings.crowd.chat.client
Class ChatDirector.SpeakHandler
java.lang.Object
com.threerings.crowd.chat.client.ChatDirector.CommandHandler
com.threerings.crowd.chat.client.ChatDirector.SpeakHandler
- Enclosing class:
- ChatDirector
protected class ChatDirector.SpeakHandler
- extends ChatDirector.CommandHandler
Implements /speak.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChatDirector.SpeakHandler
protected ChatDirector.SpeakHandler()
handleCommand
public String handleCommand(SpeakService speakSvc,
String command,
String args,
String[] history)
- Description copied from class:
ChatDirector.CommandHandler
- Handles the specified chat command.
- Specified by:
handleCommand in class ChatDirector.CommandHandler
- Parameters:
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.
- Returns:
- an untranslated string that will be reported to the chat box to convey an error
response to the user, or
ChatCodes.SUCCESS.