The Battle for Wesnoth  1.19.7+dev
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
hotkey::command_executor Class Referenceabstract

#include <command_executor.hpp>

Inheritance diagram for hotkey::command_executor:

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_commandfilter_command_queue ()
 

Private Attributes

bool press_event_sent_ = false
 
std::vector< queued_commandcommand_queue_
 

Detailed Description

Definition at line 62 of file command_executor.hpp.

Constructor & Destructor Documentation

◆ ~command_executor()

virtual hotkey::command_executor::~command_executor ( )
inlineprotectedvirtual

Definition at line 66 of file command_executor.hpp.

Member Function Documentation

◆ ai_formula()

virtual void hotkey::command_executor::ai_formula ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 114 of file command_executor.hpp.

Referenced by do_execute_command().

◆ can_execute_command()

virtual bool hotkey::command_executor::can_execute_command ( const hotkey::ui_command command) const
pure virtual

◆ change_language()

virtual void hotkey::command_executor::change_language ( )
inlinevirtual

Definition at line 116 of file command_executor.hpp.

Referenced by do_execute_command().

◆ change_side()

virtual void hotkey::command_executor::change_side ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 94 of file command_executor.hpp.

Referenced by do_execute_command().

◆ clear_labels()

virtual void hotkey::command_executor::clear_labels ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 103 of file command_executor.hpp.

Referenced by do_execute_command().

◆ clear_messages()

virtual void hotkey::command_executor::clear_messages ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 115 of file command_executor.hpp.

Referenced by do_execute_command().

◆ continue_move()

virtual void hotkey::command_executor::continue_move ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 108 of file command_executor.hpp.

Referenced by do_execute_command().

◆ create_unit()

virtual void hotkey::command_executor::create_unit ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 93 of file command_executor.hpp.

Referenced by do_execute_command().

◆ custom_command()

virtual void hotkey::command_executor::custom_command ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 113 of file command_executor.hpp.

Referenced by do_execute_command().

◆ cycle_back_units()

virtual void hotkey::command_executor::cycle_back_units ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 70 of file command_executor.hpp.

Referenced by do_execute_command().

◆ cycle_units()

virtual void hotkey::command_executor::cycle_units ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 69 of file command_executor.hpp.

Referenced by do_execute_command().

◆ deselect_hex()

virtual void hotkey::command_executor::deselect_hex ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 136 of file command_executor.hpp.

Referenced by do_execute_command().

◆ do_execute_command()

bool hotkey::command_executor::do_execute_command ( const hotkey::ui_command command,
bool  press = true,
bool  release = false 
)
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().

◆ end_turn()

virtual void hotkey::command_executor::end_turn ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 71 of file command_executor.hpp.

Referenced by do_execute_command().

◆ end_unit_turn()

virtual void hotkey::command_executor::end_unit_turn ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 74 of file command_executor.hpp.

Referenced by do_execute_command().

◆ execute_action()

void hotkey::command_executor::execute_action ( const std::vector< std::string > &  items_arg,
int  xloc,
int  yloc,
bool  context_menu,
display gui 
)

◆ execute_command_wrap()

void hotkey::command_executor::execute_command_wrap ( const queued_command command)
private

◆ execute_quit_command()

void hotkey::command_executor::execute_quit_command ( )
inline

◆ filter_command_queue()

std::vector< command_executor::queued_command > hotkey::command_executor::filter_command_queue ( )
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().

◆ get_action_image()

virtual std::string hotkey::command_executor::get_action_image ( const hotkey::ui_command ) const
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 160 of file command_executor.hpp.

Referenced by get_menu_image().

◆ get_action_state()

virtual ACTION_STATE hotkey::command_executor::get_action_state ( const hotkey::ui_command ) const
inlinevirtual

◆ get_menu_image()

std::string hotkey::command_executor::get_menu_image ( display disp,
const std::string &  command,
int  index = -1 
) const

◆ get_menu_images()

void hotkey::command_executor::get_menu_images ( display disp,
std::vector< config > &  items 
)

◆ goto_leader()

virtual void hotkey::command_executor::goto_leader ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 72 of file command_executor.hpp.

Referenced by do_execute_command().

◆ handle_keyup()

void hotkey::command_executor::handle_keyup ( )
inline

Definition at line 187 of file command_executor.hpp.

References press_event_sent_.

Referenced by hotkey::keyup_event().

◆ kill_unit()

virtual void hotkey::command_executor::kill_unit ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 95 of file command_executor.hpp.

Referenced by do_execute_command().

◆ label_settings()

virtual void hotkey::command_executor::label_settings ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 104 of file command_executor.hpp.

Referenced by do_execute_command().

◆ label_terrain()

virtual void hotkey::command_executor::label_terrain ( bool  )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 102 of file command_executor.hpp.

Referenced by do_execute_command().

◆ left_mouse_click()

virtual void hotkey::command_executor::left_mouse_click ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 141 of file command_executor.hpp.

◆ load_game()

virtual void hotkey::command_executor::load_game ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 83 of file command_executor.hpp.

Referenced by do_execute_command().

◆ lua_console()

void hotkey::command_executor::lua_console ( )
virtual

◆ map_screenshot()

virtual void hotkey::command_executor::map_screenshot ( )
inlinevirtual

Reimplemented in hotkey::command_executor_default.

Definition at line 152 of file command_executor.hpp.

Referenced by do_execute_command().

◆ move_action()

virtual void hotkey::command_executor::move_action ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 137 of file command_executor.hpp.

Referenced by do_execute_command().

◆ objectives()

virtual void hotkey::command_executor::objectives ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 97 of file command_executor.hpp.

Referenced by do_execute_command().

◆ play_replay()

virtual void hotkey::command_executor::play_replay ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 117 of file command_executor.hpp.

Referenced by do_execute_command().

◆ preferences()

virtual void hotkey::command_executor::preferences ( )
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().

◆ queue_command()

void hotkey::command_executor::queue_command ( const SDL_Event &  event,
int  index = -1 
)

◆ recalculate_minimap()

virtual void hotkey::command_executor::recalculate_minimap ( )
inlinevirtual

Reimplemented in hotkey::command_executor_default.

Definition at line 156 of file command_executor.hpp.

Referenced by do_execute_command().

◆ recall()

virtual void hotkey::command_executor::recall ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 87 of file command_executor.hpp.

Referenced by do_execute_command().

◆ recruit()

virtual void hotkey::command_executor::recruit ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 88 of file command_executor.hpp.

Referenced by do_execute_command().

◆ redo()

virtual void hotkey::command_executor::redo ( )
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().

◆ rename_unit()

virtual void hotkey::command_executor::rename_unit ( )
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().

◆ repeat_recruit()

virtual void hotkey::command_executor::repeat_recruit ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 89 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_exit()

virtual void hotkey::command_executor::replay_exit ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 127 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_next_move()

virtual void hotkey::command_executor::replay_next_move ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 122 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_next_side()

virtual void hotkey::command_executor::replay_next_side ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 121 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_next_turn()

virtual void hotkey::command_executor::replay_next_turn ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 120 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_show_each()

virtual void hotkey::command_executor::replay_show_each ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 124 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_show_everything()

virtual void hotkey::command_executor::replay_show_everything ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 123 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_show_team1()

virtual void hotkey::command_executor::replay_show_team1 ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 125 of file command_executor.hpp.

Referenced by do_execute_command().

◆ replay_skip_animation()

virtual void hotkey::command_executor::replay_skip_animation ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 126 of file command_executor.hpp.

Referenced by do_execute_command().

◆ reset_replay()

virtual void hotkey::command_executor::reset_replay ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 118 of file command_executor.hpp.

Referenced by do_execute_command().

◆ right_mouse_click()

virtual void hotkey::command_executor::right_mouse_click ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 142 of file command_executor.hpp.

◆ run_queued_commands()

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().

◆ save_game()

virtual void hotkey::command_executor::save_game ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 80 of file command_executor.hpp.

Referenced by do_execute_command().

◆ save_map()

virtual void hotkey::command_executor::save_map ( )
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().

◆ save_replay()

virtual void hotkey::command_executor::save_replay ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 81 of file command_executor.hpp.

Referenced by do_execute_command().

◆ scroll_down()

virtual void hotkey::command_executor::scroll_down ( bool  )
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().

◆ scroll_left()

virtual void hotkey::command_executor::scroll_left ( bool  )
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().

◆ scroll_right()

virtual void hotkey::command_executor::scroll_right ( bool  )
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().

◆ scroll_up()

virtual void hotkey::command_executor::scroll_up ( bool  )
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().

◆ search()

virtual void hotkey::command_executor::search ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 109 of file command_executor.hpp.

Referenced by do_execute_command().

◆ select_and_action()

virtual void hotkey::command_executor::select_and_action ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 138 of file command_executor.hpp.

Referenced by do_execute_command().

◆ select_hex()

virtual void hotkey::command_executor::select_hex ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 135 of file command_executor.hpp.

Referenced by do_execute_command().

◆ select_teleport()

virtual void hotkey::command_executor::select_teleport ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 139 of file command_executor.hpp.

Referenced by do_execute_command().

◆ set_button_state()

virtual void hotkey::command_executor::set_button_state ( )
inlinevirtual

◆ shout()

virtual void hotkey::command_executor::shout ( )
inlinevirtual

Reimplemented in playmp_controller::hotkey_handler.

Definition at line 92 of file command_executor.hpp.

Referenced by do_execute_command().

◆ show_chat_log()

virtual void hotkey::command_executor::show_chat_log ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 111 of file command_executor.hpp.

Referenced by do_execute_command().

◆ show_enemy_moves()

virtual void hotkey::command_executor::show_enemy_moves ( bool  )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 105 of file command_executor.hpp.

Referenced by do_execute_command().

◆ show_help()

virtual void hotkey::command_executor::show_help ( )
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().

◆ show_menu()

void hotkey::command_executor::show_menu ( const std::vector< config > &  items_arg,
int  xloc,
int  yloc,
bool  context_menu,
display gui 
)
virtual

◆ show_statistics()

