Public Types | |
| typedef map_command_handler< console_handler > | chmap |
Public Types inherited from events::map_command_handler< console_handler > | |
| typedef void(Worker::* | command_handler) () |
| typedef std::map< std::string, command > | command_map |
| typedef std::map< std::string, std::string > | command_alias_map |
Public Member Functions | |
| console_handler (menu_handler &menu_handler) | |
Public Member Functions inherited from events::map_command_handler< console_handler > | |
| map_command_handler () | |
| virtual | ~map_command_handler () |
| bool | empty () const |
| bool | dispatch (std::string cmd) |
| std::vector< std::string > | get_commands_list () const |
| void | command_failed (const std::string &message, bool=false) |
Private Attributes | |
| menu_handler & | menu_handler_ |
| const unsigned int | team_num_ |
Private Attributes inherited from events::map_command_handler< chat_command_handler > | |
| cmd_arg_parser | cap_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from events::map_command_handler< console_handler > | |
| static void | set_cmd_prefix (const std::string &value) |
| static void | set_cmd_flag (bool value) |
| static const std::vector< std::string > | get_aliases (const std::string &cmd) |
Protected Attributes inherited from events::map_command_handler< console_handler > | |
| cmd_arg_parser | cap_ |
Private Types inherited from events::chat_command_handler | |
| typedef map_command_handler< chat_command_handler > | map |
Private Types inherited from events::map_command_handler< chat_command_handler > | |
| typedef void(Worker::* | command_handler) () |
| typedef std::map< std::string, command > | command_map |
| typedef std::map< std::string, std::string > | command_alias_map |
Private Member Functions inherited from events::chat_command_handler | |
| chat_command_handler (chat_handler &chathandler, bool allies_only) | |
| void | do_emote () |
| void | do_network_send () |
| void | do_network_send (const std::string &data) |
| void | do_network_send_req_arg () |
| void | do_whisper () |
| void | do_log () |
| void | do_ignore () |
| void | do_friend () |
| void | do_remove () |
| void | do_display () |
| void | do_version () |
| void | do_clear_messages () |
| void | do_mp_report () |
| void | do_info () |
| Request information about a user from the server. | |
| 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 |
Private Member Functions inherited from events::map_command_handler< chat_command_handler > | |
| map_command_handler () | |
| virtual | ~map_command_handler () |
| bool | empty () const |
| bool | dispatch (std::string cmd) |
| std::vector< std::string > | get_commands_list () const |
| void | command_failed (const std::string &message, bool=false) |
| void | init_map_default () |
| virtual std::string | get_command_flags_description (const command &) const |
| virtual bool | is_enabled (const command &) const |
| virtual void | parse_cmd (const std::string &cmd_string) |
| void | command_failed_need_arg (int argn) |
| void | print_usage () |
| std::string | get_actual_cmd (const std::string &cmd) const |
| const command * | get_command (const std::string &cmd) const |
| command * | get_command (const std::string &cmd) |
| void | help () |
| bool | help_command (const std::string &acmd) |
Static Private Member Functions inherited from events::map_command_handler< chat_command_handler > | |
| static void | set_cmd_prefix (const std::string &value) |
| static void | set_cmd_flag (bool value) |
| static const std::vector< std::string > | get_aliases (const std::string &cmd) |
Definition at line 1101 of file menu_events.cpp.
Definition at line 1105 of file menu_events.cpp.
|
inline |
Definition at line 1106 of file menu_events.cpp.
|
protected |
Definition at line 1770 of file menu_events.cpp.
References display::DEBUG_BENCHMARK.
|
protected |
Definition at line 1806 of file menu_events.cpp.
References _(), id, and synced_context::run_and_throw().
|
protected |
Definition at line 1733 of file menu_events.cpp.
|
protected |
Definition at line 1659 of file menu_events.cpp.
References utils::ranges::find(), team::save_id(), and VGETTEXT.
|
protected |
Definition at line 1976 of file menu_events.cpp.
|
protected |
Definition at line 1701 of file menu_events.cpp.
References string_enums::enum_base< Definition >::get_string(), print(), and VGETTEXT.
|
protected |
Implements the (debug mode) console command that creates a unit.
Definition at line 2044 of file menu_events.cpp.
References _(), unit_type_data::find(), loc, and unit_types.
|
protected |
Definition at line 1916 of file menu_events.cpp.
References prefs::get().
|
protected |
Definition at line 1872 of file menu_events.cpp.
References _(), game_config::mp_debug, print(), and game_config::set_debug().
|
protected |
Definition at line 2027 of file menu_events.cpp.
References prefs::encountered_units(), prefs::get(), i, unit_type_data::types(), and unit_types.
|
protected |
Definition at line 1482 of file menu_events.cpp.
References _(), events::map_command_handler< Worker >::empty(), prefs::get(), team::is_ai(), team::is_droid(), team::is_human(), team::is_local(), team::is_network(), team::is_proxy_human(), prefs::login(), team::make_ai(), team::make_droid(), team::make_human(), team::make_proxy_human(), print(), and VGETTEXT.
|
protected |
Definition at line 2077 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 2062 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1738 of file menu_events.cpp.
References display::DEBUG_FOREGROUND.
|
protected |
Definition at line 1765 of file menu_events.cpp.
References prefs::get(), and prefs::set_show_fps().
|
protected |
Definition at line 2072 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1615 of file menu_events.cpp.
References events::map_command_handler< Worker >::empty(), team::is_idle(), team::is_local_ai(), team::is_local_human(), team::is_network(), team::toggle_idle(), and VGETTEXT.
|
protected |
Definition at line 1791 of file menu_events.cpp.
References game_config::ignore_replay_errors.
|
protected |
Definition at line 1969 of file menu_events.cpp.
References cfg, vconfig::empty_vconfig(), and resources::game_events.
|
protected |
Definition at line 1744 of file menu_events.cpp.
References loc.
|
protected |
Definition at line 1890 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1801 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1882 of file menu_events.cpp.
References _(), game_config::debug, print(), and game_config::set_debug().
|
protected |
Definition at line 1796 of file menu_events.cpp.
References game_config::disable_autosave.
|
protected |
Definition at line 1786 of file menu_events.cpp.
References throw_quit_game_exception().
|
protected |
Definition at line 1473 of file menu_events.cpp.
References image::flush_cache(), and sound::flush_cache().
|
protected |
Definition at line 1775 of file menu_events.cpp.
|
protected |
Definition at line 1780 of file menu_events.cpp.
|
protected |
Definition at line 1921 of file menu_events.cpp.
References prefs::add_alias(), data, prefs::get(), print(), and prefs::write_preferences().
|
protected |
Definition at line 1946 of file menu_events.cpp.
References _(), data, synced_context::run_and_throw(), and value.
|
protected |
Definition at line 1964 of file menu_events.cpp.
References gui2::show_transient_message().
|
protected |
Definition at line 2067 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1596 of file menu_events.cpp.
References loc, synced_context::run_and_throw(), map_location::wml_x(), and map_location::wml_y().
|
protected |
Definition at line 1654 of file menu_events.cpp.
References prefs::get(), and prefs::show_theme_dialog().
|
protected |
Definition at line 2082 of file menu_events.cpp.
References display::DEBUG_COORDINATES.
|
protected |
Definition at line 2093 of file menu_events.cpp.
References display::DEBUG_NUM_BITMAPS.
|
protected |
Definition at line 2087 of file menu_events.cpp.
References display::DEBUG_TERRAIN_CODES.
|
protected |
Definition at line 2099 of file menu_events.cpp.
|
protected |
Definition at line 1854 of file menu_events.cpp.
References data, synced_context::run_and_throw(), and tod_manager::turn().
|
protected |
Definition at line 1866 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 2034 of file menu_events.cpp.
References _(), gui2::CANCEL, prefs::encountered_units(), prefs::get(), gui2::show_message(), and gui2::dialogs::message::yes_no_buttons.
|
protected |
Definition at line 1981 of file menu_events.cpp.
References events::commands_disabled, data, string_enums::enum_base< Definition >::get_enum(), i, loc, synced_context::run_and_throw(), utils::split(), utils::STRIP_SPACES, VGETTEXT, map_location::wml_x(), and map_location::wml_y().
|
protected |
Definition at line 1899 of file menu_events.cpp.
References _(), gui2::OK, gui2::dialogs::message::ok_cancel_buttons, print(), and gui2::show_message().
|
protected |
Definition at line 2112 of file menu_events.cpp.
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1135 of file menu_events.cpp.
References i.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1140 of file menu_events.cpp.
|
inlineprotected |
Definition at line 1210 of file menu_events.cpp.
|
inlineprotected |
Definition at line 54 of file chat_command_handler.hpp.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1145 of file menu_events.cpp.
References n.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1204 of file menu_events.cpp.
References _().
|
inlineprotectedvirtual |
Implements events::map_command_handler< console_handler >.
Definition at line 1233 of file menu_events.cpp.
References _(), prefs::get(), and value.
Definition at line 1220 of file menu_events.cpp.
References c, game_config::debug, synced_context::get_synced_state(), mp::logged_in_as_moderator(), and synced_context::UNSYNCED.
|
inlineprotectedvirtual |
Implements events::map_command_handler< console_handler >.
Definition at line 1228 of file menu_events.cpp.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1130 of file menu_events.cpp.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1121 of file menu_events.cpp.
References h.
|
private |
Definition at line 1347 of file menu_events.cpp.
Definition at line 1348 of file menu_events.cpp.