Break out registering the command handlers to its own function so subclasses can call it/override it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4796 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -151,6 +151,14 @@ public class ChatDirector extends BasicDirector
|
||||
Log.warning("Null bundle or message manager given to ChatDirector");
|
||||
return;
|
||||
}
|
||||
registerCommandHandlers();
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers all the chat-command handlers.
|
||||
*/
|
||||
protected void registerCommandHandlers ()
|
||||
{
|
||||
MessageBundle msg = _msgmgr.getBundle(_bundle);
|
||||
registerCommandHandler(msg, "help", new HelpHandler());
|
||||
registerCommandHandler(msg, "clear", new ClearHandler());
|
||||
|
||||
Reference in New Issue
Block a user