virtual void hotkey::command_executor::show_statistics ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 99 of file command_executor.hpp.

Referenced by do_execute_command().

◆ speak()

virtual void hotkey::command_executor::speak ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 90 of file command_executor.hpp.

Referenced by do_execute_command().

◆ start_network()

virtual void hotkey::command_executor::start_network ( )
inlinevirtual

Reimplemented in playmp_controller::hotkey_handler.

Definition at line 101 of file command_executor.hpp.

Referenced by do_execute_command().

◆ status_table()

virtual void hotkey::command_executor::status_table ( )
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().

◆ stop_network()

virtual void hotkey::command_executor::stop_network ( )
inlinevirtual

Reimplemented in playmp_controller::hotkey_handler.

Definition at line 100 of file command_executor.hpp.

Referenced by do_execute_command().

◆ stop_replay()

virtual void hotkey::command_executor::stop_replay ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 119 of file command_executor.hpp.

Referenced by do_execute_command().

◆ surrender_game()

void hotkey::command_executor::surrender_game ( )

◆ surrender_quit_game()

virtual void hotkey::command_executor::surrender_quit_game ( )
inlinevirtual

Definition at line 153 of file command_executor.hpp.

◆ terrain_description()

virtual void hotkey::command_executor::terrain_description ( )
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().

◆ toggle_accelerated_speed()

virtual void hotkey::command_executor::toggle_accelerated_speed ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 143 of file command_executor.hpp.

Referenced by do_execute_command().

◆ toggle_ellipses()

virtual void hotkey::command_executor::toggle_ellipses ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 84 of file command_executor.hpp.

Referenced by do_execute_command().

◆ toggle_grid()

virtual void hotkey::command_executor::toggle_grid ( )
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().

◆ toggle_shroud_updates()

virtual void hotkey::command_executor::toggle_shroud_updates ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 106 of file command_executor.hpp.

Referenced by do_execute_command().

◆ touch_hex()

virtual void hotkey::command_executor::touch_hex ( )
inlinevirtual

Reimplemented in play_controller::hotkey_handler.

Definition at line 140 of file command_executor.hpp.

Referenced by do_execute_command().

◆ undo()

virtual void hotkey::command_executor::undo ( )
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().

◆ unit_description()

virtual void hotkey::command_executor::unit_description ( )
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().

◆ unit_hold_position()

virtual void hotkey::command_executor::unit_hold_position ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 73 of file command_executor.hpp.

Referenced by do_execute_command().

◆ unit_list()

virtual void hotkey::command_executor::unit_list ( )
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().

◆ update_shroud_now()

virtual void hotkey::command_executor::update_shroud_now ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 107 of file command_executor.hpp.

Referenced by do_execute_command().

◆ user_command()

virtual void hotkey::command_executor::user_command ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 112 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whisper()

virtual void hotkey::command_executor::whisper ( )
inlinevirtual

Reimplemented in playmp_controller::hotkey_handler.

Definition at line 91 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whiteboard_bump_down_action()

virtual void hotkey::command_executor::whiteboard_bump_down_action ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 133 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whiteboard_bump_up_action()

virtual void hotkey::command_executor::whiteboard_bump_up_action ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 132 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whiteboard_delete_action()

virtual void hotkey::command_executor::whiteboard_delete_action ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 131 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whiteboard_execute_action()

virtual void hotkey::command_executor::whiteboard_execute_action ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 129 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whiteboard_execute_all_actions()

virtual void hotkey::command_executor::whiteboard_execute_all_actions ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 130 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whiteboard_suppose_dead()

virtual void hotkey::command_executor::whiteboard_suppose_dead ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 134 of file command_executor.hpp.

Referenced by do_execute_command().

◆ whiteboard_toggle()

virtual void hotkey::command_executor::whiteboard_toggle ( )
inlinevirtual

Reimplemented in playsingle_controller::hotkey_handler.

Definition at line 128 of file command_executor.hpp.

Referenced by do_execute_command().

◆ zoom_default()

virtual void hotkey::command_executor::zoom_default ( )
inlinevirtual

Reimplemented in hotkey::command_executor_default.

Definition at line 151 of file command_executor.hpp.

Referenced by do_execute_command().

◆ zoom_in()

virtual void hotkey::command_executor::zoom_in ( )
inlinevirtual

Reimplemented in hotkey::command_executor_default.

Definition at line 149 of file command_executor.hpp.

Referenced by do_execute_command().

◆ zoom_out()

virtual void hotkey::command_executor::zoom_out ( )
inlinevirtual

Reimplemented in hotkey::command_executor_default.

Definition at line 150 of file command_executor.hpp.

Referenced by do_execute_command().

Member Data Documentation

◆ command_queue_

std::vector<queued_command> hotkey::command_executor::command_queue_
private

Definition at line 212 of file command_executor.hpp.

Referenced by filter_command_queue(), and queue_command().

◆ press_event_sent_

bool hotkey::command_executor::press_event_sent_ = false
private

Definition at line 211 of file command_executor.hpp.

Referenced by handle_keyup(), and queue_command().


The documentation for this class was generated from the following files: