summaryrefslogtreecommitdiff
path: root/src/commandhandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-23 07:02:32 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-23 07:02:32 -0600
commit7c360d2887216099ca8cc767f15a34fcf302803b (patch)
tree308a8889e1173a27b4c20ef608c0749449c8aa04 /src/commandhandler.h
parentd3f315b45bd9055ac7f61082f5af54b863410517 (diff)
downloadMana-7c360d2887216099ca8cc767f15a34fcf302803b.tar.gz
Mana-7c360d2887216099ca8cc767f15a34fcf302803b.tar.bz2
Mana-7c360d2887216099ca8cc767f15a34fcf302803b.tar.xz
Mana-7c360d2887216099ca8cc767f15a34fcf302803b.zip
Merge eA's command handling into CommandHandler
Also drop Aethyra's custom magic code
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r--src/commandhandler.h33
1 files changed, 32 insertions, 1 deletions
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 <string>
+#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;