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 | Protected Attributes | List of all members
playsingle_controller::hotkey_handler Class Reference

#include <hotkey_handler_sp.hpp>

Inheritance diagram for playsingle_controller::hotkey_handler:
Inheritance graph

Public Member Functions

 hotkey_handler (playsingle_controller &, saved_game &)
 
 ~hotkey_handler ()
 
virtual void recruit ()
 
virtual void repeat_recruit ()
 
virtual void recall ()
 
virtual bool can_execute_command (const hotkey::hotkey_command &command, int index=-1) const
 Check if a command can be executed. More...
 
virtual void toggle_shroud_updates ()
 
virtual void update_shroud_now ()
 
virtual void end_turn ()
 
virtual void rename_unit ()
 
virtual void create_unit ()
 
virtual void change_side ()
 
virtual void kill_unit ()
 
virtual void label_terrain (bool)
 
virtual void clear_labels ()
 
virtual void label_settings ()
 
virtual void continue_move ()
 
virtual void unit_hold_position ()
 
virtual void end_unit_turn ()
 
virtual void user_command ()
 
virtual void custom_command ()
 
virtual void ai_formula ()
 
virtual void clear_messages ()
 
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 ()
 
replay_controllerget_replay_controller ()
 
virtual void stop_replay () override
 
virtual void play_replay () override
 
virtual void replay_next_turn () override
 
virtual void replay_next_side () override
 
virtual void replay_next_move () override
 
virtual void replay_show_everything () override
 
virtual void replay_show_each () override
 
virtual void replay_show_team1 () override
 
virtual void reset_replay () override
 
virtual void replay_exit () override
 
virtual void load_autosave (const std::string &filename)
 
virtual hotkey::ACTION_STATE get_action_state (hotkey::HOTKEY_COMMAND command, int index) const
 
- Public Member Functions inherited from play_controller::hotkey_handler
 hotkey_handler (play_controller &, saved_game &)
 
 ~hotkey_handler ()
 
virtual void objectives ()
 
virtual void show_statistics ()
 
virtual void unit_list ()
 
virtual void left_mouse_click ()
 
virtual void move_action ()
 
virtual void select_and_action ()
 
virtual void select_hex ()
 
virtual void deselect_hex ()
 
virtual void right_mouse_click ()
 
virtual void status_table ()
 
virtual void save_game ()
 
virtual void save_replay ()
 
virtual void save_map ()
 
virtual void load_game ()
 
virtual void preferences ()
 
virtual void show_chat_log ()
 
virtual void show_help ()
 
virtual void cycle_units ()
 
virtual void cycle_back_units ()
 
virtual void undo ()
 
virtual void redo ()
 
virtual void show_enemy_moves (bool ignore_units)
 
virtual void goto_leader ()
 
virtual void unit_description ()
 
virtual void terrain_description ()
 
virtual void toggle_ellipses ()
 
virtual void toggle_grid ()
 
virtual void search ()
 
virtual void toggle_accelerated_speed ()
 
virtual void scroll_up (bool on)
 
virtual void scroll_down (bool on)
 
virtual void scroll_left (bool on)
 
virtual void scroll_right (bool on)
 
virtual void replay_skip_animation () override
 
virtual std::string get_action_image (hotkey::HOTKEY_COMMAND, int index) const
 
virtual bool execute_command (const hotkey::hotkey_command &command, int index=-1, bool press=true)
 
void show_menu (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &disp)
 
bool in_context_menu (hotkey::HOTKEY_COMMAND command) const
 Determines whether the command should be in the context menu or not. More...
 
- Public Member Functions inherited from hotkey::command_executor_default
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 speak ()
 
virtual void whisper ()
 
virtual void shout ()
 
virtual void stop_network ()
 
virtual void start_network ()
 
virtual void change_language ()
 
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)
 
void execute_action (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &gui)
 

Protected Member Functions

bool is_observer () const
 
- Protected Member Functions inherited from play_controller::hotkey_handler
displayget_display ()
 
game_displaygui () const
 
game_stategamestate ()
 
const game_stategamestate () const
 
bool browse () const
 
bool linger () const
 
const teamviewing_team () const
 
bool viewing_team_is_playing () const
 
- Protected Member Functions inherited from hotkey::command_executor
virtual ~command_executor ()
 

Protected Attributes

playsingle_controllerplaysingle_controller_
 
boost::shared_ptr< wb::managerwhiteboard_manager_
 
- Protected Attributes inherited from play_controller::hotkey_handler
play_controllerplay_controller_
 References to parent object / constituents. More...
 
events::menu_handlermenu_handler_
 
events::mouse_handlermouse_handler_
 
saved_gamesaved_game_
 

Additional Inherited Members

- Static Public Attributes inherited from play_controller::hotkey_handler
static const std::string wml_menu_hotkey_prefix = "wml_menu:"
 
- Static Protected Attributes inherited from hotkey::command_executor_default
static const int zoom_amount = 4
 

Detailed Description

Definition at line 31 of file hotkey_handler_sp.hpp.

Constructor & Destructor Documentation

playsingle_controller::hotkey_handler::hotkey_handler ( playsingle_controller pc,
saved_game sg 
)

Definition at line 33 of file hotkey_handler_sp.cpp.

playsingle_controller::hotkey_handler::~hotkey_handler ( )

Definition at line 39 of file hotkey_handler_sp.cpp.

Member Function Documentation

void playsingle_controller::hotkey_handler::ai_formula ( )
virtual
bool playsingle_controller::hotkey_handler::can_execute_command ( const hotkey::hotkey_command command,
int  index = -1 
) const
virtual

Check if a command can be executed.

Reimplemented from play_controller::hotkey_handler.

Reimplemented in playmp_controller::hotkey_handler.

Definition at line 193 of file hotkey_handler_sp.cpp.

References play_controller::hotkey_handler::can_execute_command(), hotkey::hotkey_command::command, events::commands_disabled, events::menu_handler::current_unit(), game_config::debug, game_events::wmi_container::end(), game_events::wmi_container::find(), play_controller::gamestate(), events::mouse_handler::get_last_hex(), events::mouse_handler::get_selected_hex(), game_state::get_wml_menu_items(), hotkey::HOTKEY_CHANGE_SIDE, hotkey::HOTKEY_CLEAR_LABELS, hotkey::HOTKEY_CONTINUE_MOVE, hotkey::HOTKEY_CREATE_UNIT, hotkey::HOTKEY_DELAY_SHROUD, hotkey::HOTKEY_END_UNIT_TURN, hotkey::HOTKEY_ENDTURN, hotkey::HOTKEY_KILL_UNIT, hotkey::HOTKEY_LABEL_TEAM_TERRAIN, hotkey::HOTKEY_LABEL_TERRAIN, hotkey::HOTKEY_RECALL, hotkey::HOTKEY_RECRUIT, 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_UNIT_HOLD_POSITION, hotkey::HOTKEY_UPDATE_SHROUD, 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_WML, i, hotkey::hotkey_command::id, terrain_label::immutable(), play_controller::is_observer(), playsingle_controller::linger(), play_controller::menu_handler_, play_controller::mouse_handler_, unit_map::iterator_base< iter_types >::valid(), and play_controller::whiteboard_manager_.

Referenced by playmp_controller::hotkey_handler::can_execute_command().

void playsingle_controller::hotkey_handler::change_side ( )
virtual
void playsingle_controller::hotkey_handler::clear_labels ( )
virtual
void playsingle_controller::hotkey_handler::clear_messages ( )
virtual
void playsingle_controller::hotkey_handler::continue_move ( )
virtual
void playsingle_controller::hotkey_handler::create_unit ( )
virtual
void playsingle_controller::hotkey_handler::custom_command ( )
virtual
void playsingle_controller::hotkey_handler::end_turn ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 72 of file hotkey_handler_sp.cpp.

void playsingle_controller::hotkey_handler::end_unit_turn ( )
virtual
hotkey::ACTION_STATE playsingle_controller::hotkey_handler::get_action_state ( hotkey::HOTKEY_COMMAND  command,
int  index 
) const
virtual
replay_controller& playsingle_controller::hotkey_handler::get_replay_controller ( )
inline
bool playsingle_controller::hotkey_handler::is_observer ( ) const
protected

