hotkey::command_executor Class Reference

#include <hotkeys.hpp>

Inheritance diagram for hotkey::command_executor:

Inheritance graph
[legend]

List of all members.

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 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_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_unit_side ()
virtual void preferences ()
virtual void objectives ()
virtual void unit_list ()
virtual void show_statistics ()
virtual void label_terrain (bool)
virtual void clear_labels ()
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_show_everything ()
virtual void replay_show_each ()
virtual void replay_show_team1 ()
virtual void replay_skip_animation ()
virtual void edit_set_terrain ()
virtual void edit_quit ()
virtual void edit_new_map ()
virtual void edit_load_map ()
virtual void edit_save_map ()
virtual void edit_save_as ()
virtual void edit_set_start_pos ()
virtual void edit_flood_fill ()
virtual void edit_fill_selection ()
virtual void edit_rotate_selection ()
virtual void edit_cut ()
virtual void edit_copy ()
virtual void edit_paste ()
virtual void edit_revert ()
virtual void edit_resize ()
virtual void edit_flip ()
virtual void edit_select_all ()
virtual void edit_draw ()
virtual void edit_refresh ()
virtual void edit_update ()
virtual void edit_auto_update ()
virtual std::string get_action_image (hotkey::HOTKEY_COMMAND, int) const
virtual ACTION_STATE get_action_state (hotkey::HOTKEY_COMMAND) const
std::string get_menu_image (hotkey::HOTKEY_COMMAND command, int index=-1) const
std::vector< std::string > get_menu_images (const std::vector< std::string > &items_arg)
void show_menu (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &gui)
virtual bool can_execute_command (HOTKEY_COMMAND command, int index=-1) const =0
virtual bool execute_command (HOTKEY_COMMAND command, int index=-1)

Protected Member Functions

virtual ~command_executor ()


Detailed Description

Definition at line 173 of file hotkeys.hpp.


Constructor & Destructor Documentation

virtual hotkey::command_executor::~command_executor (  )  [inline, protected, virtual]

Definition at line 176 of file hotkeys.hpp.


Member Function Documentation

virtual void hotkey::command_executor::cycle_units (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 178 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::cycle_back_units (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 179 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::end_turn (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 180 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::goto_leader (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 181 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::unit_hold_position (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 182 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::end_unit_turn (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 183 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::undo (  )  [inline, virtual]

Reimplemented in play_controller, and map_editor::map_editor.

Definition at line 184 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::redo (  )  [inline, virtual]

Reimplemented in play_controller, and map_editor::map_editor.

Definition at line 185 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::unit_description (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 186 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::rename_unit (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 187 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::save_game (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 188 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::save_replay (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 189 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::save_map (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 190 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::load_game (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 191 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::toggle_grid (  )  [inline, virtual]

Reimplemented in play_controller, and map_editor::map_editor.

Definition at line 192 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::status_table (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 193 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::recall (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 194 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::recruit (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 195 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::repeat_recruit (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 196 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::speak (  )  [inline, virtual]

Reimplemented in playmp_controller.

Definition at line 197 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::whisper (  )  [inline, virtual]

Reimplemented in playmp_controller.

Definition at line 198 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::shout (  )  [inline, virtual]

Reimplemented in playmp_controller.

Definition at line 199 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::create_unit (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 200 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::change_unit_side (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 201 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::preferences (  )  [inline, virtual]

Reimplemented in play_controller, replay_controller, and map_editor::map_editor.

Definition at line 202 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::objectives (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 203 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::unit_list (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 204 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::show_statistics (  )  [inline, virtual]

Reimplemented in play_controller, and replay_controller.

Definition at line 205 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::label_terrain ( bool   )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 206 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::clear_labels (  )  [inline, virtual]

Reimplemented in playmp_controller.

Definition at line 207 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::show_enemy_moves ( bool   )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 208 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::toggle_shroud_updates (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 209 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::update_shroud_now (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 210 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::continue_move (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 211 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::search (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 212 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::show_help (  )  [inline, virtual]

Reimplemented in help::help_button, and play_controller.

Definition at line 213 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::show_chat_log (  )  [inline, virtual]

Reimplemented in play_controller.

Definition at line 214 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::user_command (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 215 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::custom_command (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 216 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::ai_formula (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 217 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::clear_messages (  )  [inline, virtual]

Reimplemented in playsingle_controller.

Definition at line 218 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::change_language (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 223 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::play_replay (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 224 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::reset_replay (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 225 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::stop_replay (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 226 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::replay_next_turn (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 227 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::replay_next_side (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 228 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::replay_show_everything (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 229 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::replay_show_each (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 230 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::replay_show_team1 (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 231 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::replay_skip_animation (  )  [inline, virtual]

Reimplemented in replay_controller.

Definition at line 232 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_set_terrain (  )  [inline, virtual]

Definition at line 235 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_quit (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 236 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_new_map (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 237 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_load_map (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 238 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_save_map (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 239 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_save_as (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 240 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_set_start_pos (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 241 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_flood_fill (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 242 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_fill_selection (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 243 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_rotate_selection (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 244 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_cut (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 245 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_copy (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 246 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_paste (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 247 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_revert (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 248 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_resize (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 249 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_flip (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 250 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_select_all (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 251 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_draw (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 252 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_refresh (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 253 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_update (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 254 of file hotkeys.hpp.

Referenced by execute_command().

virtual void hotkey::command_executor::edit_auto_update (  )  [inline, virtual]

Reimplemented in map_editor::map_editor.

Definition at line 255 of file hotkeys.hpp.

Referenced by execute_command().

virtual std::string hotkey::command_executor::get_action_image ( hotkey::HOTKEY_COMMAND  ,
int   
) const [inline, virtual]

Reimplemented in play_controller.

Definition at line 258 of file hotkeys.hpp.

Referenced by get_menu_image().

virtual ACTION_STATE hotkey::command_executor::get_action_state ( hotkey::HOTKEY_COMMAND   )  const [inline, virtual]

Reimplemented in play_controller, and map_editor::map_editor.

Definition at line 260 of file hotkeys.hpp.

References hotkey::ACTION_STATELESS.

Referenced by get_menu_image().

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

std::vector< std::string > hotkey::command_executor::get_menu_images ( const std::vector< std::string > &  items_arg  ) 

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

virtual bool hotkey::command_executor::can_execute_command ( HOTKEY_COMMAND  command,
int  index = -1 
) const [pure virtual]

bool hotkey::command_executor::execute_command ( HOTKEY_COMMAND  command,
int  index = -1 
) [virtual]

Reimplemented in play_controller.

Definition at line 557 of file hotkeys.cpp.

References ai_formula(), change_language(), change_unit_side(), clear_labels(), clear_messages(), continue_move(), create_unit(), custom_command(), cycle_back_units(), cycle_units(), edit_auto_update(), edit_copy(), edit_cut(), edit_draw(), edit_fill_selection(), edit_flip(), edit_flood_fill(), edit_load_map(), edit_new_map(), edit_paste(), edit_quit(), edit_refresh(), edit_resize(), edit_revert(), edit_rotate_selection(), edit_save_as(), edit_save_map(), edit_select_all(), edit_set_start_pos(), edit_set_terrain(), edit_update(), end_turn(), end_unit_turn(), goto_leader(), hotkey::HOTKEY_AI_FORMULA, hotkey::HOTKEY_BEST_ENEMY_MOVES, hotkey::HOTKEY_CHANGE_UNIT_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_EDIT_AUTO_UPDATE, hotkey::HOTKEY_EDIT_COPY, hotkey::HOTKEY_EDIT_CUT, hotkey::HOTKEY_EDIT_DRAW, hotkey::HOTKEY_EDIT_FILL_SELECTION, hotkey::HOTKEY_EDIT_FLIP, hotkey::HOTKEY_EDIT_FLOOD_FILL, hotkey::HOTKEY_EDIT_LOAD_MAP, hotkey::HOTKEY_EDIT_NEW_MAP, hotkey::HOTKEY_EDIT_PASTE, hotkey::HOTKEY_EDIT_QUIT, hotkey::HOTKEY_EDIT_REFRESH, hotkey::HOTKEY_EDIT_RESIZE, hotkey::HOTKEY_EDIT_REVERT, hotkey::HOTKEY_EDIT_ROTATE_SELECTION, hotkey::HOTKEY_EDIT_SAVE_AS, hotkey::HOTKEY_EDIT_SAVE_MAP, hotkey::HOTKEY_EDIT_SELECT_ALL, hotkey::HOTKEY_EDIT_SET_START_POS, hotkey::HOTKEY_EDIT_SET_TERRAIN, hotkey::HOTKEY_EDIT_UPDATE, hotkey::HOTKEY_END_UNIT_TURN, hotkey::HOTKEY_ENDTURN, hotkey::HOTKEY_HELP, hotkey::HOTKEY_LABEL_TEAM_TERRAIN, hotkey::HOTKEY_LABEL_TERRAIN, hotkey::HOTKEY_LANGUAGE, hotkey::HOTKEY_LEADER, hotkey::HOTKEY_LOAD_GAME, hotkey::HOTKEY_OBJECTIVES, hotkey::HOTKEY_PLAY_REPLAY, hotkey::HOTKEY_PREFERENCES, hotkey::HOTKEY_RECALL, hotkey::HOTKEY_RECRUIT, hotkey::HOTKEY_REDO, hotkey::HOTKEY_RENAME_UNIT, hotkey::HOTKEY_REPEAT_RECRUIT, hotkey::HOTKEY_REPLAY_NEXT_SIDE, hotkey::HOTKEY_REPLAY_NEXT_TURN, hotkey::HOTKEY_REPLAY_SHOW_EACH, hotkey::HOTKEY_REPLAY_SHOW_EVERYTHING, hotkey::HOTKEY_REPLAY_SHOW_TEAM1, hotkey::HOTKEY_REPLAY_SKIP_ANIMATION, hotkey::HOTKEY_RESET_REPLAY, hotkey::HOTKEY_SAVE_GAME, hotkey::HOTKEY_SAVE_MAP, hotkey::HOTKEY_SAVE_REPLAY, hotkey::HOTKEY_SEARCH, hotkey::HOTKEY_SHOW_ENEMY_MOVES, hotkey::HOTKEY_SPEAK, hotkey::HOTKEY_SPEAK_ALL, hotkey::HOTKEY_SPEAK_ALLY, hotkey::HOTKEY_STATISTICS, hotkey::HOTKEY_STATUS_TABLE, hotkey::HOTKEY_STOP_REPLAY, 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, label_terrain(), load_game(), objectives(), play_replay(), preferences(), recall(), recruit(), redo(), rename_unit(), repeat_recruit(), 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(), search(), shout(), show_chat_log(), show_enemy_moves(), show_help(), show_statistics(), speak(), status_table(), stop_replay(), toggle_grid(), toggle_shroud_updates(), undo(), unit_description(), unit_hold_position(), unit_list(), update_shroud_now(), user_command(), and whisper().

Referenced by hotkey::execute_command().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs