chat /commands refactoring and semi-merge with user :commands
This commit is contained in:
parent
c06064cbad
commit
bcf7770e3b
3 changed files with 561 additions and 456 deletions
|
@ -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
|
||||
|
|
1012
src/menu_events.cpp
1012
src/menu_events.cpp
File diff suppressed because it is too large
Load diff
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue