#include <command_executor.hpp>
Classes | |
struct | queued_command |
Public Member Functions | |
virtual void | cycle_units () |
virtual void | cycle_back_units () |
virtual void | end_turn () |
virtual void | goto_leader () |
virtual void | unit_hold_position () |
virtual void | end_unit_turn () |
virtual void | undo () |
virtual void | redo () |
virtual void | terrain_description () |
virtual void | unit_description () |
virtual void | rename_unit () |
virtual void | save_game () |
virtual void | save_replay () |
virtual void | save_map () |
virtual void | load_game () |
virtual void | toggle_ellipses () |
virtual void | toggle_grid () |
virtual void | status_table () |
virtual void | recall () |
virtual void | recruit () |
virtual void | repeat_recruit () |
virtual void | speak () |
virtual void | whisper () |
virtual void | shout () |
virtual void | create_unit () |
virtual void | change_side () |
virtual void | kill_unit () |
virtual void | preferences () |
virtual void | objectives () |
virtual void | unit_list () |
virtual void | show_statistics () |
virtual void | stop_network () |
virtual void | start_network () |
virtual void | label_terrain (bool) |
virtual void | clear_labels () |
virtual void | label_settings () |
virtual void | show_enemy_moves (bool) |
virtual void | toggle_shroud_updates () |
virtual void | update_shroud_now () |
virtual void | continue_move () |
virtual void | search () |
virtual void | show_help () |
virtual void | show_chat_log () |
virtual void | user_command () |
virtual void | custom_command () |
virtual void | ai_formula () |
virtual void | clear_messages () |
virtual void | change_language () |
virtual void | play_replay () |
virtual void | reset_replay () |
virtual void | stop_replay () |
virtual void | replay_next_turn () |
virtual void | replay_next_side () |
virtual void | replay_next_move () |
virtual void | replay_show_everything () |
virtual void | replay_show_each () |
virtual void | replay_show_team1 () |
virtual void | replay_skip_animation () |
virtual void | replay_exit () |
virtual void | whiteboard_toggle () |
virtual void | whiteboard_execute_action () |
virtual void | whiteboard_execute_all_actions () |
virtual void | whiteboard_delete_action () |
virtual void | whiteboard_bump_up_action () |
virtual void | whiteboard_bump_down_action () |
virtual void | whiteboard_suppose_dead () |
virtual void | select_hex () |
virtual void | deselect_hex () |
virtual void | move_action () |
virtual void | select_and_action () |
virtual void | select_teleport () |
virtual void | touch_hex () |
virtual void | left_mouse_click () |
virtual void | right_mouse_click () |
virtual void | toggle_accelerated_speed () |
virtual void | scroll_up (bool) |
virtual void | scroll_down (bool) |
virtual void | scroll_left (bool) |
virtual void | scroll_right (bool) |
virtual void | lua_console () |
virtual void | zoom_in () |
virtual void | zoom_out () |
virtual void | zoom_default () |
virtual void | map_screenshot () |
virtual void | surrender_quit_game () |
virtual void | set_button_state () |
virtual void | recalculate_minimap () |
virtual std::string | get_action_image (const hotkey::ui_command &) const |
virtual ACTION_STATE | get_action_state (const hotkey::ui_command &) const |
std::string | get_menu_image (display &disp, const std::string &command, int index=-1) const |
void | get_menu_images (display &, std::vector< config > &items) |
void | surrender_game () |
virtual void | show_menu (const std::vector< config > &items_arg, int xloc, int yloc, bool context_menu, display &gui) |
void | execute_action (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &gui) |
virtual bool | can_execute_command (const hotkey::ui_command &command) const =0 |
void | queue_command (const SDL_Event &event, int index=-1) |
bool | run_queued_commands () |
void | execute_quit_command () |
void | handle_keyup () |
Protected Member Functions | |
virtual | ~command_executor () |
virtual bool | do_execute_command (const hotkey::ui_command &command, bool press=true, bool release=false) |
Private Member Functions | |
void | execute_command_wrap (const queued_command &command) |
std::vector< queued_command > | filter_command_queue () |
Private Attributes | |
bool | press_event_sent_ = false |
std::vector< queued_command > | command_queue_ |
Definition at line 62 of file command_executor.hpp.
|
inlineprotectedvirtual |
Definition at line 66 of file command_executor.hpp.
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 114 of file command_executor.hpp.
Referenced by do_execute_command().
|
pure virtual |
Implemented in playmp_controller::hotkey_handler, play_controller::hotkey_handler, editor::editor_controller, and playsingle_controller::hotkey_handler.
Referenced by controller_base::execute_action(), execute_action(), execute_command_wrap(), hotkey::command_executor_default::set_button_state(), and controller_base::show_menu().
|
inlinevirtual |
Definition at line 116 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 94 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 103 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 115 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 108 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 93 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 113 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 70 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 69 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 136 of file command_executor.hpp.
Referenced by do_execute_command().
|
protectedvirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 68 of file command_executor.cpp.
References ai_formula(), change_language(), change_side(), clear_labels(), clear_messages(), continue_move(), create_unit(), custom_command(), cycle_back_units(), cycle_units(), deselect_hex(), end_turn(), end_unit_turn(), prefs::get(), goto_leader(), hotkey::HOTKEY_ACCELERATED, hotkey::HOTKEY_ACHIEVEMENTS, hotkey::HOTKEY_AI_FORMULA, hotkey::HOTKEY_BEST_ENEMY_MOVES, hotkey::HOTKEY_CHANGE_SIDE, hotkey::HOTKEY_CHAT_LOG, hotkey::HOTKEY_CLEAR_LABELS, hotkey::HOTKEY_CLEAR_MSG, hotkey::ui_command::hotkey_command, hotkey::HOTKEY_CONTINUE_MOVE, hotkey::HOTKEY_CREATE_UNIT, hotkey::HOTKEY_CUSTOM_CMD, hotkey::HOTKEY_CYCLE_BACK_UNITS, hotkey::HOTKEY_CYCLE_UNITS, hotkey::HOTKEY_DELAY_SHROUD, hotkey::HOTKEY_DESELECT_HEX, hotkey::HOTKEY_END_UNIT_TURN, hotkey::HOTKEY_ENDTURN, hotkey::HOTKEY_HELP, hotkey::HOTKEY_HELP_ABOUT_SAVELOAD, hotkey::HOTKEY_KILL_UNIT, hotkey::HOTKEY_LABEL_SETTINGS, hotkey::HOTKEY_LABEL_TEAM_TERRAIN, hotkey::HOTKEY_LABEL_TERRAIN, hotkey::HOTKEY_LANGUAGE, hotkey::HOTKEY_LEADER, hotkey::HOTKEY_LOAD_GAME, hotkey::HOTKEY_MAP_SCREENSHOT, hotkey::HOTKEY_MINIMAP_CODING_TERRAIN, hotkey::HOTKEY_MINIMAP_CODING_UNIT, hotkey::HOTKEY_MINIMAP_DRAW_TERRAIN, hotkey::HOTKEY_MINIMAP_DRAW_UNITS, hotkey::HOTKEY_MINIMAP_DRAW_VILLAGES, hotkey::HOTKEY_MOVE_ACTION, hotkey::HOTKEY_OBJECTIVES, hotkey::HOTKEY_PREFERENCES, hotkey::HOTKEY_QUIT_GAME, hotkey::HOTKEY_QUIT_TO_DESKTOP, hotkey::HOTKEY_RECALL, hotkey::HOTKEY_RECRUIT, hotkey::HOTKEY_REDO, hotkey::HOTKEY_RENAME_UNIT, hotkey::HOTKEY_REPEAT_RECRUIT, hotkey::HOTKEY_REPLAY_EXIT, hotkey::HOTKEY_REPLAY_NEXT_MOVE, hotkey::HOTKEY_REPLAY_NEXT_SIDE, hotkey::HOTKEY_REPLAY_NEXT_TURN, hotkey::HOTKEY_REPLAY_PLAY, hotkey::HOTKEY_REPLAY_RESET, hotkey::HOTKEY_REPLAY_SHOW_EACH, hotkey::HOTKEY_REPLAY_SHOW_EVERYTHING, hotkey::HOTKEY_REPLAY_SHOW_TEAM1, hotkey::HOTKEY_REPLAY_SKIP_ANIMATION, hotkey::HOTKEY_REPLAY_STOP, hotkey::HOTKEY_SAVE_GAME, hotkey::HOTKEY_SAVE_MAP, hotkey::HOTKEY_SAVE_REPLAY, hotkey::HOTKEY_SCROLL_DOWN, hotkey::HOTKEY_SCROLL_LEFT, hotkey::HOTKEY_SCROLL_RIGHT, hotkey::HOTKEY_SCROLL_UP, hotkey::HOTKEY_SEARCH, hotkey::HOTKEY_SELECT_AND_ACTION, hotkey::HOTKEY_SELECT_HEX, hotkey::HOTKEY_SHOW_ENEMY_MOVES, hotkey::HOTKEY_SPEAK, hotkey::HOTKEY_SPEAK_ALL, hotkey::HOTKEY_SPEAK_ALLY, hotkey::HOTKEY_START_NETWORK, hotkey::HOTKEY_STATISTICS, hotkey::HOTKEY_STATUS_TABLE, hotkey::HOTKEY_STOP_NETWORK, hotkey::HOTKEY_SURRENDER, hotkey::HOTKEY_TELEPORT_UNIT, hotkey::HOTKEY_TERRAIN_DESCRIPTION, hotkey::HOTKEY_TOGGLE_ELLIPSES, hotkey::HOTKEY_TOGGLE_GRID, hotkey::HOTKEY_TOUCH_HEX, hotkey::HOTKEY_UNDO, hotkey::HOTKEY_UNIT_DESCRIPTION, hotkey::HOTKEY_UNIT_HOLD_POSITION, hotkey::HOTKEY_UNIT_LIST, hotkey::HOTKEY_UPDATE_SHROUD, hotkey::HOTKEY_USER_CMD, hotkey::HOTKEY_WB_BUMP_DOWN_ACTION, hotkey::HOTKEY_WB_BUMP_UP_ACTION, hotkey::HOTKEY_WB_DELETE_ACTION, hotkey::HOTKEY_WB_EXECUTE_ACTION, hotkey::HOTKEY_WB_EXECUTE_ALL_ACTIONS, hotkey::HOTKEY_WB_SUPPOSE_DEAD, hotkey::HOTKEY_WB_TOGGLE, hotkey::HOTKEY_ZOOM_DEFAULT, hotkey::HOTKEY_ZOOM_IN, hotkey::HOTKEY_ZOOM_OUT, kill_unit(), label_settings(), label_terrain(), load_game(), lua_console(), hotkey::LUA_CONSOLE, map_screenshot(), move_action(), objectives(), play_replay(), preferences(), quit_confirmation::quit_to_desktop(), quit_confirmation::quit_to_title(), recalculate_minimap(), recall(), recruit(), redo(), rename_unit(), repeat_recruit(), replay_exit(), replay_next_move(), replay_next_side(), replay_next_turn(), replay_show_each(), replay_show_everything(), replay_show_team1(), replay_skip_animation(), reset_replay(), save_game(), save_map(), save_replay(), scroll_down(), scroll_left(), scroll_right(), scroll_up(), search(), select_and_action(), select_hex(), select_teleport(), shout(), gui2::dialogs::modal_dialog::show(), show_chat_log(), show_enemy_moves(), show_help(), help::show_help(), show_statistics(), speak(), start_network(), status_table(), stop_network(), stop_replay(), surrender_game(), gui2::switch_theme(), terrain_description(), toggle_accelerated_speed(), toggle_ellipses(), toggle_grid(), toggle_shroud_updates(), touch_hex(), undo(), unit_description(), unit_hold_position(), unit_list(), update_shroud_now(), user_command(), whisper(), whiteboard_bump_down_action(), whiteboard_bump_up_action(), whiteboard_delete_action(), whiteboard_execute_action(), whiteboard_execute_all_actions(), whiteboard_suppose_dead(), whiteboard_toggle(), zoom_default(), zoom_in(), and zoom_out().
Referenced by editor::editor_controller::do_execute_command(), execute_action(), execute_command_wrap(), execute_quit_command(), and show_menu().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 71 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 74 of file command_executor.hpp.
Referenced by do_execute_command().
void hotkey::command_executor::execute_action | ( | const std::vector< std::string > & | items_arg, |
int | xloc, | ||
int | yloc, | ||
bool | context_menu, | ||
display & | gui | ||
) |
Definition at line 441 of file command_executor.cpp.
References can_execute_command(), do_execute_command(), i, and set_button_state().
Referenced by controller_base::execute_action().
|
private |
Definition at line 612 of file command_executor.cpp.
References _(), can_execute_command(), hotkey::command_executor::queued_command::command, hotkey::hotkey_command::command, DBG_G, do_execute_command(), prefs::get(), hotkey::HOTKEY_ANIMATE_MAP, hotkey::HOTKEY_FULLSCREEN, hotkey::HOTKEY_MOUSE_SCROLL, hotkey::HOTKEY_MUTE, hotkey::HOTKEY_SCREENSHOT, hotkey::command_executor::queued_command::index, gui2::dialogs::make_screenshot(), gui2::dialogs::music_on(), prefs::music_on(), hotkey::command_executor::queued_command::press, hotkey::command_executor::queued_command::release, prefs::set_music(), prefs::set_sound(), gui2::dialogs::sound(), prefs::sound(), and video::toggle_fullscreen().
Referenced by run_queued_commands().
|
inline |
Definition at line 181 of file command_executor.hpp.
References do_execute_command(), hotkey::hotkey_command::get_command_by_command(), and hotkey::HOTKEY_QUIT_GAME.
Referenced by controller_base::handle_event().
|
private |
A command plus "key released" flag. Otherwise, we will filter out key releases that are preceded by a keypress.
Definition at line 731 of file command_executor.cpp.
References command_queue_.
Referenced by run_queued_commands().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 160 of file command_executor.hpp.
Referenced by get_menu_image().
|
inlinevirtual |
Reimplemented in editor::editor_controller, playsingle_controller::hotkey_handler, and play_controller::hotkey_handler.
Definition at line 162 of file command_executor.hpp.
References hotkey::ACTION_STATELESS.
Referenced by get_menu_image(), and hotkey::command_executor_default::set_button_state().
std::string hotkey::command_executor::get_menu_image | ( | display & | disp, |
const std::string & | command, | ||
int | index = -1 |
||
) | const |
Definition at line 459 of file command_executor.cpp.
References hotkey::ACTION_DESELECTED, hotkey::ACTION_OFF, hotkey::ACTION_ON, hotkey::ACTION_SELECTED, game_config::images::checked_menu, game_config::images::deselected_menu, filesystem::file_exists(), get_action_image(), get_action_state(), theme::get_menu_item(), display::get_theme(), utf8::index(), game_config::path, game_config::images::selected_menu, and game_config::images::unchecked_menu.
Referenced by get_menu_images().
Definition at line 495 of file command_executor.cpp.
References b, hotkey::hotkey_command::command, hotkey::hotkey_command::description, theme::get_action_item(), hotkey::get_hotkey_command(), get_menu_image(), theme::get_menu_item(), hotkey::get_names(), display::get_theme(), hotkey::HOTKEY_ENDTURN, hotkey::HOTKEY_NULL, i, markup::img(), and theme::menu::title().
Referenced by show_menu().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 72 of file command_executor.hpp.
Referenced by do_execute_command().
|
inline |
Definition at line 187 of file command_executor.hpp.
References press_event_sent_.
Referenced by hotkey::keyup_event().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 95 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 104 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 102 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 141 of file command_executor.hpp.
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 83 of file command_executor.hpp.
Referenced by do_execute_command().
|
virtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 777 of file command_executor.cpp.
References gui2::dialogs::lua_interpreter::APP, and gui2::dialogs::lua_interpreter::display().
Referenced by do_execute_command(), and hotkey::command_executor_default::lua_console().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 152 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 137 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 97 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 117 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 96 of file command_executor.hpp.
Referenced by do_execute_command().
void hotkey::command_executor::queue_command | ( | const SDL_Event & | event, |
int | index = -1 |
||
) |
Definition at line 583 of file command_executor.cpp.
References command_queue_, hotkey::get_hotkey(), hotkey::get_hotkey_command(), utf8::index(), LOG_HK, and press_event_sent_.
Referenced by hotkey::event_queue().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 156 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 87 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 88 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 76 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler, and editor::editor_controller.
Definition at line 79 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 89 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 127 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 122 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 121 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 120 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 124 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 123 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 125 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 126 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 118 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 142 of file command_executor.hpp.
bool hotkey::command_executor::run_queued_commands | ( | ) |
Definition at line 752 of file command_executor.cpp.
References execute_command_wrap(), and filter_command_queue().
Referenced by hotkey::run_events().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 80 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 82 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 81 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 145 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 146 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 147 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 144 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 109 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 138 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 135 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 139 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 155 of file command_executor.hpp.
Referenced by playsingle_controller::end_turn_enable(), hotkey::event_queue(), execute_action(), playsingle_controller::init_gui(), display::queue_rerender(), hotkey::run_events(), and show_menu().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 92 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 111 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 105 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 110 of file command_executor.hpp.
Referenced by do_execute_command().
|
virtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 412 of file command_executor.cpp.
References do_execute_command(), get_menu_images(), sdl::get_mouse_location(), theme::menu::is_context(), theme::menu::items(), gui2::dialogs::drop_down_menu::selected_item(), set_button_state(), and gui2::dialogs::modal_dialog::show().
Referenced by controller_base::show_menu().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 99 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 90 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 101 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 86 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 100 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 119 of file command_executor.hpp.
Referenced by do_execute_command().
void hotkey::command_executor::surrender_game | ( | ) |
Definition at line 403 of file command_executor.cpp.
References _(), gui2::CANCEL, resources::controller, display::get_singleton(), play_controller::is_linger_mode(), play_controller::is_observer(), gui2::show_message(), playmp_controller::surrender(), display::viewing_team_index(), and gui2::dialogs::message::yes_no_buttons.
Referenced by do_execute_command().
|
inlinevirtual |
Definition at line 153 of file command_executor.hpp.
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 77 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 143 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 84 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 85 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 106 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 140 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 75 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 78 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 73 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 98 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 107 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 112 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 91 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 133 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 132 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 131 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 129 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 130 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 134 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 128 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 151 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 149 of file command_executor.hpp.
Referenced by do_execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 150 of file command_executor.hpp.
Referenced by do_execute_command().
|
private |
Definition at line 212 of file command_executor.hpp.
Referenced by filter_command_queue(), and queue_command().
|
private |
Definition at line 211 of file command_executor.hpp.
Referenced by handle_keyup(), and queue_command().