events::chat_handler Class Reference

#include <menu_events.hpp>

Inheritance diagram for events::chat_handler:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 chat_handler ()
virtual ~chat_handler ()

Protected Member Functions

void do_speak (const std::string &message, bool allies_only=false)
virtual void add_chat_message (const time_t &time, const std::string &speaker, int side, const std::string &message, game_display::MESSAGE_TYPE type=game_display::MESSAGE_PRIVATE)=0
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)
 Change the log level of a log domain.

Friends

class chat_command_handler


Detailed Description

Definition at line 73 of file menu_events.hpp.


Constructor & Destructor Documentation

events::chat_handler::chat_handler (  ) 

Definition at line 2440 of file menu_events.cpp.

events::chat_handler::~chat_handler (  )  [virtual]

Definition at line 2444 of file menu_events.cpp.


Member Function Documentation

void events::chat_handler::do_speak ( const std::string &  message,
bool  allies_only = false 
) [protected]

Definition at line 2503 of file menu_events.cpp.

References send_chat_message().

Referenced by events::menu_handler::do_speak().

virtual void events::chat_handler::add_chat_message ( const time_t &  time,
const std::string &  speaker,
int  side,
const std::string &  message,
game_display::MESSAGE_TYPE  type = game_display::MESSAGE_PRIVATE 
) [protected, pure virtual]

virtual void events::chat_handler::send_chat_message ( const std::string &  message,
bool  allies_only = false 
) [protected, pure virtual]

void events::chat_handler::send_command ( const std::string &  cmd,
const std::string &  args = "" 
) [protected]

void events::chat_handler::change_logging ( const std::string &  data  )  [protected]

Change the log level of a log domain.

Parameters:
data String of the form: '<level> <domain>'

Definition at line 2450 of file menu_events.cpp.

References _, add_chat_message(), ERR_NG, LOG_NG, lg::set_log_domain_severity(), and vgettext().

Referenced by events::chat_command_handler::do_log().


Friends And Related Function Documentation

friend class chat_command_handler [friend]

Definition at line 88 of file menu_events.hpp.


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs