#include <play_controller.hpp>
Classes | |
class | hotkey_handler |
struct | scoped_savegame_snapshot |
Public Member Functions | |
play_controller (const config &level, saved_game &state_of_game, const config &game_config, const tdata_cache &tdata, CVideo &video, bool skip_replay) | |
virtual | ~play_controller () |
virtual void | handle_generic_event (const std::string &) |
bool | can_undo () const |
bool | can_redo () const |
void | undo () |
void | redo () |
void | load_game () |
void | save_game () |
void | save_game_auto (const std::string &filename) |
void | save_replay () |
void | save_replay_auto (const std::string &filename) |
void | save_map () |
void | init_side_begin () |
void | maybe_do_init_side () |
Called by turn_info::process_network_data() or init_side() to call do_init_side() if necessary. More... | |
void | do_init_side () |
Called by replay handler or init_side() to do actual work for turn change. More... | |
void | init_side_end () |
virtual void | force_end_turn ()=0 |
virtual void | check_objectives ()=0 |
virtual void | on_not_observer ()=0 |
virtual void | process_oos (const std::string &msg) const |
Asks the user whether to continue on an OOS error. More... | |
void | set_end_level_data (const end_level_data &data) |
void | reset_end_level_data () |
bool | is_regular_game_end () const |
const end_level_data & | get_end_level_data_const () const |
const std::vector< team > & | get_teams_const () const |
const unit_map & | get_units_const () const |
const gamemap & | get_map_const () const |
const tod_manager & | get_tod_manager_const () const |
bool | is_observer () const |
game_state & | gamestate () |
const game_state & | gamestate () const |
void | check_victory () |
Checks to see if a side has won. More... | |
size_t | turn () const |
int | current_side () const |
Returns the number of the side whose turn it is. More... | |
config | to_config () const |
Builds the snapshot config from members and their respective configs. More... | |
bool | is_skipping_replay () const |
void | toggle_skipping_replay () |
bool | is_linger_mode () const |
void | do_autosave () |
void | do_consolesave (const std::string &filename) |
events::mouse_handler & | get_mouse_handler_base () |
Get a reference to a mouse handler member a derived class uses. More... | |
events::menu_handler & | get_menu_handler () |
boost::shared_ptr< wb::manager > | get_whiteboard () |
const mp_game_settings & | get_mp_settings () |
const game_classification & | get_classification () |
int | get_server_request_number () const |
void | increase_server_request_number () |
game_events::t_pump & | pump () |
int | get_ticks () |
virtual soundsource::manager * | get_soundsource_man () |
Get (optionally) a soundsources manager a derived class uses. More... | |
virtual plugins_context * | get_plugins_context () |
Get (optionally) a plugins context a derived class uses. More... | |
hotkey::command_executor * | get_hotkey_command_executor () |
Get (optionally) a command executor to handle context menu events. More... | |
actions::undo_list & | get_undo_stack () |
bool | is_browsing () const override |
bool | is_lingering () const |
virtual bool | is_replay () |
t_string | get_scenario_name () |
bool | get_disallow_recall () |
std::string | theme () |
virtual bool | should_return_to_play_side () |
void | maybe_throw_return_to_play_side () |
virtual void | play_side_impl () |
void | play_side () |
team & | current_team () |
const team & | current_team () const |
bool | can_use_synced_wml_menu () const |
std::set< std::string > | all_players () const |
int | ticks () const |
game_display & | get_display () |
Get a reference to a display member a derived class uses. More... | |
void | update_savegame_snapshot () const |
void | update_gui_to_player (const int team_index, const bool observe=false) |
Changes the UI for this client to the passed side index. More... | |
virtual bool | is_networked_mp () const |
virtual void | send_to_wesnothd (const config &, const std::string &="unknown") const |
virtual bool | recieve_from_wesnothd (config &) const |
![]() | |
controller_base (const config &game_config, CVideo &video) | |
virtual | ~controller_base () |
void | play_slice (bool is_delay_enabled=true) |
void | apply_keyboard_scroll (int x, int y) |
void | set_scroll_up (bool on) |
void | set_scroll_down (bool on) |
void | set_scroll_left (bool on) |
void | set_scroll_right (bool on) |
![]() | |
virtual void | process_event () |
virtual void | draw () |
virtual void | volatile_draw () |
virtual void | volatile_undraw () |
virtual bool | requires_event_focus (const SDL_Event *=nullptr) const |
virtual void | process_help_string (int, int) |
virtual void | process_tooltip_string (int, int) |
virtual void | join () |
virtual void | join (context &c) |
virtual void | join_same (sdl_handler *parent) |
virtual void | leave () |
virtual void | join_global () |
virtual void | leave_global () |
![]() | |
virtual | ~observer () |
![]() | |
quit_confirmation (const std::function< bool()> &prompt=&quit_confirmation::default_prompt) | |
~quit_confirmation () | |
Protected Member Functions | |
void | play_slice_catch () |
bool | have_keyboard_focus () |
Derived classes should override this to return false when arrow keys should not scroll the map, hotkeys not processed etc, for example when a textbox is active. More... | |
void | process_focus_keydown_event (const SDL_Event &event) |
Process keydown (only when the general map display does not have focus). More... | |
void | process_keydown_event (const SDL_Event &event) |
Process keydown (always). More... | |
void | process_keyup_event (const SDL_Event &event) |
Process keyup (always). More... | |
void | init_managers () |
void | fire_preload () |
preload events cannot be synced More... | |
void | fire_prestart () |
void | fire_start () |
void | start_game () |
virtual void | init_gui () |
void | finish_side_turn () |
void | finish_turn () |
bool | enemies_visible () const |
void | enter_textbox () |
void | tab () |
bool | is_team_visible (int team_num, bool observer) const |
int | find_last_visible_team () const |
returns 0 if no such team was found. More... | |
actions::undo_list & | undo_stack () |
const actions::undo_list & | undo_stack () const |
const std::string & | select_victory_music () const |
const std::string & | select_defeat_music () const |
void | set_victory_music_list (const std::string &list) |
void | set_defeat_music_list (const std::string &list) |
void | reset_gamestate (const config &level, int replay_pos) |
virtual void | sync_end_turn () |
virtual void | check_time_over () |
virtual void | update_viewing_player ()=0 |
void | play_turn () |
![]() | |
virtual std::vector< std::string > | additional_actions_pressed () |
bool | handle_scroll (int mousex, int mousey, int mouse_flags, double joystickx, double joysticky) |
Handle scrolling by keyboard, joystick and moving mouse near map edges. More... | |
void | handle_event (const SDL_Event &event) |
Process mouse- and keypress-events from SDL. More... | |
void | handle_window_event (const SDL_Event &) |
virtual void | show_menu (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &disp) |
virtual void | execute_action (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu) |
virtual bool | in_context_menu (hotkey::HOTKEY_COMMAND command) const |
![]() | |
draw_layering (const bool auto_join=true) | |
virtual | ~draw_layering () |
![]() | |
sdl_handler (const bool auto_join=true) | |
virtual | ~sdl_handler () |
virtual std::vector < sdl_handler * > | handler_members () |
Private Member Functions | |
void | init (CVideo &video, const config &level) |
Private Attributes | |
const int | ticks_ |
bool | victory_when_enemies_defeated_ |
bool | remove_from_carryover_on_defeat_ |
std::vector< std::string > | victory_music_ |
std::vector< std::string > | defeat_music_ |
hotkey::scope_changer | scope_ |
Friends | |
struct | scoped_savegame_snapshot |
Additional Inherited Members | |
![]() | |
static const config & | get_theme (const config &game_config, std::string theme_name) |
![]() | |
static bool | quit () |
Shows the quit confirmation if needed. More... | |
static void | quit_to_title () |
static void | quit_to_desktop () |
static bool | show_prompt (const std::string &message) |
static bool | default_prompt () |
Definition at line 79 of file play_controller.hpp.
play_controller::play_controller | ( | const config & | level, |
saved_game & | state_of_game, | ||
const config & | game_config, | ||
const tdata_cache & | tdata, | ||
CVideo & | video, | ||
bool | skip_replay | ||
) |
Definition at line 147 of file play_controller.cpp.
References game_config::add_color_info(), resources::classification, saved_game::classification(), clear_resources(), resources::controller, copy_persistent(), hotkey::deactivate_all_scopes(), init(), level_, resources::mp_settings, saved_game::mp_settings(), resources::persist, persist_, resources::recorder, replay_, saved_game_, hotkey::SCOPE_GAME, set_defeat_music_list(), hotkey::set_scope_active(), set_victory_music_list(), and persist_manager::start_transaction().
|
virtual |
Definition at line 209 of file play_controller.cpp.
References clear_resources(), and hotkey::delete_all_wml_hotkeys().
std::set< std::string > play_controller::all_players | ( | ) | const |
Definition at line 1138 of file play_controller.cpp.
References get_teams_const(), and gui_.
bool play_controller::can_redo | ( | ) | const |
Definition at line 897 of file play_controller.cpp.
References actions::undo_list::can_redo(), events::commands_disabled, is_browsing(), linger_, and undo_stack().
bool play_controller::can_undo | ( | ) | const |
Definition at line 892 of file play_controller.cpp.
References actions::undo_list::can_undo(), events::commands_disabled, is_browsing(), linger_, and undo_stack().
Referenced by playmp_controller::play_human_turn(), playmp_controller::pull_remote_choice(), and playmp_controller::send_user_choice().
bool play_controller::can_use_synced_wml_menu | ( | ) | const |
Definition at line 1132 of file play_controller.cpp.
References events::commands_disabled, get_teams_const(), gui_, is_browsing(), is_lingering(), and team::is_local_human().
Referenced by game_events::wmi_container::get_items().
|
pure virtual |
Implemented in playsingle_controller.
Referenced by fire_start().
|
protectedvirtual |
Definition at line 1230 of file play_controller.cpp.
References check_victory(), e, game_events::t_pump::fire(), gamestate(), gui_, is_regular_game_end(), end_level_data::is_victory, LOG_AIT, ai_testing::log_draw(), LOG_NG, tod_manager::next_turn(), end_level_data::proceed_to_next_level, pump(), set_end_level_data(), and game_state::tod_manager_.
Referenced by play_turn().
void play_controller::check_victory | ( | ) |
Checks to see if a side has won.
This will also remove control of villages from sides with dead leaders.
Definition at line 934 of file play_controller.cpp.
References game_state::board_, game_board::check_victory(), DBG_EE, game_events::t_pump::fire(), gamestate(), ai::manager::get_active_ai_identifier_for_side(), gui_, is_regular_game_end(), end_level_data::is_victory, linger_, LOG_AIT, ai_testing::log_victory(), end_level_data::proceed_to_next_level, pump(), remove_from_carryover_on_defeat_, set_end_level_data(), and victory_when_enemies_defeated_.
Referenced by check_time_over(), ai::attack_result::do_execute(), do_init_side(), finish_side_turn(), events::menu_handler::kill_unit(), actions::move_unit_and_record(), and synced_context::run().
|
inline |
Returns the number of the side whose turn it is.
Numbering starts at one.
Definition at line 184 of file play_controller.hpp.
References gamestate_.
Referenced by replay::add_synced_command(), playmp_controller::after_human_turn(), wb::move::calculate_move_cost(), wb::manager::can_enable_execution_hotkeys(), actions::shroud_clearer::clear_unit(), wb::current_side_actions(), current_team(), events::mouse_handler::current_unit_attacks_from(), do_init_side(), do_replay_handle(), playsingle_controller::end_turn(), enter_textbox(), playsingle_controller::execute_gotos(), game_events::t_pump::filter_event(), find_last_visible_team(), finish_side_turn(), replay_helper::get_init_side(), mp_sync::get_user_choice(), game_lua_kernel::impl_current_get(), replay::init_side(), init_side_begin(), init_side_end(), playsingle_controller::play_ai_turn(), play_side(), replay_controller::play_side_impl(), playsingle_controller::play_side_impl(), play_turn(), wb::mapbuilder::pre_build(), process_keyup_event(), playsingle_controller::show_turn_dialog(), SYNCED_COMMAND_HANDLER_FUNCTION(), and replay_controller::update_viewing_player().
team & play_controller::current_team | ( | ) |
Definition at line 685 of file play_controller.cpp.
References game_state::board_, current_side(), gamestate(), and game_board::teams_.
Referenced by playmp_controller::after_human_turn(), do_init_side(), enemies_visible(), init_side_begin(), init_side_end(), is_browsing(), maybe_do_init_side(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playmp_controller::play_side_impl(), playsingle_controller::play_side_impl(), play_turn(), playmp_controller::pull_remote_choice(), actions::shroud_clearing_action::return_village(), playsingle_controller::should_return_to_play_side(), playsingle_controller::sync_end_turn(), SYNCED_COMMAND_HANDLER_FUNCTION(), and actions::shroud_clearing_action::take_village().
const team & play_controller::current_team | ( | ) | const |
Definition at line 691 of file play_controller.cpp.
References game_state::board_, current_side(), gamestate(), and game_board::teams().
void play_controller::do_autosave | ( | ) |
Definition at line 1016 of file play_controller.cpp.
References savegame::autosave_savegame::autosave(), preferences::autosavemax(), gui_, preferences::INFINITE_AUTO_SAVES, save(), preferences::save_compression_format(), and saved_game_.
Referenced by turn_info::do_save().
void play_controller::do_consolesave | ( | const std::string & | filename | ) |
Definition at line 1023 of file play_controller.cpp.
References gui_, save(), preferences::save_compression_format(), savegame::savegame::save_game_automatic(), and saved_game_.
Referenced by events::console_handler::do_save().
void play_controller::do_init_side | ( | ) |
Called by replay handler or init_side() to do actual work for turn change.
Definition at line 440 of file play_controller.cpp.
References game_state::board_, calculate_healing(), check_victory(), actions::clear_shroud(), current_side(), current_team(), set_scontext_synced::do_final_checkup(), game_events::t_pump::fire(), game_state::gamedata_, gamestate(), gamestate_, game_data::get_variable(), init_side_done_now_, init_side_end(), is_skipping_replay(), log_scope, actions::undo_list::new_side_turn(), game_board::new_turn(), team::new_turn(), pump(), display_context::side_upkeep(), team::spend_gold(), team::support(), game_state::tod_manager_, turn(), tod_manager::turn_event_fired(), and undo_stack().
Referenced by do_replay_handle(), and maybe_do_init_side().
|
protected |
Definition at line 576 of file play_controller.cpp.
References current_team(), gamestate(), gui_, and team::is_enemy().
|
protected |
Definition at line 592 of file play_controller.cpp.
References gui::floating_textbox::active(), gui::floating_textbox::box(), gui::floating_textbox::close(), current_side(), events::menu_handler::do_ai_formula(), events::menu_handler::do_command(), events::menu_handler::do_search(), events::menu_handler::do_speak(), ERR_DP, events::menu_handler::get_textbox(), gui_, menu_handler_, gui::floating_textbox::mode(), mouse_handler_, gui::TEXTBOX_AI, gui::TEXTBOX_COMMAND, gui::TEXTBOX_MESSAGE, and gui::TEXTBOX_SEARCH.
Referenced by process_focus_keydown_event().
|
protected |
returns 0 if no such team was found.
Definition at line 723 of file play_controller.cpp.
References game_state::board_, current_side(), gamestate(), i, is_observer(), is_team_visible(), modulo(), and game_board::teams().
Referenced by playsingle_controller::update_viewing_player().
|
protected |
Definition at line 537 of file play_controller.cpp.
References game_state::board_, check_victory(), actions::undo_list::clear(), actions::clear_shroud(), current_side(), events::mouse_handler::deselect_hex(), set_scontext_synced::do_final_checkup(), game_board::end_turn(), game_events::t_pump::fire(), resources::gameboard, gamestate(), gamestate_, mouse_handler_, pump(), actions::recalculate_fog(), n_unit::id_manager::reset_fake(), turn(), undo_stack(), game_board::unit_id_manager(), and whiteboard_manager_.
Referenced by play_turn().
|
protected |
Definition at line 567 of file play_controller.cpp.
References set_scontext_synced::do_final_checkup(), game_events::t_pump::fire(), pump(), and turn().
Referenced by play_turn().
|
protected |
preload events cannot be synced
Definition at line 361 of file play_controller.cpp.
References game_events::t_pump::fire(), game_state::gamedata_, gamestate(), game_data::get_variable(), int(), pump(), and turn().
Referenced by start_game().
|
protected |
Definition at line 368 of file play_controller.cpp.
References game_events::t_pump::fire(), game_state::gamedata_, gamestate(), game_data::get_variable(), gui_, int(), game_data::PRESTART, pump(), game_data::set_phase(), and turn().
Referenced by start_game().
|
protected |
Definition at line 386 of file play_controller.cpp.
References check_objectives(), game_events::t_pump::fire(), game_state::gamedata_, gamestate(), gamestate_, game_data::get_variable(), int(), game_data::PLAY, pump(), game_data::set_phase(), game_data::START, and turn().
Referenced by start_game().
|
pure virtual |
Implemented in playsingle_controller.
Referenced by game_lua_kernel::intf_end_turn(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
inline |
Definition at line 163 of file play_controller.hpp.
References gamestate_.
Referenced by playmp_controller::hotkey_handler::can_execute_command(), playsingle_controller::hotkey_handler::can_execute_command(), playsingle_controller::check_objectives(), check_time_over(), check_victory(), events::mouse_handler::current_team(), current_team(), events::mouse_handler::current_unit_attacks_from(), events::mouse_handler::cycle_units(), do_init_side(), playsingle_controller::enable_replay(), enemies_visible(), play_controller::hotkey_handler::execute_command(), play_controller::hotkey_handler::expand_wml_commands(), events::mouse_handler::fill_weapon_choices(), find_last_visible_team(), events::mouse_handler::find_unit(), finish_side_turn(), fire_preload(), fire_prestart(), fire_start(), events::menu_handler::gamestate(), events::mouse_handler::get_adj_enemies(), get_end_level_data_const(), get_map_const(), events::mouse_handler::get_route(), get_server_request_number(), get_teams_const(), get_tod_manager_const(), get_units_const(), play_controller::hotkey_handler::in_context_menu(), increase_server_request_number(), init(), playsingle_controller::init_gui(), init_side_begin(), init_side_end(), is_browsing(), is_observer(), is_regular_game_end(), is_team_visible(), playmp_controller::linger(), playsingle_controller::linger(), maybe_do_init_side(), playmp_controller::maybe_linger(), playsingle_controller::maybe_linger(), events::mouse_handler::mouse_motion(), events::mouse_handler::move_action(), events::mouse_handler::move_unit_along_route(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_main_loop(), play_side(), replay_controller::play_side_impl(), playsingle_controller::play_side_impl(), play_turn(), process_keyup_event(), pump(), replay_controller::replay_next_turn(), reset_end_level_data(), reset_gamestate(), events::mouse_handler::select_hex(), set_end_level_data(), events::mouse_handler::show_attack_dialog(), events::mouse_handler::show_attack_options(), playsingle_controller::show_turn_dialog(), start_game(), tab(), to_config(), turn(), undo_stack(), events::mouse_handler::unit_in_cycle(), replay_controller::update_viewing_player(), and events::mouse_handler::viewing_team().
|
inline |
Definition at line 166 of file play_controller.hpp.
References gamestate_.
const game_classification & play_controller::get_classification | ( | ) |
Definition at line 753 of file play_controller.cpp.
References saved_game::classification(), and saved_game_.
Referenced by game_lua_kernel::impl_game_config_get(), game_lua_kernel::intf_set_end_campaign_credits(), game_lua_kernel::intf_set_end_campaign_text(), and events::menu_handler::status_table().
|
inline |
Definition at line 229 of file play_controller.hpp.
References level_.
Referenced by events::menu_handler::recall().
|
virtual |
Get a reference to a display member a derived class uses.
Implements controller_base.
Definition at line 758 of file play_controller.cpp.
References gui_.
Referenced by replay_controller::add_replay_theme(), play_controller::hotkey_handler::get_display(), replay_controller::handle_generic_event(), replay_controller::play_button(), replay_controller::play_move_button(), replay_controller::play_side_button(), replay_controller::play_turn_button(), replay_controller::rebuild_replay_theme(), replay_controller::replay_controller(), replay_controller::reset_button(), replay_controller::stop_button(), events::menu_handler::terrain_description(), events::menu_handler::unit_description(), replay_controller::update_gui(), replay_controller::update_teams(), and replay_controller::~replay_controller().
|
inline |
Definition at line 141 of file play_controller.hpp.
References game_state::end_level_data_, and gamestate().
Referenced by playsingle_controller::describe_result(), playmp_controller::linger(), playmp_controller::maybe_linger(), playsingle_controller::maybe_linger(), and playsingle_controller::play_scenario().
|
virtual |
Get (optionally) a command executor to handle context menu events.
Reimplemented from controller_base.
Definition at line 1056 of file play_controller.cpp.
References hotkey_handler_.
Referenced by playsingle_controller::end_turn_enable(), playsingle_controller::init_gui(), events::mouse_handler::left_mouse_up(), events::mouse_handler::mouse_wheel_down(), events::mouse_handler::mouse_wheel_left(), events::mouse_handler::mouse_wheel_right(), and events::mouse_handler::mouse_wheel_up().
|
inline |
Definition at line 152 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::map().
Referenced by events::mouse_handler::mouse_motion(), events::mouse_handler::move_unit_along_route(), events::mouse_handler::select_or_action(), events::mouse_handler::show_attack_options(), and campaign_controller::show_carryover_message().
|
inline |
Definition at line 199 of file play_controller.hpp.
References menu_handler_.
Referenced by wb::recruit::execute().
|
virtual |
Get a reference to a mouse handler member a derived class uses.
Implements controller_base.
Definition at line 738 of file play_controller.cpp.
References mouse_handler_.
Referenced by wb::manager::create_temp_move(), events::menu_handler::current_unit(), events::console_handler::do_create(), events::console_handler::do_layers(), wb::attack::execute(), wb::move::execute(), game_lua_kernel::impl_theme_item(), game_lua_kernel::intf_deselect_hex(), game_lua_kernel::intf_select_unit(), wb::manager::on_mouseover_change(), and display::refresh_report().
const mp_game_settings & play_controller::get_mp_settings | ( | ) |
Definition at line 748 of file play_controller.cpp.
References saved_game::mp_settings(), and saved_game_.
Referenced by events::console_handler::do_choose_level(), and game_lua_kernel::impl_game_config_get().
|
virtual |
Get (optionally) a plugins context a derived class uses.
Reimplemented from controller_base.
Definition at line 1051 of file play_controller.cpp.
References plugins_context_.
|
inline |
Definition at line 224 of file play_controller.hpp.
References level_.
Referenced by playsingle_controller::check_objectives(), events::menu_handler::objectives(), and playsingle_controller::play_scenario().
|
inline |
Definition at line 204 of file play_controller.hpp.
References gamestate(), and game_state::server_request_number_.
|
virtual |
Get (optionally) a soundsources manager a derived class uses.
Reimplemented from controller_base.
Definition at line 1046 of file play_controller.cpp.
References soundsources_manager_.
Referenced by game_lua_kernel::intf_add_sound_source(), game_lua_kernel::intf_get_sound_source(), and game_lua_kernel::intf_remove_sound_source().
|
inline |
Definition at line 144 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::teams_.
Referenced by all_players(), and can_use_synced_wml_menu().
int play_controller::get_ticks | ( | ) |
Definition at line 1041 of file play_controller.cpp.
References ticks_.
|
inline |
Definition at line 155 of file play_controller.hpp.
References gamestate(), and game_state::tod_manager_.
Referenced by events::mouse_handler::attack_enemy_(), and campaign_controller::show_carryover_message().
|
inline |
Definition at line 215 of file play_controller.hpp.
References undo_stack().
Referenced by events::menu_handler::end_turn(), events::menu_handler::execute_gotos(), events::mouse_handler::move_unit_along_route(), and events::menu_handler::move_unit_to_loc().
|
inline |
Definition at line 148 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::units().
boost::shared_ptr< wb::manager > play_controller::get_whiteboard | ( | ) |
Definition at line 743 of file play_controller.cpp.
References whiteboard_manager_.
Referenced by events::mouse_handler::current_unit_attacks_from(), events::menu_handler::do_recruit(), events::console_handler::do_toggle_whiteboard(), events::console_handler::do_whiteboard_options(), events::menu_handler::end_turn(), game_lua_kernel::impl_theme_item(), events::mouse_handler::mouse_motion(), events::mouse_handler::move_action(), events::mouse_handler::move_unit_along_route(), events::menu_handler::recall(), events::mouse_handler::save_whiteboard_attack(), events::mouse_handler::select_hex(), and events::mouse_handler::set_current_paths().
|
inlinevirtual |
Implements events::observer.
Reimplemented in playsingle_controller, and playmp_controller.
Definition at line 90 of file play_controller.hpp.
|
protectedvirtual |
Derived classes should override this to return false when arrow keys should not scroll the map, hotkeys not processed etc, for example when a textbox is active.
Reimplemented from controller_base.
Definition at line 763 of file play_controller.cpp.
References gui::floating_textbox::active(), events::menu_handler::get_textbox(), and menu_handler_.
|
inline |
Definition at line 205 of file play_controller.hpp.
References gamestate(), and game_state::server_request_number_.
Referenced by synced_context::ask_server_choice().
Definition at line 223 of file play_controller.cpp.
References _(), game_state::board_, gui2::tloadscreen::display(), preferences::encounter_all_content(), game_state::events_manager_, resources::filter_con, controller_base::game_config_, resources::game_events, resources::gameboard, resources::gamedata, game_state::gamedata_, gamestate(), gamestate_, get_str, controller_base::get_theme(), gui_, i, init_managers(), is_observer(), LOG_NG, resources::lua_kernel, game_state::lua_kernel_, menu_handler_, mouse_handler_, mp_game_settings::mp_countdown, saved_game::mp_settings(), game_state::pathfind_manager_, plugins_context_, game_data::PRELOAD, gui2::tloadscreen::progress(), save_game_auto(), save_replay_auto(), saved_game_, resources::screen, game_state::set_game_display(), events::menu_handler::set_gui(), events::mouse_handler::set_gui(), game_data::set_phase(), tdata_, resources::teams, game_board::teams(), game_board::teams_, ticks(), resources::tod_manager, game_state::tod_manager_, resources::tunnels, resources::undo_stack, undo_stack(), resources::units, game_board::units_, resources::whiteboard, and whiteboard_manager_.
Referenced by play_controller().
|
protectedvirtual |
Reimplemented in playsingle_controller.
Definition at line 403 of file play_controller.cpp.
References gui_.
Referenced by playsingle_controller::init_gui(), and start_game().
|
protected |
Definition at line 350 of file play_controller.cpp.
References gui_, LOG_NG, preferences::set_preference_display_settings(), resources::soundsources, soundsources_manager_, ticks(), and tooltips_manager_.
Referenced by init().
void play_controller::init_side_begin | ( | ) |
Definition at line 409 of file play_controller.cpp.
References current_side(), current_team(), game_state::gamedata_, gamestate(), gui_, is_observer(), is_replay(), game_data::last_selected, mouse_handler_, map_location::null_location(), events::mouse_handler::set_side(), and update_gui_to_player().
Referenced by play_turn().
void play_controller::init_side_end | ( | ) |
Definition at line 502 of file play_controller.cpp.
References current_side(), current_team(), gamestate(), tod_manager::get_time_of_day(), gui_, init_side_done_now_, is_skipping_replay(), display::ONSCREEN, sound::play_sound(), sound::SOUND_SOURCES, time_of_day::sounds, game_state::tod_manager_, and whiteboard_manager_.
Referenced by do_init_side(), and play_turn().
|
overridevirtual |
Reimplemented from controller_base.
Definition at line 1061 of file play_controller.cpp.
References current_team(), game_state::gamedata_, gamestate(), gamestate_, team::is_local_human(), team::is_proxy_human(), linger_, game_data::phase(), and game_data::PLAY.
Referenced by can_redo(), can_undo(), can_use_synced_wml_menu(), playsingle_controller::check_objectives(), and playsingle_controller::end_turn().
|
inline |
Definition at line 193 of file play_controller.hpp.
References linger_.
|
inline |
Definition at line 218 of file play_controller.hpp.
References linger_.
Referenced by can_use_synced_wml_menu().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 269 of file play_controller.hpp.
Referenced by events::menu_handler::ai_formula(), synced_context::ask_server_choice(), events::console_handler::do_control(), events::console_handler::do_debug(), mp_sync::get_user_choice(), events::console_handler::is_enabled(), and playsingle_controller::play_scenario_init().
|
inline |
Definition at line 159 of file play_controller.hpp.
References game_state::board_, gamestate(), and display_context::is_observer().
Referenced by playmp_controller::hotkey_handler::can_execute_command(), playsingle_controller::hotkey_handler::can_execute_command(), find_last_visible_team(), init(), init_side_begin(), playsingle_controller::play_scenario(), and campaign_controller::show_carryover_message().
|
inline |
Definition at line 138 of file play_controller.hpp.
References game_state::end_level_data_, and gamestate().
Referenced by playsingle_controller::before_human_turn(), playsingle_controller::check_objectives(), check_time_over(), check_victory(), playsingle_controller::describe_result(), game_lua_kernel::intf_check_end_level_disabled(), game_lua_kernel::intf_end_level(), playmp_controller::linger(), playmp_controller::maybe_linger(), playsingle_controller::maybe_linger(), playsingle_controller::on_replay_end(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_main_loop(), play_side(), playsingle_controller::play_side_impl(), play_turn(), playmp_controller::process_network_data(), playsingle_controller::should_return_to_play_side(), should_return_to_play_side(), playsingle_controller::show_turn_dialog(), and start_game().
|
inlinevirtual |
Reimplemented in playsingle_controller.
Definition at line 222 of file play_controller.hpp.
Referenced by init_side_begin(), and maybe_do_init_side().
|
inline |
Definition at line 191 of file play_controller.hpp.
References skip_replay_.
Referenced by do_init_side(), replay_controller::handle_generic_event(), playsingle_controller::init_gui(), init_side_end(), game_lua_kernel::intf_is_skipping_messages(), game_lua_kernel::intf_play_sound(), playsingle_controller::play_scenario(), start_game(), and replay_controller::~replay_controller().
|
protected |
Definition at line 712 of file play_controller.cpp.
References game_state::board_, gamestate(), team::get_disallow_observers(), team::is_empty(), team::is_idle(), team::is_local_human(), and game_board::teams().
Referenced by find_last_visible_team().
void play_controller::load_game | ( | ) |
Definition at line 874 of file play_controller.cpp.
References controller_base::game_config_, gui_, floating_point_emulation::detail::load(), and saved_game_.
void play_controller::maybe_do_init_side | ( | ) |
Called by turn_info::process_network_data() or init_side() to call do_init_side() if necessary.
Definition at line 425 of file play_controller.cpp.
References current_team(), do_init_side(), game_state::gamedata_, gamestate(), gamestate_, replay::init_side(), team::is_local(), is_replay(), game_data::phase(), game_data::PLAY, resources::recorder, and replay_.
Referenced by play_side().
|
inline |
Definition at line 244 of file play_controller.hpp.
References linger_, and should_return_to_play_side().
Referenced by ai::attack_result::do_execute(), actions::move_unit_and_record(), and synced_context::run_and_throw().
|
pure virtual |
Implemented in playmp_controller, and playsingle_controller.
Referenced by turn_info::process_network_data().
void play_controller::play_side | ( | ) |
Definition at line 1150 of file play_controller.cpp.
References current_side(), gamestate(), gui_, is_regular_game_end(), maybe_do_init_side(), play_side_impl(), player_type_changed_, statistics::reset_turn_stats(), sync_end_turn(), and update_viewing_player().
Referenced by play_turn().
|
inlinevirtual |
Reimplemented in playsingle_controller, and playmp_controller.
Definition at line 251 of file play_controller.hpp.
Referenced by play_side().
|
protected |
Definition at line 1070 of file play_controller.cpp.
References controller_base::play_slice(), and should_return_to_play_side().
Referenced by playmp_controller::play_human_turn(), playsingle_controller::play_human_turn(), playmp_controller::play_idle_loop(), playsingle_controller::play_idle_loop(), and playmp_controller::play_network_turn().
|
protected |
Definition at line 1180 of file play_controller.cpp.
References game_state::board_, check_time_over(), current_side(), current_team(), finish_side_turn(), finish_turn(), gamestate(), gamestate_, gui_, init_side_begin(), init_side_end(), int(), team::is_empty(), is_regular_game_end(), LOG_AIT, LOG_NG, ai_testing::log_turn_end(), ai_testing::log_turn_start(), play_side(), events::raise_draw_event(), game_board::teams(), turn(), team::villages(), and whiteboard_manager_.
Referenced by playsingle_controller::play_scenario_main_loop().
|
protectedvirtual |
Process keydown (only when the general map display does not have focus).
Reimplemented from controller_base.
Definition at line 768 of file play_controller.cpp.
References gui::floating_textbox::close(), enter_textbox(), events::menu_handler::get_textbox(), gui_, menu_handler_, and tab().
|
protectedvirtual |
Process keydown (always).
Overridden in derived classes
Reimplemented from controller_base.
Definition at line 779 of file play_controller.cpp.
References whiteboard_manager_.
|
protectedvirtual |
Process keyup (always).
Overridden in derived classes
Reimplemented from controller_base.
Definition at line 786 of file play_controller.cpp.
References events::mouse_handler::current_paths(), current_side(), gamestate(), events::mouse_handler::get_path_turns(), events::mouse_handler::get_selected_hex(), gui_, mouse_handler_, events::mouse_handler::select_hex(), events::mouse_handler::selected_unit(), events::mouse_handler::set_current_paths(), events::mouse_handler::set_path_turns(), unit_map::iterator_base< iter_types >::valid(), and whiteboard_manager_.
|
virtual |
Asks the user whether to continue on an OOS error.
quit_game_exception | If the user wants to abort. |
Reimplemented in playmp_controller.
Definition at line 992 of file play_controller.cpp.
References _(), gui_, game_config::ignore_replay_errors, ignore_replay_errors_, game_logic::msg(), save(), savegame::savegame::save_game_interactive(), saved_game_, and gui::YES_NO.
Referenced by replay::process_error().
game_events::t_pump & play_controller::pump | ( | ) |
Definition at line 1036 of file play_controller.cpp.
References game_state::events_manager_, and gamestate().
Referenced by check_time_over(), check_victory(), do_init_side(), finish_side_turn(), finish_turn(), fire_preload(), fire_prestart(), fire_start(), game_lua_kernel::intf_allow_undo(), game_lua_kernel::intf_fire_event(), game_lua_kernel::intf_kill(), game_lua_kernel::intf_put_unit(), events::menu_handler::kill_unit(), playsingle_controller::play_scenario(), events::mouse_handler::select_hex(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 271 of file play_controller.hpp.
Referenced by playsingle_controller::playsingle_controller().
void play_controller::redo | ( | ) |
Definition at line 886 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), mouse_handler_, actions::undo_list::redo(), and undo_stack().
|
inline |
Definition at line 135 of file play_controller.hpp.
References game_state::end_level_data_, and gamestate().
Definition at line 314 of file play_controller.cpp.
References game_state::board_, game_state::events_manager_, resources::filter_con, resources::game_events, resources::gameboard, resources::gamedata, game_state::gamedata_, gamestate(), gamestate_, saved_game::get_replay(), gui_, resources::lua_kernel, game_state::lua_kernel_, game_state::pathfind_manager_, game_data::PRELOAD, saved_game_, game_state::set_game_display(), game_data::set_phase(), replay_recorder_base::set_pos(), tdata_, resources::teams, game_board::teams_, resources::tod_manager, game_state::tod_manager_, resources::tunnels, resources::undo_stack, undo_stack(), resources::units, and game_board::units_.
Referenced by playsingle_controller::play_scenario_main_loop().
void play_controller::save_game | ( | ) |
Definition at line 821 of file play_controller.cpp.
References gui_, gui::OK_CANCEL, save_blocker::on_unblock(), save(), preferences::save_compression_format(), savegame::savegame::save_game_interactive(), saved_game_, and save_blocker::try_block().
void play_controller::save_game_auto | ( | const std::string & | filename | ) |
Definition at line 833 of file play_controller.cpp.
References gui_, save(), preferences::save_compression_format(), savegame::savegame::save_game_automatic(), saved_game_, and save_blocker::try_block().
Referenced by init().
void play_controller::save_map | ( | ) |
Definition at line 864 of file play_controller.cpp.
References menu_handler_, save_blocker::on_unblock(), events::menu_handler::save_map(), and save_blocker::try_block().
void play_controller::save_replay | ( | ) |
Definition at line 844 of file play_controller.cpp.
References gui_, gui::OK_CANCEL, save_blocker::on_unblock(), save(), preferences::save_compression_format(), savegame::savegame::save_game_interactive(), saved_game_, and save_blocker::try_block().
void play_controller::save_replay_auto | ( | const std::string & | filename | ) |
Definition at line 855 of file play_controller.cpp.
References gui_, save(), preferences::save_compression_format(), savegame::savegame::save_game_automatic(), saved_game_, and save_blocker::try_block().
Referenced by init().
|
protected |
Definition at line 913 of file play_controller.cpp.
References defeat_music_.
Referenced by playsingle_controller::play_scenario().
|
protected |
Definition at line 906 of file play_controller.cpp.
References victory_music_.
Referenced by playsingle_controller::play_scenario().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 270 of file play_controller.hpp.
Referenced by turn_info::change_side_controller(), replay_network_sender::commit_and_sync(), playsingle_controller::play_scenario(), events::menu_handler::request_control_change(), wb::manager::send_network_data(), synced_context::server_choice::send_request(), events::menu_handler::send_to_server(), replay_network_sender::sync_non_undoable(), and tod_manager::update_server_information().
|
protected |
Definition at line 927 of file play_controller.cpp.
References game_config::default_defeat_music, defeat_music_, and utils::split().
Referenced by play_controller(), and playsingle_controller::play_scenario().
|
inline |
Definition at line 132 of file play_controller.hpp.
References game_state::end_level_data_, and gamestate().
Referenced by check_time_over(), check_victory(), game_lua_kernel::intf_end_level(), playsingle_controller::on_replay_end(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
protected |
Definition at line 920 of file play_controller.cpp.
References game_config::default_victory_music, utils::split(), and victory_music_.
Referenced by play_controller(), and playsingle_controller::play_scenario().
|
inlinevirtual |
Reimplemented in playsingle_controller.
Definition at line 239 of file play_controller.hpp.
References is_regular_game_end().
Referenced by maybe_throw_return_to_play_side(), and play_slice_catch().
|
protected |
Definition at line 1085 of file play_controller.cpp.
References replay::add_start_if_not_there_yet(), actions::clear_shroud(), set_scontext_synced::do_final_checkup(), fire_preload(), fire_prestart(), fire_start(), game_state::gamedata_, gamestate(), replay::get_next_action(), gui_, init_gui(), is_regular_game_end(), is_skipping_replay(), LOG_NG, mp_game_settings::mp_countdown, mp_game_settings::mp_countdown_init_time, saved_game::mp_settings(), game_data::PLAY, events::raise_draw_event(), resources::recorder, saved_game_, game_data::set_phase(), and game_state::start_event_fired_.
Referenced by playsingle_controller::play_scenario_init().
|
inlineprotectedvirtual |
Reimplemented in playsingle_controller.
Definition at line 369 of file play_controller.hpp.
Referenced by play_side().
|
protected |
Definition at line 625 of file play_controller.cpp.
References game_state::board_, ERR_DP, gamestate(), preferences::get_acquaintances_nice(), events::menu_handler::get_commands_list(), events::menu_handler::get_textbox(), gui_, preferences::login(), menu_handler_, gui::floating_textbox::mode(), gui::floating_textbox::tab(), game_board::teams(), gui::TEXTBOX_COMMAND, gui::TEXTBOX_MESSAGE, and gui::TEXTBOX_SEARCH.
Referenced by process_focus_keydown_event().
|
inline |
Definition at line 234 of file play_controller.hpp.
References level_.
Referenced by replay_controller::add_replay_theme(), and replay_controller::rebuild_replay_theme().
|
inline |
Definition at line 260 of file play_controller.hpp.
References ticks_.
Referenced by game_state::init(), init(), playsingle_controller::init_gui(), init_managers(), playsingle_controller::play_scenario(), and playsingle_controller::play_scenario_main_loop().
config play_controller::to_config | ( | ) | const |
Builds the snapshot config from members and their respective configs.
Definition at line 519 of file play_controller.cpp.
References config::add_child(), gamestate(), replay_recorder_base::get_pos(), saved_game::get_replay(), gui_, level_, saved_game_, soundsources_manager_, game_state::write(), and sound::write_music_play_list().
Referenced by playsingle_controller::play_scenario_init(), and update_savegame_snapshot().
|
inline |
Definition at line 192 of file play_controller.hpp.
References skip_replay_.
Referenced by play_controller::hotkey_handler::replay_skip_animation(), and replay_controller::~replay_controller().
|
inline |
Definition at line 177 of file play_controller.hpp.
References gamestate(), game_state::tod_manager_, and tod_manager::turn().
Referenced by do_init_side(), play_controller::hotkey_handler::expand_autosaves(), finish_side_turn(), finish_turn(), fire_preload(), fire_prestart(), fire_start(), game_lua_kernel::impl_current_get(), and play_turn().
void play_controller::undo | ( | ) |
Definition at line 880 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), mouse_handler_, actions::undo_list::undo(), and undo_stack().
|
inlineprotected |
Definition at line 337 of file play_controller.hpp.
References gamestate(), and game_state::undo_stack_.
Referenced by can_redo(), can_undo(), do_init_side(), finish_side_turn(), get_undo_stack(), init(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playmp_controller::pull_remote_choice(), redo(), reset_gamestate(), playmp_controller::send_user_choice(), and undo().
|
inlineprotected |
Definition at line 338 of file play_controller.hpp.
References gamestate(), and game_state::undo_stack_.
Changes the UI for this client to the passed side index.
Definition at line 1008 of file play_controller.cpp.
References gui_.
Referenced by init_side_begin(), playmp_controller::linger(), replay_controller::update_viewing_player(), and playsingle_controller::update_viewing_player().
void play_controller::update_savegame_snapshot | ( | ) | const |
Definition at line 1030 of file play_controller.cpp.
References saved_game_, saved_game::set_snapshot(), and to_config().
Referenced by play_controller::scoped_savegame_snapshot::scoped_savegame_snapshot().
|
protectedpure virtual |
Implemented in playsingle_controller.
Referenced by play_side().
|
friend |
Definition at line 279 of file play_controller.hpp.
|
private |
Definition at line 362 of file play_controller.hpp.
Referenced by select_defeat_music(), and set_defeat_music_list().
|
protected |
Definition at line 311 of file play_controller.hpp.
Referenced by current_side(), do_init_side(), finish_side_turn(), fire_start(), gamestate(), init(), is_browsing(), maybe_do_init_side(), playsingle_controller::play_scenario_main_loop(), play_turn(), and reset_gamestate().
|
protected |
Definition at line 334 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), all_players(), playsingle_controller::before_human_turn(), can_use_synced_wml_menu(), playsingle_controller::check_objectives(), check_time_over(), check_victory(), do_autosave(), do_consolesave(), playmp_controller::do_idle_notification(), playsingle_controller::do_idle_notification(), playsingle_controller::end_turn_enable(), enemies_visible(), enter_textbox(), fire_prestart(), get_display(), playmp_controller::handle_generic_event(), init(), playsingle_controller::init_gui(), init_gui(), init_managers(), init_side_begin(), init_side_end(), playmp_controller::linger(), playsingle_controller::linger(), load_game(), playmp_controller::maybe_linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playsingle_controller::play_human_turn(), playmp_controller::play_idle_loop(), playsingle_controller::play_idle_loop(), playmp_controller::play_linger_turn(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_init(), play_side(), play_turn(), process_focus_keydown_event(), process_keyup_event(), playmp_controller::process_oos(), process_oos(), playmp_controller::remove_blindfold(), playmp_controller::reset_end_scenario_button(), reset_gamestate(), save_game(), save_game_auto(), save_replay(), save_replay_auto(), playmp_controller::set_end_scenario_button(), playsingle_controller::show_turn_dialog(), start_game(), tab(), to_config(), update_gui_to_player(), playsingle_controller::update_viewing_player(), and playmp_controller::wait_for_upload().
|
protected |
Definition at line 326 of file play_controller.hpp.
|
protected |
Definition at line 329 of file play_controller.hpp.
Referenced by get_hotkey_command_executor(), and playmp_controller::playmp_controller().
|
mutableprotected |
Definition at line 367 of file play_controller.hpp.
Referenced by playmp_controller::process_oos(), and process_oos().
|
protected |
Whether we did init sides in this session (false = we did init sides before we reloaded the game).
Definition at line 347 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), do_init_side(), and init_side_end().
|
protected |
Definition at line 325 of file play_controller.hpp.
|
protected |
Definition at line 312 of file play_controller.hpp.
Referenced by get_disallow_recall(), get_scenario_name(), play_controller(), theme(), and to_config().
|
protected |
Definition at line 342 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), can_redo(), can_undo(), check_victory(), playsingle_controller::end_turn(), playmp_controller::handle_generic_event(), is_browsing(), is_linger_mode(), is_lingering(), playmp_controller::linger(), playsingle_controller::linger(), maybe_throw_return_to_play_side(), playmp_controller::play_human_turn(), and playsingle_controller::play_scenario().
|
protected |
Definition at line 328 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::ai_formula(), playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), playsingle_controller::hotkey_handler::change_side(), playsingle_controller::hotkey_handler::clear_labels(), playsingle_controller::hotkey_handler::clear_messages(), playsingle_controller::hotkey_handler::continue_move(), playsingle_controller::hotkey_handler::create_unit(), playsingle_controller::hotkey_handler::custom_command(), playsingle_controller::end_turn(), playsingle_controller::hotkey_handler::end_unit_turn(), enter_textbox(), playsingle_controller::execute_gotos(), get_menu_handler(), play_controller::hotkey_handler::goto_leader(), have_keyboard_focus(), init(), playsingle_controller::hotkey_handler::kill_unit(), playsingle_controller::hotkey_handler::label_settings(), playsingle_controller::hotkey_handler::label_terrain(), play_controller::hotkey_handler::objectives(), play_controller::hotkey_handler::preferences(), process_focus_keydown_event(), playsingle_controller::hotkey_handler::recall(), playsingle_controller::hotkey_handler::recruit(), playsingle_controller::hotkey_handler::rename_unit(), playsingle_controller::hotkey_handler::repeat_recruit(), save_map(), play_controller::hotkey_handler::search(), playmp_controller::hotkey_handler::shout(), play_controller::hotkey_handler::show_chat_log(), play_controller::hotkey_handler::show_enemy_moves(), play_controller::hotkey_handler::show_help(), play_controller::hotkey_handler::show_statistics(), playmp_controller::hotkey_handler::speak(), play_controller::hotkey_handler::status_table(), tab(), play_controller::hotkey_handler::terrain_description(), play_controller::hotkey_handler::toggle_ellipses(), play_controller::hotkey_handler::toggle_grid(), playsingle_controller::hotkey_handler::toggle_shroud_updates(), play_controller::hotkey_handler::unit_description(), playsingle_controller::hotkey_handler::unit_hold_position(), play_controller::hotkey_handler::unit_list(), playsingle_controller::hotkey_handler::update_shroud_now(), playsingle_controller::hotkey_handler::user_command(), playmp_controller::hotkey_handler::whisper(), and playsingle_controller::hotkey_handler::whiteboard_suppose_dead().
|
protected |
Definition at line 327 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), playsingle_controller::hotkey_handler::change_side(), playsingle_controller::hotkey_handler::continue_move(), playsingle_controller::hotkey_handler::create_unit(), play_controller::hotkey_handler::cycle_back_units(), play_controller::hotkey_handler::cycle_units(), play_controller::hotkey_handler::deselect_hex(), playsingle_controller::hotkey_handler::end_unit_turn(), enter_textbox(), play_controller::hotkey_handler::execute_command(), playsingle_controller::execute_gotos(), play_controller::hotkey_handler::expand_wml_commands(), finish_side_turn(), get_mouse_handler_base(), play_controller::hotkey_handler::in_context_menu(), init(), init_side_begin(), playsingle_controller::hotkey_handler::kill_unit(), playsingle_controller::hotkey_handler::label_terrain(), play_controller::hotkey_handler::left_mouse_click(), play_controller::hotkey_handler::move_action(), process_keyup_event(), playsingle_controller::hotkey_handler::recall(), playsingle_controller::hotkey_handler::recruit(), redo(), playsingle_controller::hotkey_handler::repeat_recruit(), play_controller::hotkey_handler::right_mouse_click(), play_controller::hotkey_handler::select_and_action(), play_controller::hotkey_handler::select_hex(), play_controller::hotkey_handler::terrain_description(), undo(), and playsingle_controller::hotkey_handler::unit_hold_position().
|
protected |
Definition at line 331 of file play_controller.hpp.
Referenced by play_controller(), and playsingle_controller::play_scenario().
|
protected |
Definition at line 368 of file play_controller.hpp.
Referenced by playsingle_controller::get_player_type_changed(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playmp_controller::play_network_turn(), play_side(), playsingle_controller::play_side_impl(), playmp_controller::process_network_data(), playmp_controller::pull_remote_choice(), playsingle_controller::set_player_type_changed(), and playsingle_controller::should_return_to_play_side().
|
protected |
Definition at line 322 of file play_controller.hpp.
Referenced by get_plugins_context(), and init().
|
private |
Definition at line 360 of file play_controller.hpp.
Referenced by check_victory().
|
protected |
Definition at line 338 of file play_controller.hpp.
Referenced by maybe_do_init_side(), and play_controller().
|
protected |
Definition at line 313 of file play_controller.hpp.
Referenced by playmp_controller::after_human_turn(), playsingle_controller::before_human_turn(), do_autosave(), do_consolesave(), playsingle_controller::enable_replay(), play_controller::hotkey_handler::expand_autosaves(), get_classification(), get_mp_settings(), init(), playsingle_controller::linger(), load_game(), play_controller(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_init(), playmp_controller::playmp_controller(), playmp_controller::process_oos(), process_oos(), reset_gamestate(), save_game(), save_game_auto(), save_replay(), save_replay_auto(), start_game(), to_config(), and update_savegame_snapshot().
|
private |
Definition at line 364 of file play_controller.hpp.
|
protected |
Definition at line 341 of file play_controller.hpp.
Referenced by is_skipping_replay(), playmp_controller::play_network_turn(), playmp_controller::playmp_controller(), and toggle_skipping_replay().
|
protected |
Definition at line 330 of file play_controller.hpp.
Referenced by get_soundsource_man(), init_managers(), playsingle_controller::play_scenario(), and to_config().
|
protected |
Definition at line 336 of file play_controller.hpp.
|
protected |
Definition at line 310 of file play_controller.hpp.
Referenced by init(), and reset_gamestate().
|
private |
Definition at line 306 of file play_controller.hpp.
Referenced by get_ticks(), and ticks().
|
protected |
Definition at line 316 of file play_controller.hpp.
Referenced by init_managers().
|
private |
Definition at line 361 of file play_controller.hpp.
Referenced by select_victory_music(), and set_victory_music_list().
|
private |
Definition at line 359 of file play_controller.hpp.
Referenced by check_victory().
|
protected |
Definition at line 319 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), finish_side_turn(), playsingle_controller::hotkey_handler::get_action_state(), get_whiteboard(), init(), init_side_end(), play_turn(), process_keydown_event(), process_keyup_event(), playsingle_controller::hotkey_handler::recall(), playsingle_controller::hotkey_handler::recruit(), playsingle_controller::hotkey_handler::repeat_recruit(), playsingle_controller::hotkey_handler::whiteboard_bump_down_action(), playsingle_controller::hotkey_handler::whiteboard_bump_up_action(), playsingle_controller::hotkey_handler::whiteboard_delete_action(), playsingle_controller::hotkey_handler::whiteboard_execute_action(), playsingle_controller::hotkey_handler::whiteboard_execute_all_actions(), playsingle_controller::hotkey_handler::whiteboard_suppose_dead(), and playsingle_controller::hotkey_handler::whiteboard_toggle().
|
protected |
Definition at line 335 of file play_controller.hpp.