#include <hotkey_handler_sp.hpp>
Protected Member Functions | |
bool | is_observer () const |
Protected Member Functions inherited from play_controller::hotkey_handler | |
display & | get_display () |
game_display * | gui () const |
game_state & | gamestate () |
const game_state & | gamestate () const |
bool | browse () const |
bool | linger () const |
const team & | viewing_team () const |
bool | viewing_team_is_playing () const |
Protected Member Functions inherited from hotkey::command_executor | |
virtual | ~command_executor () |
Protected Attributes | |
playsingle_controller & | playsingle_controller_ |
boost::shared_ptr< wb::manager > | whiteboard_manager_ |
Protected Attributes inherited from play_controller::hotkey_handler | |
play_controller & | play_controller_ |
References to parent object / constituents. More... | |
events::menu_handler & | menu_handler_ |
events::mouse_handler & | mouse_handler_ |
saved_game & | saved_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 |
Definition at line 31 of file hotkey_handler_sp.hpp.
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.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 122 of file hotkey_handler_sp.cpp.
References events::menu_handler::ai_formula(), and play_controller::menu_handler_.
|
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().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 84 of file hotkey_handler_sp.cpp.
References events::menu_handler::change_side(), play_controller::menu_handler_, and play_controller::mouse_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 96 of file hotkey_handler_sp.cpp.
References events::menu_handler::clear_labels(), and play_controller::menu_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 126 of file hotkey_handler_sp.cpp.
References events::menu_handler::clear_messages(), and play_controller::menu_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 100 of file hotkey_handler_sp.cpp.
References events::menu_handler::continue_move(), play_controller::menu_handler_, and play_controller::mouse_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 80 of file hotkey_handler_sp.cpp.
References events::menu_handler::create_unit(), play_controller::menu_handler_, and play_controller::mouse_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 118 of file hotkey_handler_sp.cpp.
References events::menu_handler::custom_command(), and play_controller::menu_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 72 of file hotkey_handler_sp.cpp.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 109 of file hotkey_handler_sp.cpp.
References events::menu_handler::end_unit_turn(), play_controller::menu_handler_, and play_controller::mouse_handler_.
|
virtual |
Reimplemented from play_controller::hotkey_handler.
Definition at line 183 of file hotkey_handler_sp.cpp.
References hotkey::ACTION_OFF, hotkey::ACTION_ON, play_controller::hotkey_handler::get_action_state(), hotkey::HOTKEY_WB_TOGGLE, and play_controller::whiteboard_manager_.
|
inline |
Definition at line 75 of file hotkey_handler_sp.hpp.
References playsingle_controller::get_replay_controller().
Referenced by play_replay(), replay_next_move(), replay_next_side(), replay_next_turn(), replay_show_each(), replay_show_everything(), replay_show_team1(), and stop_replay().
|
protected |
Definition at line 41 of file hotkey_handler_sp.cpp.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 88 of file hotkey_handler_sp.cpp.
References events::menu_handler::kill_unit(), play_controller::menu_handler_, and play_controller::mouse_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 130 of file hotkey_handler_sp.cpp.
References events::menu_handler::label_settings(), and play_controller::menu_handler_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 92 of file hotkey_handler_sp.cpp.
References events::menu_handler::label_terrain(), play_controller::menu_handler_, and play_controller::mouse_handler_.
|
virtual |
Reimplemented from play_controller::hotkey_handler.
Definition at line 298 of file hotkey_handler_sp.cpp.
References _(), config::child_or_empty(), play_controller::hotkey_handler::load_autosave(), savegame::read_save_file(), and gui2::show_error_message().
|
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().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 57 of file hotkey_handler_sp.cpp.
References events::mouse_handler::get_last_hex(), play_controller::menu_handler_, play_controller::mouse_handler_, events::menu_handler::recall(), and play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 43 of file hotkey_handler_sp.cpp.
References events::mouse_handler::get_last_hex(), play_controller::menu_handler_, play_controller::mouse_handler_, events::menu_handler::recruit(), and play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 76 of file hotkey_handler_sp.cpp.
References play_controller::menu_handler_, and events::menu_handler::rename_unit().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 50 of file hotkey_handler_sp.cpp.
References events::mouse_handler::get_last_hex(), play_controller::menu_handler_, play_controller::mouse_handler_, events::menu_handler::repeat_recruit(), and play_controller::whiteboard_manager_.
|
overridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 321 of file hotkey_handler_sp.cpp.
References replay::delete_upcoming_commands(), and resources::recorder.
|
inlineoverridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 88 of file hotkey_handler_sp.hpp.
References get_replay_controller(), and replay_controller::replay_next_move().
|
inlineoverridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 86 of file hotkey_handler_sp.hpp.
References get_replay_controller(), and replay_controller::replay_next_side().
|
inlineoverridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 84 of file hotkey_handler_sp.hpp.
References get_replay_controller(), and replay_controller::replay_next_turn().
|
inlineoverridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 92 of file hotkey_handler_sp.hpp.
References get_replay_controller(), and replay_controller::replay_show_each().
|
inlineoverridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 90 of file hotkey_handler_sp.hpp.
References get_replay_controller(), and replay_controller::replay_show_everything().
|
inlineoverridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 94 of file hotkey_handler_sp.hpp.
References get_replay_controller(), and replay_controller::replay_show_team1().
|
inlineoverridevirtual |
Reimplemented from hotkey::command_executor.
Definition at line 96 of file hotkey_handler_sp.hpp.
References playsingle_controller::reset_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().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 64 of file hotkey_handler_sp.cpp.
References play_controller::menu_handler_, and events::menu_handler::toggle_shroud_updates().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 104 of file hotkey_handler_sp.cpp.
References play_controller::menu_handler_, play_controller::mouse_handler_, and events::menu_handler::unit_hold_position().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 68 of file hotkey_handler_sp.cpp.
References play_controller::menu_handler_, and events::menu_handler::update_shroud_now().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 114 of file hotkey_handler_sp.cpp.
References play_controller::menu_handler_, and events::menu_handler::user_command().
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 167 of file hotkey_handler_sp.cpp.
References play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 162 of file hotkey_handler_sp.cpp.
References play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 158 of file hotkey_handler_sp.cpp.
References play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 150 of file hotkey_handler_sp.cpp.
References play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 154 of file hotkey_handler_sp.cpp.
References play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 172 of file hotkey_handler_sp.cpp.
References events::menu_handler::current_unit(), unit::get_location(), play_controller::menu_handler_, and play_controller::whiteboard_manager_.
|
virtual |
Reimplemented from hotkey::command_executor.
Definition at line 134 of file hotkey_handler_sp.cpp.
References _(), hotkey::hotkey_command::get_command_by_command(), hotkey::get_names(), hotkey::HOTKEY_WB_TOGGLE, font::NORMAL_COLOR, vgettext(), and play_controller::whiteboard_manager_.
|
protected |
Definition at line 34 of file hotkey_handler_sp.hpp.
|
protected |
Definition at line 36 of file hotkey_handler_sp.hpp.