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:
Mike Thomas
2007-07-31 22:44:02 +00:00
parent 3f7705dfc2
commit 638f8b6246
@@ -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());