chat /commands refactoring and semi-merge with user :commands

This commit is contained in:
Tomasz Śniatowski 2008-04-15 21:17:39 +01:00
parent c06064cbad
commit bcf7770e3b
3 changed files with 561 additions and 456 deletions

View file

@ -102,6 +102,8 @@ Version 1.5.0-svn:
* Changed logging to have less overhead when it is turned off (patch #1038)
* Fixed error message for broken add-on campaigns (bug #11078)
* Refactored the in-game console and added help function (patch #1036)
* Refactored chat /commands and added help. Made :commands a superset
of chat /commands
* Added new commandline options (patch #1031)
-s or --server [host] connect to host specified or to the first server
in preferences

File diff suppressed because it is too large Load diff

View file

@ -72,7 +72,7 @@ namespace events{
class chat_handler {
public:
chat_handler() {}
chat_handler();
virtual ~chat_handler();
protected:
@ -85,6 +85,7 @@ protected:
virtual void send_chat_message(const std::string& message, bool allies_only=false)=0;
void send_command(const std::string& cmd, const std::string& args="");
void change_logging(const std::string& data);
friend class chat_command_handler;
};
class menu_handler : private chat_handler {