Public Types | |
typedef map_command_handler< console_handler > | chmap |
![]() | |
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) | |
![]() | |
map_command_handler () | |
virtual | ~map_command_handler () |
bool | empty () const |
void | dispatch (std::string cmd) |
std::vector< std::string > | get_commands_list () const |
void | command_failed (const std::string &message, bool=false) |
Protected Member Functions | |
virtual void | register_command (const std::string &cmd, chat_command_handler::command_handler h, const std::string &help="", const std::string &usage="", const std::string &flags="") |
virtual void | register_alias (const std::string &to_cmd, const std::string &cmd) |
virtual std::string | get_arg (unsigned i) const |
virtual std::string | get_cmd () const |
virtual std::string | get_data (unsigned n=1) const |
void | do_refresh () |
void | do_droid () |
void | do_terrain () |
void | do_idle () |
void | do_theme () |
void | do_control () |
void | do_controller () |
void | do_clear () |
void | do_foreground () |
void | do_layers () |
void | do_fps () |
void | do_benchmark () |
void | do_save () |
void | do_save_quit () |
void | do_quit () |
void | do_ignore_replay_errors () |
void | do_nosaves () |
void | do_next_level () |
void | do_choose_level () |
void | do_turn () |
void | do_turn_limit () |
void | do_debug () |
void | do_nodebug () |
void | do_lua () |
void | do_unsafe_lua () |
void | do_custom () |
void | do_set_alias () |
void | do_set_var () |
void | do_show_var () |
void | do_inspect () |
void | do_control_dialog () |
void | do_unit () |
void | do_discover () |
void | do_undiscover () |
void | do_create () |
Implements the (debug mode) console command that creates a unit. More... | |
void | do_fog () |
void | do_shroud () |
void | do_gold () |
void | do_event () |
void | do_toggle_draw_coordinates () |
void | do_toggle_draw_terrain_codes () |
void | do_toggle_draw_num_of_bitmaps () |
void | do_toggle_whiteboard () |
void | do_whiteboard_options () |
std::string | get_flags_description () const |
std::string | get_command_flags_description (const chmap::command &c) const |
bool | is_enabled (const chmap::command &c) const |
void | print (const std::string &title, const std::string &message) |
void | init_map () |
std::string | get_command_flags_description (const map_command_handler< chat_command_handler >::command &c) const |
![]() | |
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) |
Private Attributes | |
menu_handler & | menu_handler_ |
const unsigned int | team_num_ |
![]() | |
cmd_arg_parser | cap_ |
Additional Inherited Members | |
![]() | |
static void | set_help_on_unknown (bool value) |
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) |
![]() | |
cmd_arg_parser | cap_ |
![]() | |
typedef map_command_handler< chat_command_handler > | map |
![]() | |
typedef void(Worker::* | command_handler) () |
typedef std::map< std::string, command > | command_map |
typedef std::map< std::string, std::string > | command_alias_map |
![]() | |
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. More... | |
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 |
![]() | |
map_command_handler () | |
virtual | ~map_command_handler () |
bool | empty () const |
void | 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 void | set_help_on_unknown (bool value) |
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 1081 of file menu_events.cpp.
Definition at line 1085 of file menu_events.cpp.
|
inline |
Definition at line 1086 of file menu_events.cpp.
|
protected |
Definition at line 1767 of file menu_events.cpp.
References display::DEBUG_BENCHMARK.
|
protected |
Definition at line 1803 of file menu_events.cpp.
References _(), config::child_range(), id, preferences::options(), synced_context::run_and_throw(), gui2::dialogs::simple_item_selector::selected_index(), gui2::dialogs::simple_item_selector::set_selected_index(), and gui2::dialogs::modal_dialog::show().
|
protected |
Definition at line 1730 of file menu_events.cpp.
|
protected |
Definition at line 1656 of file menu_events.cpp.
References VGETTEXT.
|
protected |
Definition at line 1973 of file menu_events.cpp.
|
protected |
Definition at line 1698 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 2041 of file menu_events.cpp.
References _(), unit_type_data::find(), events::mouse_handler::get_last_hex(), play_controller::get_mouse_handler_base(), events::mouse_handler::pc_, and unit_types.
|
protected |
Definition at line 1913 of file menu_events.cpp.
References preferences::set_custom_command().
|
protected |
Definition at line 1869 of file menu_events.cpp.
References _(), game_config::mp_debug, print(), and game_config::set_debug().
|
protected |
Definition at line 2024 of file menu_events.cpp.
References preferences::encountered_units(), i, unit_type_data::types(), and unit_types.
|
protected |
Definition at line 1469 of file menu_events.cpp.
References _(), preferences::login(), print(), and VGETTEXT.
|
protected |
Definition at line 2074 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 2059 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1735 of file menu_events.cpp.
References display::DEBUG_FOREGROUND.
|
protected |
Definition at line 1762 of file menu_events.cpp.
References preferences::set_show_fps(), and preferences::show_fps().
|
protected |
Definition at line 2069 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1598 of file menu_events.cpp.
References VGETTEXT.
|
protected |
Definition at line 1788 of file menu_events.cpp.
References game_config::ignore_replay_errors.
|
protected |
Definition at line 1966 of file menu_events.cpp.
References vconfig::empty_vconfig(), and resources::game_events.
|
protected |
Definition at line 1741 of file menu_events.cpp.
References events::mouse_handler::get_last_hex(), display::get_map(), play_controller::get_mouse_handler_base(), gamemap_base::on_board_with_border(), and events::mouse_handler::pc_.
|
protected |
Definition at line 1887 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1798 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1879 of file menu_events.cpp.
References _(), game_config::debug, print(), and game_config::set_debug().
|
protected |
Definition at line 1793 of file menu_events.cpp.
References game_config::disable_autosave.
|
protected |
Definition at line 1783 of file menu_events.cpp.
References throw_quit_game_exception().
|
protected |
Definition at line 1460 of file menu_events.cpp.
References image::flush_cache(), and sound::flush_cache().
|
protected |
Definition at line 1772 of file menu_events.cpp.
|
protected |
Definition at line 1777 of file menu_events.cpp.
|
protected |
Definition at line 1918 of file menu_events.cpp.
References preferences::add_alias(), data, print(), and preferences::write_preferences().
|
protected |
Definition at line 1943 of file menu_events.cpp.
References _(), data, and synced_context::run_and_throw().
|
protected |
Definition at line 1961 of file menu_events.cpp.
References gui2::show_transient_message().
|
protected |
Definition at line 2064 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 1579 of file menu_events.cpp.
References events::mouse_handler::get_last_hex(), play_controller::get_mouse_handler_base(), events::mouse_handler::pc_, synced_context::run_and_throw(), map_location::wml_x(), and map_location::wml_y().
|
protected |
Definition at line 1636 of file menu_events.cpp.
References preferences::show_theme_dialog().
|
protected |
Definition at line 2079 of file menu_events.cpp.
References display::DEBUG_COORDINATES.
|
protected |
Definition at line 2090 of file menu_events.cpp.
References display::DEBUG_NUM_BITMAPS.
|
protected |
Definition at line 2084 of file menu_events.cpp.
References display::DEBUG_TERRAIN_CODES.
|
protected |
Definition at line 2096 of file menu_events.cpp.
|
protected |
Definition at line 1851 of file menu_events.cpp.
References data, synced_context::run_and_throw(), and tod_manager::turn().
|
protected |
Definition at line 1863 of file menu_events.cpp.
References synced_context::run_and_throw().
|
protected |
Definition at line 2031 of file menu_events.cpp.
References _(), gui2::CANCEL, preferences::encountered_units(), gui2::show_message(), and gui2::dialogs::message::yes_no_buttons.
|
protected |
Definition at line 1978 of file menu_events.cpp.
References events::commands_disabled, data, string_enums::enum_base< Definition >::get_enum(), i, synced_context::run_and_throw(), utils::split(), utils::STRIP_SPACES, VGETTEXT, map_location::wml_x(), and map_location::wml_y().
|
protected |
Definition at line 1896 of file menu_events.cpp.
References _(), gui2::OK, gui2::dialogs::message::ok_cancel_buttons, print(), and gui2::show_message().
|
protected |
Definition at line 2109 of file menu_events.cpp.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1115 of file menu_events.cpp.
References i.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1120 of file menu_events.cpp.
|
inlineprotected |
Definition at line 1190 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 1125 of file menu_events.cpp.
References n.
|
inlineprotectedvirtual |
Reimplemented from events::chat_command_handler.
Definition at line 1184 of file menu_events.cpp.
References _().
|
inlineprotectedvirtual |
Reimplemented from events::chat_command_handler.
Definition at line 1213 of file menu_events.cpp.
References _(), a, and preferences::get_alias().
|
inlineprotected |
Definition at line 1200 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 |
Reimplemented from events::chat_command_handler.
Definition at line 1208 of file menu_events.cpp.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1110 of file menu_events.cpp.
|
inlineprotectedvirtual |
Reimplemented from events::map_command_handler< console_handler >.
Definition at line 1101 of file menu_events.cpp.
References h.
|
private |
Definition at line 1327 of file menu_events.cpp.
|
private |
Definition at line 1328 of file menu_events.cpp.