summaryrefslogtreecommitdiff
path: root/src/game-server/commandhandler.hpp
diff options
context:
space:
mode:
authorRoderic Morris <roderic@ccs.neu.edu>2008-11-01 22:20:13 +0000
committerRoderic Morris <roderic@ccs.neu.edu>2008-11-01 22:20:13 +0000
commitb714a1ff7e3616233b7232ef05f585e8806b3254 (patch)
tree2d78ba3f648b4737b001a47009f07c7239383d86 /src/game-server/commandhandler.hpp
parent7cdecda38dc75dd855a45af6faad14d1c1e4e72f (diff)
downloadmanaserv-b714a1ff7e3616233b7232ef05f585e8806b3254.tar.gz
manaserv-b714a1ff7e3616233b7232ef05f585e8806b3254.tar.bz2
manaserv-b714a1ff7e3616233b7232ef05f585e8806b3254.tar.xz
manaserv-b714a1ff7e3616233b7232ef05f585e8806b3254.zip
fixes for commandhandler
Diffstat (limited to 'src/game-server/commandhandler.hpp')
-rw-r--r--src/game-server/commandhandler.hpp46
1 files changed, 7 insertions, 39 deletions
diff --git a/src/game-server/commandhandler.hpp b/src/game-server/commandhandler.hpp
index 04df9019..4226dcda 100644
--- a/src/game-server/commandhandler.hpp
+++ b/src/game-server/commandhandler.hpp
@@ -28,44 +28,12 @@
class Character;
-/**
- * A class to parse and handle user commands
- */
-class CommandHandler
+namespace CommandHandler
{
- public:
- /**
- * Constructor
- */
- CommandHandler() {}
-
- /**
- * Destructor
- */
- ~CommandHandler() {}
-
- /**
- * Parse and handle the given command.
- */
- void handleCommand(Character *player, const std::string &command);
-
- private:
- void handleHelp(Character *player, std::string &args);
- void handleWarp(Character *player, std::string &args);
- void handleItem(Character *player, std::string &args);
- void handleDrop(Character *player, std::string &args);
- void handleMoney(Character *player, std::string &args);
- void handleSpawn(Character *player, std::string &args);
- void handleGoto(Character *player, std::string &args);
- void handleRecall(Character *player, std::string &args);
- void handleReload(Character *player);
- void handleBan(Character *player, std::string &args);
- void handleLevel(Character *player, std::string &args);
- void handleAttribute(Character *player, std::string &args);
-
- void errorMsg(const std::string error, Character *player);
- std::string getArgument(std::string &args);
- Character* getPlayer(const std::string &player);
-};
+ /**
+ * Parse and handle the given command.
+ */
+ void handleCommand(Character *player, const std::string &command);
+}
-#endif //_TMW_COMMANDHANDLER_H
+#endif //_TMW_SERVER_COMMANDHANDLER_H