Definition at line 41 of file hotkey_handler_sp.cpp.

void playsingle_controller::hotkey_handler::kill_unit ( )
virtual
void playsingle_controller::hotkey_handler::label_settings ( )
virtual
void playsingle_controller::hotkey_handler::label_terrain ( bool  team_only)
virtual
void playsingle_controller::hotkey_handler::load_autosave ( const std::string filename)
virtual
virtual void playsingle_controller::hotkey_handler::play_replay ( )
inlineoverridevirtual

Reimplemented from hotkey::command_executor.

Definition at line 82 of file hotkey_handler_sp.hpp.

References get_replay_controller(), and replay_controller::play_replay().

void playsingle_controller::hotkey_handler::recall ( )
virtual
void playsingle_controller::hotkey_handler::recruit ( )
virtual
void playsingle_controller::hotkey_handler::rename_unit ( )
virtual
void playsingle_controller::hotkey_handler::repeat_recruit ( )
virtual
void playsingle_controller::hotkey_handler::replay_exit ( )
overridevirtual

Reimplemented from hotkey::command_executor.

Definition at line 321 of file hotkey_handler_sp.cpp.

References replay::delete_upcoming_commands(), and resources::recorder.

virtual void playsingle_controller::hotkey_handler::replay_next_move ( )
inlineoverridevirtual
virtual void playsingle_controller::hotkey_handler::replay_next_side ( )
inlineoverridevirtual
virtual void playsingle_controller::hotkey_handler::replay_next_turn ( )
inlineoverridevirtual
virtual void playsingle_controller::hotkey_handler::replay_show_each ( )
inlineoverridevirtual
virtual void playsingle_controller::hotkey_handler::replay_show_everything ( )
inlineoverridevirtual
virtual void playsingle_controller::hotkey_handler::replay_show_team1 ( )
inlineoverridevirtual
virtual void playsingle_controller::hotkey_handler::reset_replay ( )
inlineoverridevirtual

Reimplemented from hotkey::command_executor.

Definition at line 96 of file hotkey_handler_sp.hpp.

References playsingle_controller::reset_replay().

virtual void playsingle_controller::hotkey_handler::stop_replay ( )
inlineoverridevirtual

Reimplemented from hotkey::command_executor.

Definition at line 80 of file hotkey_handler_sp.hpp.

References get_replay_controller(), and replay_controller::stop_replay().

void playsingle_controller::hotkey_handler::toggle_shroud_updates ( )
virtual
void playsingle_controller::hotkey_handler::unit_hold_position ( )
virtual
void playsingle_controller::hotkey_handler::update_shroud_now ( )
virtual
void playsingle_controller::hotkey_handler::user_command ( )
virtual
void playsingle_controller::hotkey_handler::whiteboard_bump_down_action ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 167 of file hotkey_handler_sp.cpp.

References play_controller::whiteboard_manager_.

void playsingle_controller::hotkey_handler::whiteboard_bump_up_action ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 162 of file hotkey_handler_sp.cpp.

References play_controller::whiteboard_manager_.

void playsingle_controller::hotkey_handler::whiteboard_delete_action ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 158 of file hotkey_handler_sp.cpp.

References play_controller::whiteboard_manager_.

void playsingle_controller::hotkey_handler::whiteboard_execute_action ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 150 of file hotkey_handler_sp.cpp.

References play_controller::whiteboard_manager_.

void playsingle_controller::hotkey_handler::whiteboard_execute_all_actions ( )
virtual

Reimplemented from hotkey::command_executor.

Definition at line 154 of file hotkey_handler_sp.cpp.

References play_controller::whiteboard_manager_.

void playsingle_controller::hotkey_handler::whiteboard_suppose_dead ( )
virtual
void playsingle_controller::hotkey_handler::whiteboard_toggle ( )
virtual

Member Data Documentation

playsingle_controller& playsingle_controller::hotkey_handler::playsingle_controller_
protected

Definition at line 34 of file hotkey_handler_sp.hpp.

boost::shared_ptr<wb::manager> playsingle_controller::hotkey_handler::whiteboard_manager_
protected

Definition at line 36 of file hotkey_handler_sp.hpp.


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