From 7c360d2887216099ca8cc767f15a34fcf302803b Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 23 Mar 2009 07:02:32 -0600 Subject: Merge eA's command handling into CommandHandler Also drop Aethyra's custom magic code --- src/commandhandler.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'src/commandhandler.h') diff --git a/src/commandhandler.h b/src/commandhandler.h index eab0f077..e8da51d7 100644 --- a/src/commandhandler.h +++ b/src/commandhandler.h @@ -24,6 +24,10 @@ #include +#ifdef EATHENA_SUPPORT +class Network; +#endif + /** * A class to parse and handle user commands */ @@ -33,7 +37,11 @@ class CommandHandler /** * Constructor */ - CommandHandler() {} +#ifdef TMWSERV_SUPPORT + CommandHandler(); +#else + CommandHandler(Network *network); +#endif /** * Destructor @@ -116,6 +124,29 @@ class CommandHandler */ void handleKick(const std::string &args); + /** + * Handle a me command. + */ + void handleMe(const std::string &args); + + /** + * Handle a record command. + */ + void handleRecord(const std::string &args); + + /** + * Handle a toggle command. + */ + void handleToggle(const std::string &args); + + /** + * Handle a present command. + */ + void handlePresent(const std::string &args); + +#ifdef EATHENA_SUPPORT + Network *mNetwork; +#endif }; extern CommandHandler *commandHandler; -- cgit v1.2.3-70-g09d2