*/
class CoreExport CommandParser
{
+ public:
+ typedef Commandtable CommandMap;
+
private:
/** Process a command from a user.
* @param user The user to parse the command for
*/
CommandParser();
+ /** Get a command name -> Command* map containing all client to server commands
+ * @return A map of command handlers keyed by command names
+ */
+ const CommandMap& GetCommands() const { return cmdlist; }
+
/** Calls the handler for a given command.
* @param commandname The command to find. This should be in uppercase.
* @param parameters Parameter list