The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
hotkey::command_executor_default Class Referenceabstract

#include <command_executor.hpp>

Inheritance diagram for hotkey::command_executor_default:
Inheritance graph

Public Member Functions

CVideoget_video ()
 
void set_button_state ()
 
void recalculate_minimap ()
 
void lua_console ()
 
void zoom_in ()
 
void zoom_out ()
 
void zoom_default ()
 
void map_screenshot ()
 
void quit_to_main_menu ()
 
- Public Member Functions inherited from hotkey::command_executor
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 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 std::string get_action_image (hotkey::HOTKEY_COMMAND, int) const
 
virtual ACTION_STATE get_action_state (hotkey::HOTKEY_COMMAND, int) const
 
std::string get_menu_image (display &disp, const std::string &command, int index=-1) const
 
std::vector< std::stringget_menu_images (display &, const std::vector< std::string > &items_arg)
 
virtual void show_menu (const std::vector< std::string > &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_command &command, int index=-1) const =0
 
virtual bool execute_command (const hotkey_command &command, int index=-1, bool press=true)
 

Protected Member Functions

virtual displayget_display ()=0
 
- Protected Member Functions inherited from hotkey::command_executor
virtual ~command_executor ()
 

Static Protected Attributes

static const int zoom_amount = 4
 

Detailed Description

Definition at line 141 of file command_executor.hpp.

Member Function Documentation

virtual display& hotkey::command_executor_default::get_display ( )
protectedpure virtual
CVideo & hotkey::command_executor_default::get_video ( )
virtual

Implements hotkey::command_executor.

Definition at line 706 of file command_executor.cpp.

References get_display(), and display::video().

Referenced by lua_console(), and map_screenshot().

void hotkey::command_executor_default::lua_console ( )
virtual
void hotkey::command_executor_default::map_screenshot ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 736 of file command_executor.cpp.

References _(), get_display(), get_video(), and display::screenshot().

void hotkey::command_executor_default::quit_to_main_menu ( )
void hotkey::command_executor_default::recalculate_minimap ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 702 of file command_executor.cpp.

References get_display(), and display::recalculate_minimap().

void hotkey::command_executor_default::set_button_state ( )
virtual
void hotkey::command_executor_default::zoom_default ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 732 of file command_executor.cpp.

References get_display(), and display::set_default_zoom().

void hotkey::command_executor_default::zoom_in ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 724 of file command_executor.cpp.

References get_display(), display::set_zoom(), and zoom_amount.

void hotkey::command_executor_default::zoom_out ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 728 of file command_executor.cpp.

References get_display(), display::set_zoom(), and zoom_amount.

Member Data Documentation

const int hotkey::command_executor_default::zoom_amount = 4
staticprotected

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