

Public Types | |
| typedef map_command_handler < chat_command_handler > | map |
Public Member Functions | |
| chat_command_handler (chat_handler &chathandler, bool allies_only) | |
Protected Member Functions | |
| void | do_emote () |
| void | do_network_send () |
| void | do_network_send_req_arg () |
| void | do_room_query () |
| void | do_room_query_noarg () |
| void | do_gen_room_query () |
| void | do_whisper () |
| void | do_chanmsg () |
| void | do_log () |
| void | do_ignore () |
| void | do_friend () |
| void | do_remove () |
| void | do_display () |
| void | do_version () |
| void | do_register () |
| Ask the server to register the currently used nick. | |
| void | do_drop () |
| Ask the server do drop the currently used (and registered) nick. | |
| void | do_set () |
| Update details for the currently used username. | |
| void | do_info () |
| Request information about a user from the server. | |
| void | do_details () |
| Request a list of details that can be set for a username as these might vary depending on the configuration of the server. | |
| std::string | get_flags_description () const |
| std::string | get_command_flags_description (const map_command_handler< chat_command_handler >::command &c) const |
| bool | is_enabled (const map_command_handler< chat_command_handler >::command &c) const |
| void | print (const std::string &title, const std::string &message) |
| void | init_map () |
Private Attributes | |
| chat_handler & | chat_handler_ |
| bool | allies_only_ |
Definition at line 2258 of file menu_events.cpp.
Definition at line 2261 of file menu_events.cpp.
| events::chat_command_handler::chat_command_handler | ( | chat_handler & | chathandler, | |
| bool | allies_only | |||
| ) | [inline] |
Definition at line 2262 of file menu_events.cpp.
| void events::chat_command_handler::do_chanmsg | ( | ) | [protected] |
Definition at line 2853 of file menu_events.cpp.
References events::chat_handler::add_chat_room_message_sent(), chat_handler_, events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), events::map_command_handler< chat_command_handler >::get_data(), and events::chat_handler::send_chat_room_message().
Referenced by init_map().


| void events::chat_command_handler::do_details | ( | ) | [protected] |
Request a list of details that can be set for a username as these might vary depending on the configuration of the server.
Definition at line 3006 of file menu_events.cpp.
References config::add_child(), and network::send_data().
Referenced by init_map().


| void events::chat_command_handler::do_display | ( | ) | [protected] |
Definition at line 2916 of file menu_events.cpp.
References _, preferences::get_friends(), preferences::get_ignores(), utils::join(), and print().
Referenced by init_map().


| void events::chat_command_handler::do_drop | ( | ) | [protected] |
Ask the server do drop the currently used (and registered) nick.
Definition at line 2963 of file menu_events.cpp.
References _, config::add_child(), print(), and network::send_data().
Referenced by init_map().


| void events::chat_command_handler::do_emote | ( | ) | [protected] |
Definition at line 2800 of file menu_events.cpp.
References allies_only_, chat_handler_, events::map_command_handler< chat_command_handler >::get_data(), and events::chat_handler::send_chat_message().
Referenced by init_map().


| void events::chat_command_handler::do_friend | ( | ) | [protected] |
Definition at line 2885 of file menu_events.cpp.
References _, preferences::add_friend(), chat_handler_, events::map_command_handler< chat_command_handler >::command_failed(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), preferences::get_friends(), utils::join(), print(), events::chat_handler::user_relation_changed(), and VGETTEXT.
Referenced by init_map().


| void events::chat_command_handler::do_gen_room_query | ( | ) | [protected] |
Definition at line 2834 of file menu_events.cpp.
References config::add_child(), events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), events::map_command_handler< chat_command_handler >::get_data(), and network::send_data().
Referenced by init_map().


| void events::chat_command_handler::do_ignore | ( | ) | [protected] |
Definition at line 2866 of file menu_events.cpp.
References _, preferences::add_ignore(), chat_handler_, events::map_command_handler< chat_command_handler >::command_failed(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), preferences::get_ignores(), utils::join(), print(), events::chat_handler::user_relation_changed(), and VGETTEXT.
Referenced by init_map().


| void events::chat_command_handler::do_info | ( | ) | [protected] |
Request information about a user from the server.
Definition at line 2992 of file menu_events.cpp.
References _, config::add_child(), events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), events::map_command_handler< chat_command_handler >::get_data(), print(), network::send_data(), and VGETTEXT.
Referenced by init_map().


| void events::chat_command_handler::do_log | ( | ) | [protected] |
Definition at line 2861 of file menu_events.cpp.
References events::chat_handler::change_logging(), chat_handler_, and events::map_command_handler< chat_command_handler >::get_data().
Referenced by init_map().


| void events::chat_command_handler::do_network_send | ( | ) | [protected] |
Definition at line 2805 of file menu_events.cpp.
References chat_handler_, events::map_command_handler< chat_command_handler >::get_cmd(), events::map_command_handler< chat_command_handler >::get_data(), and events::chat_handler::send_command().
Referenced by do_network_send_req_arg(), and init_map().


| void events::chat_command_handler::do_network_send_req_arg | ( | ) | [protected] |
Definition at line 2810 of file menu_events.cpp.
References events::map_command_handler< chat_command_handler >::command_failed_need_arg(), do_network_send(), events::map_command_handler< chat_command_handler >::empty(), and events::map_command_handler< chat_command_handler >::get_data().
Referenced by init_map().


| void events::chat_command_handler::do_register | ( | ) | [protected] |
Ask the server to register the currently used nick.
Definition at line 2938 of file menu_events.cpp.
References _, config::add_child(), events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), events::map_command_handler< chat_command_handler >::get_data(), print(), network::send_data(), and VGETTEXT.
Referenced by init_map().


| void events::chat_command_handler::do_remove | ( | ) | [protected] |
Definition at line 2904 of file menu_events.cpp.
References _, chat_handler_, events::map_command_handler< chat_command_handler >::get_arg(), print(), preferences::remove_friend(), preferences::remove_ignore(), events::chat_handler::user_relation_changed(), and VGETTEXT.
Referenced by init_map().


| void events::chat_command_handler::do_room_query | ( | ) | [protected] |
Definition at line 2824 of file menu_events.cpp.
References config::add_child(), events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), events::map_command_handler< chat_command_handler >::get_cmd(), events::map_command_handler< chat_command_handler >::get_data(), and network::send_data().
Referenced by init_map().


| void events::chat_command_handler::do_room_query_noarg | ( | ) | [protected] |
Definition at line 2816 of file menu_events.cpp.
References config::add_child(), events::map_command_handler< chat_command_handler >::get_cmd(), and network::send_data().
Referenced by init_map().


| void events::chat_command_handler::do_set | ( | ) | [protected] |
Update details for the currently used username.
Definition at line 2974 of file menu_events.cpp.
References _, config::add_child(), events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), events::map_command_handler< chat_command_handler >::get_data(), print(), network::send_data(), and VGETTEXT.
Referenced by init_map().


| void events::chat_command_handler::do_version | ( | ) | [protected] |
Definition at line 2934 of file menu_events.cpp.
References _, print(), and game_config::revision.
Referenced by init_map().


| void events::chat_command_handler::do_whisper | ( | ) | [protected] |
Definition at line 2845 of file menu_events.cpp.
References events::chat_handler::add_whisper_sent(), chat_handler_, events::map_command_handler< chat_command_handler >::command_failed_need_arg(), events::map_command_handler< chat_command_handler >::empty(), events::map_command_handler< chat_command_handler >::get_arg(), events::map_command_handler< chat_command_handler >::get_data(), and events::chat_handler::send_whisper().
Referenced by init_map().


| std::string events::chat_command_handler::get_command_flags_description | ( | const map_command_handler< chat_command_handler >::command & | c | ) | const [inline, protected] |
Definition at line 2305 of file menu_events.cpp.
References _.
| std::string events::chat_command_handler::get_flags_description | ( | ) | const [inline, protected, virtual] |
Reimplemented from events::map_command_handler< chat_command_handler >.
Reimplemented in events::console_handler.
Definition at line 2301 of file menu_events.cpp.
References _.
| void events::chat_command_handler::init_map | ( | ) | [inline, protected, virtual] |
Implements events::map_command_handler< chat_command_handler >.
Reimplemented in events::console_handler.
Definition at line 2325 of file menu_events.cpp.
References _, do_chanmsg(), do_details(), do_display(), do_drop(), do_emote(), do_friend(), do_gen_room_query(), do_ignore(), do_info(), do_log(), do_network_send(), do_network_send_req_arg(), do_register(), do_remove(), do_room_query(), do_room_query_noarg(), do_set(), do_version(), do_whisper(), events::map_command_handler< chat_command_handler >::register_alias(), events::map_command_handler< chat_command_handler >::register_command(), and events::map_command_handler< chat_command_handler >::set_cmd_prefix().

| bool events::chat_command_handler::is_enabled | ( | const map_command_handler< chat_command_handler >::command & | c | ) | const [inline, protected] |
Definition at line 2315 of file menu_events.cpp.
References preferences::is_authenticated().

| void events::chat_command_handler::print | ( | const std::string & | title, | |
| const std::string & | message | |||
| ) | [inline, protected, virtual] |
Implements events::map_command_handler< chat_command_handler >.
Reimplemented in events::console_handler.
Definition at line 2321 of file menu_events.cpp.
References events::chat_handler::add_chat_message(), and chat_handler_.
Referenced by do_display(), do_drop(), do_friend(), do_ignore(), do_info(), do_register(), do_remove(), do_set(), and do_version().


bool events::chat_command_handler::allies_only_ [private] |
Definition at line 2408 of file menu_events.cpp.
Referenced by do_emote().
Definition at line 2407 of file menu_events.cpp.
Referenced by do_chanmsg(), do_emote(), do_friend(), do_ignore(), do_log(), do_network_send(), do_remove(), do_whisper(), and print().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:20:16 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |