#include <command_executor.hpp>
Protected Member Functions | |
virtual | ~command_executor () |
Definition at line 31 of file command_executor.hpp.
|
inlineprotectedvirtual |
Definition at line 35 of file command_executor.hpp.
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 83 of file command_executor.hpp.
Referenced by execute_command().
|
pure virtual |
Implemented in play_controller::hotkey_handler, editor::editor_controller, playsingle_controller::hotkey_handler, playmp_controller::hotkey_handler, and help::help_button.
Referenced by execute_action(), controller_base::execute_action(), hotkey::execute_command(), hotkey::command_executor_default::set_button_state(), and controller_base::show_menu().
|
inlinevirtual |
Definition at line 85 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 63 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 72 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 84 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 77 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 62 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 82 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 39 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 38 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 105 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 40 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 43 of file command_executor.hpp.
Referenced by 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 388 of file command_executor.cpp.
References can_execute_command(), hotkey::execute_command(), hotkey::get_hotkey_command(), i, mp_ui_alerts::items, and set_button_state().
Referenced by controller_base::execute_action().
|
virtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 75 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(), goto_leader(), hotkey::HOTKEY_ACCELERATED, 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::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_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_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_TERRAIN_DESCRIPTION, hotkey::HOTKEY_TOGGLE_ELLIPSES, hotkey::HOTKEY_TOGGLE_GRID, 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, hotkey::hotkey_command::id, kill_unit(), label_settings(), label_terrain(), load_game(), hotkey::LUA_CONSOLE, lua_console(), map_screenshot(), move_action(), objectives(), play_replay(), preferences(), quit_confirmation::quit_to_desktop(), quit_confirmation::quit_to_title(), 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(), shout(), show_chat_log(), show_enemy_moves(), show_help(), show_statistics(), speak(), start_network(), status_table(), stop_network(), stop_replay(), terrain_description(), toggle_accelerated_speed(), toggle_ellipses(), toggle_grid(), toggle_shroud_updates(), 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::execute_command(), and hotkey::execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 127 of file command_executor.hpp.
Referenced by get_menu_image().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, editor::editor_controller, and playsingle_controller::hotkey_handler.
Definition at line 129 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 406 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(), hotkey::get_id(), theme::get_menu_item(), display::get_theme(), game_config::path, game_config::images::selected_menu, and game_config::images::unchecked_menu.
Referenced by get_menu_images().
std::vector< std::string > hotkey::command_executor::get_menu_images | ( | display & | disp, |
const std::vector< std::string > & | items_arg | ||
) |
Definition at line 442 of file command_executor.cpp.
References COLUMN_SEPARATOR, theme::get_action_item(), hotkey::get_description(), hotkey::get_id(), get_menu_image(), theme::get_menu_item(), hotkey::get_names(), display::get_theme(), hotkey::HOTKEY_ENDTURN, hotkey::HOTKEY_NULL, i, IMAGE_PREFIX, theme::action::title(), and theme::menu::title().
Referenced by show_menu().
|
pure virtual |
Implemented in hotkey::command_executor_default, and help::help_button.
Referenced by hotkey::execute_command(), and lua_console().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 41 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 64 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 73 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 71 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 108 of file command_executor.hpp.
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 52 of file command_executor.hpp.
Referenced by execute_command().
|
virtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 719 of file command_executor.cpp.
References gui2::tlua_interpreter::APP, gui2::tlua_interpreter::display(), and get_video().
Referenced by execute_command(), and hotkey::command_executor_default::lua_console().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 119 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 106 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 66 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 86 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 65 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 122 of file command_executor.hpp.
Referenced by hotkey::execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 56 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 57 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 45 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and playsingle_controller::hotkey_handler.
Definition at line 48 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 58 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 96 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 91 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 90 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 89 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 93 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 92 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 94 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 95 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 87 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 109 of file command_executor.hpp.
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 49 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 51 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 50 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 112 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 113 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 114 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 111 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 78 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 107 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 104 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 121 of file command_executor.hpp.
Referenced by playsingle_controller::end_turn_enable(), hotkey::event_execute(), execute_action(), playsingle_controller::init_gui(), events::mouse_handler::left_mouse_up(), events::mouse_handler::mouse_wheel_down(), events::mouse_handler::mouse_wheel_left(), events::mouse_handler::mouse_wheel_right(), events::mouse_handler::mouse_wheel_up(), and show_menu().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 61 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 80 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 74 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, play_controller::hotkey_handler, and help::help_button.
Definition at line 79 of file command_executor.hpp.
Referenced by execute_command().
|
virtual |
Reimplemented in play_controller::hotkey_handler, and editor::editor_controller.
Definition at line 361 of file command_executor.cpp.
References hotkey::execute_command(), hotkey::get_hotkey_command(), get_menu_images(), theme::get_menu_item(), display::get_theme(), gui::dialog::hotkeys_style, theme::menu::is_context(), mp_ui_alerts::items, theme::menu::items(), gui::MESSAGE, set_button_state(), gui::dialog::set_menu(), gui::dialog::show(), and display::video().
Referenced by controller_base::show_menu().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 68 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 59 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 70 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 55 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 69 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 88 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 46 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 110 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in play_controller::hotkey_handler.
Definition at line 53 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 54 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 75 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 44 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 47 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 42 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in editor::editor_controller, and play_controller::hotkey_handler.
Definition at line 67 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 76 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 81 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playmp_controller::hotkey_handler.
Definition at line 60 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 102 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 101 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 100 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 98 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 99 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 103 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in playsingle_controller::hotkey_handler.
Definition at line 97 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 118 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 116 of file command_executor.hpp.
Referenced by execute_command().
|
inlinevirtual |
Reimplemented in hotkey::command_executor_default.
Definition at line 117 of file command_executor.hpp.
Referenced by execute_command().