#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, bool skip_replay, bool start_faded=false) | |
virtual | ~play_controller () |
virtual void | handle_generic_event (const std::string &) override |
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 () |
replay & | get_replay () |
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 |
bool | check_regular_game_end () |
const end_level_data & | get_end_level_data () const |
std::vector< team > & | get_teams () |
const std::vector< team > & | get_teams () const |
const unit_map & | get_units () const |
unit_map & | get_units () |
const gamemap & | get_map () const |
const tod_manager & | get_tod_manager () const |
bool | is_observer () const |
bool | do_healing () const |
void | set_do_healing (bool do_healing) |
game_state & | gamestate () |
const game_state & | gamestate () const |
void | check_victory () |
Checks to see if a side has won. More... | |
std::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 () |
void | do_autosave () |
bool | is_skipping_story () const |
void | do_consolesave (const std::string &filename) |
events::mouse_handler & | get_mouse_handler_base () override |
Get a reference to a mouse handler member a derived class uses. More... | |
events::menu_handler & | get_menu_handler () |
std::shared_ptr< wb::manager > | get_whiteboard () const |
const mp_game_settings & | get_mp_settings () |
game_classification & | get_classification () |
int | get_server_request_number () const |
void | increase_server_request_number () |
game_events::wml_event_pump & | pump () |
int | get_ticks () const |
virtual soundsource::manager * | get_soundsource_man () override |
Get (optionally) a soundsources manager a derived class uses. More... | |
virtual plugins_context * | get_plugins_context () override |
Get (optionally) a plugins context a derived class uses. More... | |
hotkey::command_executor * | get_hotkey_command_executor () override |
Optionally get a command executor to handle context menu events. More... | |
actions::undo_list & | get_undo_stack () |
bool | is_browsing () const override |
virtual replay_controller * | get_replay_controller () const |
bool | is_replay () const |
t_string | get_scenario_name () const |
bool | get_disallow_recall () const |
std::string | get_loaded_resources () const |
std::string | theme () const |
virtual bool | should_return_to_play_side () const |
void | maybe_throw_return_to_play_side () const |
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 () override |
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 | receive_from_wesnothd (config &) const |
void | refresh_objectives () const |
Reevaluate [show_if] conditions and build a new objectives string. More... | |
void | show_objectives () const |
saved_game & | get_saved_game () |
bool | is_during_turn () const |
bool | is_linger_mode () const |
![]() | |
controller_base () | |
virtual | ~controller_base () |
virtual 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 | handle_window_event (const SDL_Event &) |
virtual void | process_event () |
virtual bool | requires_event_focus (const SDL_Event *=nullptr) const |
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 bool | has_joined () |
virtual bool | has_joined_global () |
sdl_handler & | operator= (sdl_handler &&)=delete |
Moving would require two instances' context membership to be handled, it's simpler to delete these and require the two instances to be separately constructed / destructed. More... | |
sdl_handler (sdl_handler &&)=delete | |
![]() | |
pump_monitor () | |
virtual | ~pump_monitor () |
![]() | |
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 () override |
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) override |
Process keydown (only when the general map display does not have focus). More... | |
void | process_keydown_event (const SDL_Event &event) override |
Process keydown (always). More... | |
void | process_keyup_event (const SDL_Event &event) override |
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_events () |
void | finish_turn () |
bool | enemies_visible () const |
void | enter_textbox () |
void | textbox_move_vertically (bool up) |
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_music (bool victory) const |
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 |
![]() | |
virtual std::vector< std::string > | additional_actions_pressed () |
bool | handle_scroll (int mousex, int mousey, int mouse_flags) |
Handle scrolling by keyboard, joystick and moving mouse near map edges. More... | |
void | handle_event (const SDL_Event &event) override |
Process mouse- and keypress-events from SDL. More... | |
virtual void | process (events::pump_info &) override |
virtual void | show_menu (const std::vector< config > &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 |
void | long_touch_callback (int x, int y) |
![]() | |
sdl_handler (const bool auto_join=true) | |
sdl_handler (const sdl_handler &) | |
sdl_handler & | operator= (const sdl_handler &) |
virtual | ~sdl_handler () |
virtual std::vector< sdl_handler * > | handler_members () |
Private Member Functions | |
void | init (const config &level) |
void | check_next_scenario_is_known () |
This shows a warning dialog if either [scenario]next_scenario or any [endlevel]next_scenario would lead to an "Unknown Scenario" dialog. More... | |
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_ |
const hotkey::scope_changer | scope_ |
Friends | |
struct | scoped_savegame_snapshot |
Additional Inherited Members | |
![]() | |
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 80 of file play_controller.hpp.
play_controller::play_controller | ( | const config & | level, |
saved_game & | state_of_game, | ||
bool | skip_replay, | ||
bool | start_faded = false |
||
) |
Definition at line 141 of file play_controller.cpp.
References game_config::add_color_info(), unit_type_data::apply_scenario_fix(), config::child_range(), resources::classification, saved_game::classification(), clear_resources(), resources::controller, copy_persistent(), DBG_NG, utils::get_unknown_exception_type(), init(), level_, resources::persist, persist_, resources::recorder, replay_, saved_game_, persist_manager::start_transaction(), unit_types, and game_config_view::wrap().
|
virtual |
Definition at line 201 of file play_controller.cpp.
References clear_resources(), unit_type_data::remove_scenario_fixes(), and unit_types.
std::set< std::string > play_controller::all_players | ( | ) | const |
Definition at line 1275 of file play_controller.cpp.
References get_teams(), gui_, and t.
bool play_controller::can_redo | ( | ) | const |
Definition at line 957 of file play_controller.cpp.
References actions::undo_list::can_redo(), events::commands_disabled, is_browsing(), is_during_turn(), and undo_stack().
Referenced by play_controller::hotkey_handler::can_execute_command().
bool play_controller::can_undo | ( | ) | const |
Definition at line 952 of file play_controller.cpp.
References actions::undo_list::can_undo(), events::commands_disabled, is_browsing(), is_during_turn(), and undo_stack().
Referenced by play_controller::hotkey_handler::can_execute_command(), and playmp_controller::play_human_turn().
bool play_controller::can_use_synced_wml_menu | ( | ) | const |
Definition at line 1268 of file play_controller.cpp.
References events::commands_disabled, get_teams(), gui_, is_browsing(), and team::is_local_human().
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), and game_events::wmi_manager::get_items().
|
private |
This shows a warning dialog if either [scenario]next_scenario or any [endlevel]next_scenario would lead to an "Unknown Scenario" dialog.
Definition at line 1199 of file play_controller.cpp.
References _(), _n(), saved_game::classification(), gui2::dialogs::message::close_button, utils::contains(), ERR_NG, game_state::events_manager_, game_config_view::find_child(), find_next_scenarios(), controller_base::game_config_, gamestate(), game_classification::get_tagname(), utils::interpolate_variables_into_string(), LOG_NG, saved_game_, gui2::show_message(), and font::unicode_bullet.
Referenced by start_game().
|
pure virtual |
Implemented in playsingle_controller.
Referenced by fire_start().
bool play_controller::check_regular_game_end | ( | ) |
|
protectedvirtual |
Definition at line 1312 of file play_controller.cpp.
References check_victory(), e, game_events::wml_event_pump::fire(), gamestate(), video::headless(), 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 playsingle_controller::finish_side_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 981 of file play_controller.cpp.
References game_state::board_, game_board::check_victory(), DBG_EE, game_events::wml_event_pump::fire(), gamestate(), ai::manager::get_active_ai_identifier_for_side(), ai::manager::get_singleton(), gui_, video::headless(), draw_manager::invalidate_all(), is_linger_mode(), is_regular_game_end(), end_level_data::is_victory, 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(), do_init_side(), finish_side_turn_events(), 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 225 of file play_controller.hpp.
Referenced by replay::add_synced_command(), playmp_controller::after_human_turn(), wb::move::calculate_moves_left(), wb::manager::can_enable_execution_hotkeys(), actions::shroud_clearer::clear_unit(), playsingle_controller::hotkey_handler::continue_move(), current_team(), events::mouse_handler::current_unit_attacks_from(), do_init_side(), do_replay_handle(), playsingle_controller::end_turn(), playsingle_controller::hotkey_handler::end_unit_turn(), enter_textbox(), playsingle_controller::execute_gotos(), find_last_visible_team(), playsingle_controller::finish_side_turn(), finish_side_turn_events(), replay_helper::get_init_side(), mp_sync::get_user_choice(), play_controller::hotkey_handler::goto_leader(), replay::init_side(), init_side_begin(), playsingle_controller::play_ai_turn(), play_side(), replay_controller::play_side_impl(), playsingle_controller::play_side_impl(), wb::mapbuilder::pre_build(), process_keyup_event(), playsingle_controller::hotkey_handler::recall(), playsingle_controller::hotkey_handler::recruit(), playsingle_controller::hotkey_handler::repeat_recruit(), play_controller::hotkey_handler::show_enemy_moves(), playsingle_controller::show_turn_dialog(), SYNCED_COMMAND_HANDLER_FUNCTION(), playsingle_controller::hotkey_handler::unit_hold_position(), and replay_controller::update_viewing_player().
team & play_controller::current_team | ( | ) |
Definition at line 763 of file play_controller.cpp.
References game_state::board_, current_side(), gamestate(), game_board::get_team(), get_teams(), and utf8::size().
Referenced by playmp_controller::after_human_turn(), playsingle_controller::hotkey_handler::can_execute_command(), do_init_side(), enemies_visible(), init_side_begin(), is_browsing(), maybe_do_init_side(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playsingle_controller::play_side_impl(), actions::shroud_clearing_action::return_village(), wb::manager::should_clear_undo(), 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 773 of file play_controller.cpp.
References game_state::board_, current_side(), gamestate(), game_board::get_team(), get_teams(), and utf8::size().
void play_controller::do_autosave | ( | ) |
Definition at line 1074 of file play_controller.cpp.
References savegame::autosave_savegame::autosave(), preferences::autosavemax(), preferences::INFINITE_AUTO_SAVES, 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 1081 of file play_controller.cpp.
References preferences::save_compression_format(), savegame::savegame::save_game_automatic(), and saved_game_.
|
inline |
Definition at line 191 of file play_controller.hpp.
Referenced by do_init_side().
void play_controller::do_init_side | ( | ) |
Called by replay handler or init_side() to do actual work for turn change.
Definition at line 472 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(), do_healing(), game_events::wml_event_pump::fire(), resources::gameboard, game_state::gamedata_, gamestate(), game_data::get_variable(), gui_, init_side_end(), is_skipping_replay(), log_scope, actions::undo_list::new_side_turn(), game_board::new_turn(), team::new_turn(), display::ONSCREEN, pump(), set_do_healing(), game_data::set_phase(), display_context::side_upkeep(), team::spend_gold(), team::support(), game_state::tod_manager_, turn(), tod_manager::turn_event_fired(), game_data::TURN_PLAYING, game_data::TURN_STARTING, and undo_stack().
Referenced by do_replay_handle(), and maybe_do_init_side().
|
protected |
Definition at line 614 of file play_controller.cpp.
References current_team(), get_units(), and gui_.
Referenced by play_controller::hotkey_handler::can_execute_command().
|
protected |
Definition at line 631 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::floating_textbox::memorize_command(), 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 793 of file play_controller.cpp.
References current_side(), get_teams(), i, is_observer(), is_team_visible(), modulo(), game_config::images::observer, and utf8::size().
Referenced by playsingle_controller::update_viewing_player().
|
protected |
Definition at line 579 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::wml_event_pump::fire(), gamestate(), mouse_handler_, pump(), actions::recalculate_fog(), turn(), and undo_stack().
Referenced by playsingle_controller::finish_side_turn().
|
protected |
Definition at line 605 of file play_controller.cpp.
References set_scontext_synced::do_final_checkup(), game_events::wml_event_pump::fire(), pump(), and turn().
Referenced by playsingle_controller::finish_side_turn().
|
protected |
preload events cannot be synced
Definition at line 361 of file play_controller.cpp.
References game_events::wml_event_pump::fire(), game_state::gamedata_, gamestate(), game_data::get_variable(), game_state::lua_kernel_, pump(), and turn().
Referenced by playsingle_controller::play_scenario_init().
|
protected |
Definition at line 369 of file play_controller.cpp.
References game_events::wml_event_pump::fire(), game_state::gamedata_, gamestate(), get_units(), game_data::get_variable(), game_data::PRESTART, pump(), game_data::set_phase(), and turn().
Referenced by start_game().
|
protected |
Definition at line 394 of file play_controller.cpp.
References check_objectives(), game_events::wml_event_pump::fire(), game_state::gamedata_, gamestate(), get_teams(), game_data::get_variable(), pump(), refresh_objectives(), game_data::set_phase(), skip_story_, game_data::START, turn(), and game_data::TURN_STARTING_WAITING.
Referenced by start_game().
|
pure virtual |
Implemented in playsingle_controller.
Referenced by SYNCED_COMMAND_HANDLER_FUNCTION().
|
inline |
Definition at line 201 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), check_next_scenario_is_known(), check_time_over(), check_victory(), current_team(), playsingle_controller::do_end_level(), do_init_side(), do_replay_handle(), playsingle_controller::enable_replay(), events::mouse_handler::find_unit(), events::mouse_handler::find_unit_nonowning(), playsingle_controller::finish_side_turn(), finish_side_turn_events(), fire_preload(), fire_prestart(), fire_start(), play_controller::hotkey_handler::gamestate(), events::menu_handler::gamestate(), events::mouse_handler::get_route(), init(), playsingle_controller::init_gui(), init_side_begin(), init_side_end(), game_lua_kernel::intf_end_turn(), is_browsing(), is_during_turn(), is_linger_mode(), is_team_visible(), playmp_controller::linger(), playsingle_controller::linger(), playmp_controller::maybe_linger(), events::mouse_handler::mouse_motion(), playmp_controller::play_human_turn(), playmp_controller::play_linger_turn(), playmp_controller::play_network_turn(), playsingle_controller::play_scenario_init(), playsingle_controller::play_scenario_main_loop(), play_side(), replay_controller::play_side_impl(), playsingle_controller::play_side_impl(), playsingle_controller::play_some(), playmp_controller::playmp_controller(), playmp_controller::process_network_data(), pump(), refresh_objectives(), replay_controller::replay_next_turn(), reset_gamestate(), save_game(), events::mouse_handler::select_or_action(), playsingle_controller::should_return_to_play_side(), events::mouse_handler::show_attack_dialog(), playsingle_controller::show_turn_dialog(), playsingle_controller::skip_empty_sides(), start_game(), playsingle_controller::sync_end_turn(), to_config(), events::mouse_handler::touch_motion(), events::mouse_handler::unit_in_cycle(), and replay_controller::update_viewing_player().
|
inline |
Definition at line 206 of file play_controller.hpp.
game_classification & play_controller::get_classification | ( | ) |
Definition at line 824 of file play_controller.cpp.
References saved_game::classification(), and saved_game_.
Referenced by game_lua_kernel::game_lua_kernel().
|
inline |
Definition at line 271 of file play_controller.hpp.
Referenced by events::menu_handler::recall().
|
overridevirtual |
Get a reference to a display member a derived class uses.
Implements controller_base.
Definition at line 829 of file play_controller.cpp.
References gui_.
Referenced by replay_controller::add_replay_theme(), gui2::dialogs::lua_interpreter::display(), play_controller::hotkey_handler::gui(), replay_controller::handle_generic_event(), impl_merge_terrain(), intf_terrain_mask(), gui2::dialogs::game_stats::pre_show(), replay_controller::replay_controller(), toggle_skipping_replay(), replay_controller::update_enabled_buttons(), replay_controller::update_gui(), replay_controller::update_teams(), and replay_controller::~replay_controller().
|
inline |
Definition at line 151 of file play_controller.hpp.
Referenced by playsingle_controller::describe_result(), playsingle_controller::do_end_level(), playmp_controller::linger(), playmp_controller::maybe_linger(), playsingle_controller::play_scenario(), playsingle_controller::play_some(), and campaign_controller::playsingle_scenario().
|
overridevirtual |
Optionally get a command executor to handle context menu events.
Reimplemented from controller_base.
Definition at line 1114 of file play_controller.cpp.
References hotkey_handler_.
Referenced by playsingle_controller::end_turn_enable(), playsingle_controller::init_gui(), and display::queue_rerender().
|
inline |
Definition at line 276 of file play_controller.hpp.
|
inline |
Definition at line 176 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), events::menu_handler::change_side(), events::menu_handler::create_unit(), events::mouse_handler::current_unit_attacks_from(), events::menu_handler::do_search(), events::menu_handler::execute_gotos(), play_controller::hotkey_handler::in_context_menu(), playsingle_controller::init_gui(), events::menu_handler::label_terrain(), events::mouse_handler::mouse_motion(), events::mouse_handler::move_unit_along_route(), events::menu_handler::save_map(), events::mouse_handler::select_or_action(), events::mouse_handler::show_attack_options(), events::mouse_handler::show_reach_for_unit(), events::menu_handler::terrain_description(), and events::mouse_handler::touch_motion().
|
inline |
Definition at line 241 of file play_controller.hpp.
Referenced by wb::recruit::execute().
|
overridevirtual |
Get a reference to a mouse handler member a derived class uses.
Implements controller_base.
Definition at line 809 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(), events::console_handler::do_terrain(), wb::attack::execute(), wb::move::execute(), wb::manager::on_mouseover_change(), display::refresh_report(), and events::menu_handler::show_enemy_moves().
const mp_game_settings & play_controller::get_mp_settings | ( | ) |
Definition at line 819 of file play_controller.cpp.
References saved_game::mp_settings(), and saved_game_.
|
overridevirtual |
Get (optionally) a plugins context a derived class uses.
Reimplemented from controller_base.
Definition at line 1109 of file play_controller.cpp.
References plugins_context_.
replay & play_controller::get_replay | ( | ) |
Definition at line 893 of file play_controller.cpp.
References replay_.
|
inlinevirtual |
Reimplemented in playsingle_controller.
Definition at line 263 of file play_controller.hpp.
Referenced by events::menu_handler::current_unit().
|
inline |
Definition at line 325 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::load_autosave().
|
inline |
Definition at line 266 of file play_controller.hpp.
Referenced by init(), playsingle_controller::play_scenario(), and show_objectives().
|
inline |
Definition at line 246 of file play_controller.hpp.
Referenced by synced_context::server_choice::send_request().
|
overridevirtual |
Get (optionally) a soundsources manager a derived class uses.
Reimplemented from controller_base.
Definition at line 1104 of file play_controller.cpp.
References soundsources_manager_.
|
inline |
Definition at line 156 of file play_controller.hpp.
Referenced by all_players(), play_controller::hotkey_handler::can_execute_command(), can_use_synced_wml_menu(), events::menu_handler::change_side(), playsingle_controller::check_objectives(), events::mouse_handler::current_team(), current_team(), events::menu_handler::current_unit(), quit_confirmation::default_prompt(), playsingle_controller::do_end_level(), events::menu_handler::do_search(), events::menu_handler::end_turn(), find_last_visible_team(), playsingle_controller::finish_side_turn(), fire_start(), events::mouse_handler::get_adj_enemies(), events::menu_handler::has_friends(), init(), playmp_controller::maybe_linger(), playsingle_controller::play_scenario_main_loop(), playsingle_controller::play_some(), process_keyup_event(), events::menu_handler::send_chat_message(), events::mouse_handler::show_attack_options(), events::menu_handler::show_enemy_moves(), show_objectives(), events::mouse_handler::show_reach_for_unit(), playsingle_controller::skip_empty_sides(), start_game(), tab(), play_controller::hotkey_handler::viewing_team(), and events::mouse_handler::viewing_team().
|
inline |
Definition at line 161 of file play_controller.hpp.
int play_controller::get_ticks | ( | ) | const |
Definition at line 1099 of file play_controller.cpp.
References ticks_.
Referenced by campaign_controller::playsingle_scenario().
|
inline |
Definition at line 181 of file play_controller.hpp.
Referenced by events::mouse_handler::attack_enemy_().
|
inline |
Definition at line 257 of file play_controller.hpp.
References resources::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 166 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), events::menu_handler::change_side(), events::menu_handler::continue_move(), events::menu_handler::create_unit(), events::menu_handler::current_unit(), events::mouse_handler::cycle_units(), play_controller::hotkey_handler::do_execute_command(), events::menu_handler::do_search(), events::menu_handler::end_turn(), events::menu_handler::end_unit_turn(), enemies_visible(), events::menu_handler::execute_gotos(), play_controller::hotkey_handler::expand_wml_commands(), events::mouse_handler::fill_weapon_choices(), events::mouse_handler::find_unit(), fire_prestart(), events::menu_handler::goto_leader(), events::mouse_handler::move_action(), events::mouse_handler::move_unit_along_route(), events::menu_handler::move_unit_to_loc(), playsingle_controller::play_side_impl(), events::menu_handler::rename_unit(), events::mouse_handler::select_hex(), events::mouse_handler::show_attack_options(), events::menu_handler::show_enemy_moves(), tab(), events::menu_handler::unit_description(), and events::menu_handler::unit_hold_position().
|
inline |
Definition at line 171 of file play_controller.hpp.
std::shared_ptr< wb::manager > play_controller::get_whiteboard | ( | ) | const |
Definition at line 814 of file play_controller.cpp.
References whiteboard_manager_.
Referenced by events::menu_handler::can_recruit(), events::mouse_handler::current_unit_attacks_from(), events::menu_handler::do_recruit(), events::menu_handler::end_turn(), 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(), events::mouse_handler::set_current_paths(), and events::mouse_handler::touch_motion().
|
inlineoverridevirtual |
Implements events::observer.
Reimplemented in playsingle_controller, and playmp_controller.
Definition at line 91 of file play_controller.hpp.
References wfl::msg().
|
overrideprotectedvirtual |
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 834 of file play_controller.cpp.
References gui::floating_textbox::active(), events::menu_handler::get_textbox(), and menu_handler_.
|
inline |
Definition at line 247 of file play_controller.hpp.
References events::pump().
Referenced by synced_context::ask_server_choice().
|
private |
Definition at line 207 of file play_controller.cpp.
References _(), game_state::board_, build_terrain, config::child_or_empty(), gui2::dialogs::loading_screen::display(), preferences::encounter_all_content(), game_state::events_manager_, resources::filter_con, resources::game_events, resources::gameboard, resources::gamedata, game_state::gamedata_, gamestate(), gamestate_, get_scenario_name(), get_teams(), gui_, video::headless(), init_display, init_lua, init_managers(), init_theme, init_whiteboard, is_observer(), load_level, load_units, LOG_NG, resources::lua_kernel, game_state::lua_kernel_, map_start_, menu_handler_, mouse_handler_, mp_game_settings::mp_countdown, saved_game::mp_settings(), game_state::pathfind_manager_, plugins_context_, game_data::PRELOAD, gui2::dialogs::loading_screen::progress(), gui2::dialogs::loading_screen::raise(), save_game_auto(), save_replay_auto(), saved_game_, game_state::set_game_display(), events::menu_handler::set_gui(), events::mouse_handler::set_gui(), game_data::set_phase(), start_faded_, start_game, t, theme(), throw_quit_game_exception(), ticks(), resources::tod_manager, game_state::tod_manager_, resources::tunnels, resources::undo_stack, undo_stack(), resources::whiteboard, and whiteboard_manager_.
Referenced by play_controller().
|
protectedvirtual |
Reimplemented in playsingle_controller.
Definition at line 416 of file play_controller.cpp.
References gui_.
Referenced by playsingle_controller::init_gui(), and start_game().
|
protected |
Definition at line 352 of file play_controller.cpp.
References gui_, LOG_NG, resources::soundsources, soundsources_manager_, and ticks().
Referenced by init().
void play_controller::init_side_begin | ( | ) |
Definition at line 422 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 playsingle_controller::finish_side_turn().
void play_controller::init_side_end | ( | ) |
Definition at line 551 of file play_controller.cpp.
References did_tod_sound_this_turn_, gamestate(), tod_manager::get_time_of_day(), sound::play_sound(), sound::SOUND_SOURCES, time_of_day::sounds, game_state::tod_manager_, and whiteboard_manager_.
Referenced by do_init_side(), and playsingle_controller::play_scenario_init().
|
overridevirtual |
Reimplemented from controller_base.
Definition at line 1119 of file play_controller.cpp.
References current_team(), gamestate(), team::is_local_human(), team::is_proxy_human(), t, and game_data::TURN_PLAYING.
Referenced by play_controller::hotkey_handler::browse(), can_redo(), can_undo(), can_use_synced_wml_menu(), playsingle_controller::check_objectives(), and playsingle_controller::end_turn().
bool play_controller::is_during_turn | ( | ) | const |
Definition at line 1373 of file play_controller.cpp.
References gamestate(), game_state::in_phase(), and game_data::TURN_PLAYING.
Referenced by can_redo(), can_undo(), maybe_do_init_side(), and maybe_throw_return_to_play_side().
bool play_controller::is_linger_mode | ( | ) | const |
Definition at line 1378 of file play_controller.cpp.
References game_data::GAME_ENDED, gamestate(), and game_state::in_phase().
Referenced by playsingle_controller::before_human_turn(), play_controller::hotkey_handler::can_execute_command(), check_victory(), playsingle_controller::end_turn(), playmp_controller::handle_generic_event(), play_controller::hotkey_handler::linger(), playmp_controller::play_slice(), hotkey::command_executor::surrender_game(), and playsingle_controller::update_gui_linger().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 311 of file play_controller.hpp.
Referenced by events::menu_handler::ai_formula(), synced_context::ask_server_choice(), playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), mp_sync::get_user_choice(), playsingle_controller::hotkey_handler::load_autosave(), playsingle_controller::on_replay_end(), playsingle_controller::play_scenario_init(), playsingle_controller::hotkey_handler::replay_exit(), and wb::manager::should_clear_undo().
|
inline |
Definition at line 186 of file play_controller.hpp.
Referenced by play_controller::hotkey_handler::can_execute_command(), quit_confirmation::default_prompt(), playsingle_controller::do_end_level(), find_last_visible_team(), init(), init_side_begin(), playsingle_controller::hotkey_handler::is_observer(), playsingle_controller::play_scenario(), and hotkey::command_executor::surrender_game().
|
inline |
Definition at line 144 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), playsingle_controller::check_objectives(), check_time_over(), check_victory(), playsingle_controller::describe_result(), playsingle_controller::finish_side_turn(), playmp_controller::linger(), playmp_controller::maybe_linger(), playsingle_controller::maybe_linger(), playsingle_controller::on_replay_end(), playmp_controller::play_network_turn(), play_side(), replay_controller::play_side_impl(), playsingle_controller::play_side_impl(), playsingle_controller::play_some(), playmp_controller::process_network_data(), playsingle_controller::should_return_to_play_side(), playsingle_controller::show_turn_dialog(), and start_game().
|
inline |
Definition at line 264 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), events::menu_handler::current_unit(), playsingle_controller::do_end_level(), init_side_begin(), maybe_do_init_side(), and playmp_controller::play_slice().
|
inline |
Definition at line 232 of file play_controller.hpp.
Referenced by do_init_side(), replay_controller::handle_generic_event(), playsingle_controller::play_scenario(), start_game(), and replay_controller::~replay_controller().
|
inline |
Definition at line 236 of file play_controller.hpp.
Referenced by playsingle_controller::play_scenario().
|
protected |
Definition at line 783 of file play_controller.cpp.
References game_state::board_, gamestate(), team::get_disallow_observers(), game_board::get_team(), team::is_empty(), team::is_idle(), team::is_local_human(), and t.
Referenced by find_last_visible_team().
void play_controller::load_game | ( | ) |
Definition at line 934 of file play_controller.cpp.
References savegame::save_index_class::default_saves_dir(), gui2::tip_of_the_day::load(), savegame::loadgame::load_game_ingame(), and saved_game_.
Referenced by play_controller::hotkey_handler::load_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 436 of file play_controller.cpp.
References current_team(), do_init_side(), replay::init_side(), is_during_turn(), is_replay(), and resources::recorder.
Referenced by play_side().
void play_controller::maybe_throw_return_to_play_side | ( | ) | const |
Definition at line 1383 of file play_controller.cpp.
References is_during_turn(), and should_return_to_play_side().
Referenced by 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 1287 of file play_controller.cpp.
References current_side(), gamestate(), 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 playsingle_controller::play_some().
|
inlinevirtual |
Reimplemented in playsingle_controller.
Definition at line 293 of file play_controller.hpp.
Referenced by play_side().
|
protected |
Definition at line 1129 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().
|
overrideprotectedvirtual |
Process keydown (only when the general map display does not have focus).
Reimplemented from controller_base.
Definition at line 839 of file play_controller.cpp.
References gui::floating_textbox::close(), enter_textbox(), events::menu_handler::get_textbox(), menu_handler_, tab(), and textbox_move_vertically().
|
overrideprotectedvirtual |
Process keydown (always).
Overridden in derived classes
Reimplemented from controller_base.
Definition at line 854 of file play_controller.cpp.
References whiteboard_manager_.
|
overrideprotectedvirtual |
Process keyup (always).
Reimplemented from controller_base.
Definition at line 861 of file play_controller.cpp.
References events::mouse_handler::current_paths(), current_side(), events::mouse_handler::get_path_turns(), events::mouse_handler::get_selected_hex(), get_teams(), 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 1048 of file play_controller.cpp.
References _(), video::headless(), game_config::ignore_replay_errors, ignore_replay_errors_, wfl::msg(), savegame::savegame::save_game_interactive(), saved_game_, and savegame::savegame::YES_NO.
Referenced by replay::process_error().
game_events::wml_event_pump & play_controller::pump | ( | ) |
Definition at line 1094 of file play_controller.cpp.
References game_state::events_manager_, and gamestate().
Referenced by check_time_over(), check_victory(), playsingle_controller::do_end_level(), do_init_side(), finish_side_turn_events(), finish_turn(), fire_preload(), fire_prestart(), fire_start(), events::mouse_handler::select_hex(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 313 of file play_controller.hpp.
Referenced by playsingle_controller::playsingle_controller().
void play_controller::redo | ( | ) |
Definition at line 946 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), mouse_handler_, actions::undo_list::redo(), and undo_stack().
Referenced by play_controller::hotkey_handler::redo().
void play_controller::refresh_objectives | ( | ) | const |
Reevaluate [show_if] conditions and build a new objectives string.
Definition at line 387 of file play_controller.cpp.
References gamestate(), gui_, and game_state::lua_kernel_.
Referenced by fire_start(), and events::menu_handler::objectives().
|
inline |
Definition at line 139 of file play_controller.hpp.
|
protected |
Definition at line 312 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(), resources::tod_manager, game_state::tod_manager_, resources::tunnels, resources::undo_stack, and undo_stack().
Referenced by playsingle_controller::play_scenario_main_loop().
void play_controller::save_game | ( | ) |
Definition at line 899 of file play_controller.cpp.
References gamestate(), savegame::savegame::OK_CANCEL, preferences::save_compression_format(), savegame::savegame::save_game_interactive(), and saved_game_.
Referenced by play_controller::hotkey_handler::save_game().
void play_controller::save_game_auto | ( | const std::string & | filename | ) |
Definition at line 910 of file play_controller.cpp.
References preferences::save_compression_format(), savegame::savegame::save_game_automatic(), and saved_game_.
Referenced by init().
void play_controller::save_map | ( | ) |
Definition at line 929 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::save_map().
Referenced by play_controller::hotkey_handler::save_map().
void play_controller::save_replay | ( | ) |
Definition at line 917 of file play_controller.cpp.
References savegame::savegame::OK_CANCEL, preferences::save_compression_format(), savegame::savegame::save_game_interactive(), and saved_game_.
Referenced by play_controller::hotkey_handler::save_replay().
void play_controller::save_replay_auto | ( | const std::string & | filename | ) |
Definition at line 923 of file play_controller.cpp.
References preferences::save_compression_format(), savegame::savegame::save_game_automatic(), and saved_game_.
Referenced by init().
|
protected |
Definition at line 962 of file play_controller.cpp.
References game_config::default_defeat_music, randomness::rng::default_instance(), game_config::default_victory_music, gamestate_, and randomness::rng::get_random_int().
Referenced by playsingle_controller::do_end_level().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 312 of file play_controller.hpp.
Referenced by turn_info::change_side_controller(), replay_network_sender::commit_and_sync(), playsingle_controller::do_end_level(), 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().
|
inline |
Definition at line 196 of file play_controller.hpp.
Referenced by do_init_side().
|
inline |
Definition at line 134 of file play_controller.hpp.
References data.
Referenced by check_time_over(), check_victory(), playsingle_controller::on_replay_end(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
inlinevirtual |
Reimplemented in playsingle_controller.
Definition at line 286 of file play_controller.hpp.
Referenced by maybe_throw_return_to_play_side(), and play_slice_catch().
void play_controller::show_objectives | ( | ) | const |
Definition at line 1355 of file play_controller.cpp.
References _(), gamestate_, get_scenario_name(), get_teams(), gui_, utils::interpolate_variables_into_string(), team::objectives(), team::reset_objectives_changed(), gui2::show_transient_message(), and t.
Referenced by playsingle_controller::check_objectives(), and events::menu_handler::objectives().
|
protected |
Definition at line 1142 of file play_controller.cpp.
References replay::add_start_if_not_there_yet(), check_next_scenario_is_known(), actions::clear_shroud(), set_scontext_synced::do_final_checkup(), fire_prestart(), fire_start(), gamestate(), replay::get_next_action(), get_teams(), gui_, init_gui(), is_regular_game_end(), is_skipping_replay(), LOG_NG, map_start_, mp_game_settings::mp_countdown, mp_game_settings::mp_countdown_init_time, saved_game::mp_settings(), game_data::PRELOAD, resources::recorder, saved_game_, and t.
Referenced by playsingle_controller::play_scenario_init().
|
inlineprotectedvirtual |
Reimplemented in playsingle_controller.
Definition at line 435 of file play_controller.hpp.
Referenced by play_side().
|
protected |
Definition at line 707 of file play_controller.cpp.
References ERR_DP, preferences::get_acquaintances_nice(), events::menu_handler::get_commands_list(), get_teams(), events::menu_handler::get_textbox(), get_units(), gui_, preferences::login(), menu_handler_, gui::floating_textbox::mode(), t, gui::floating_textbox::tab(), gui::TEXTBOX_COMMAND, gui::TEXTBOX_MESSAGE, gui::TEXTBOX_SEARCH, and w.
Referenced by process_focus_keydown_event().
|
protected |
Definition at line 667 of file play_controller.cpp.
References gui::floating_textbox::active(), gui::floating_textbox::box(), gui::floating_textbox::command_history(), events::menu_handler::get_textbox(), gui::floating_textbox::memorize_command(), menu_handler_, gui::floating_textbox::mode(), prev, gui::TEXTBOX_MESSAGE, and gui::TEXTBOX_NONE.
Referenced by process_focus_keydown_event().
|
inline |
Definition at line 281 of file play_controller.hpp.
Referenced by replay_controller::add_replay_theme(), and init().
|
inline |
Definition at line 302 of file play_controller.hpp.
Referenced by game_state::init(), init(), playsingle_controller::init_gui(), init_managers(), 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 561 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(), campaign_controller::playsingle_scenario(), and update_savegame_snapshot().
void play_controller::toggle_skipping_replay | ( | ) |
Definition at line 1364 of file play_controller.cpp.
References display::find_action_button(), get_display(), and skip_replay_.
Referenced by play_controller::hotkey_handler::replay_skip_animation(), and replay_controller::~replay_controller().
|
inline |
Definition at line 218 of file play_controller.hpp.
Referenced by wfl::gamestate::DEFINE_WFL_FUNCTION(), do_init_side(), play_controller::hotkey_handler::expand_autosaves(), finish_side_turn_events(), finish_turn(), fire_preload(), fire_prestart(), fire_start(), playmp_controller::play_network_turn(), playmp_controller::playmp_controller(), and playsingle_controller::playsingle_controller().
void play_controller::undo | ( | ) |
Definition at line 940 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), mouse_handler_, actions::undo_list::undo(), and undo_stack().
Referenced by play_controller::hotkey_handler::undo().
|
inlineprotected |
Definition at line 389 of file play_controller.hpp.
Referenced by can_redo(), can_undo(), do_init_side(), finish_side_turn_events(), init(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), redo(), reset_gamestate(), playmp_controller::surrender(), and undo().
|
inlineprotected |
Definition at line 390 of file play_controller.hpp.
void play_controller::update_gui_to_player | ( | const int | team_index, |
const bool | observe = false |
||
) |
Changes the UI for this client to the passed side index.
Definition at line 1067 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 1088 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 331 of file play_controller.hpp.
|
private |
Definition at line 422 of file play_controller.hpp.
|
protected |
Whether we did init sides in this session (false = we did init sides before we reloaded the game).
Definition at line 399 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), and playsingle_controller::finish_side_turn().
|
protected |
Definition at line 400 of file play_controller.hpp.
Referenced by playsingle_controller::finish_side_turn(), and init_side_end().
|
protected |
Definition at line 363 of file play_controller.hpp.
Referenced by playsingle_controller::finish_side_turn(), init(), reset_gamestate(), select_music(), show_objectives(), and playsingle_controller::sync_end_turn().
|
protected |
Definition at line 386 of file play_controller.hpp.
Referenced by playsingle_controller::after_human_turn(), all_players(), can_use_synced_wml_menu(), playsingle_controller::check_objectives(), check_victory(), playmp_controller::do_idle_notification(), playsingle_controller::do_idle_notification(), do_init_side(), enemies_visible(), playsingle_controller::finish_side_turn(), get_display(), init(), playsingle_controller::init_gui(), init_gui(), init_managers(), init_side_begin(), playmp_controller::linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario_init(), playmp_controller::playmp_controller(), process_keyup_event(), refresh_objectives(), playmp_controller::remove_blindfold(), reset_gamestate(), show_objectives(), playsingle_controller::show_turn_dialog(), start_game(), tab(), to_config(), playsingle_controller::update_gui_linger(), update_gui_to_player(), and playsingle_controller::update_viewing_player().
|
protected |
Definition at line 378 of file play_controller.hpp.
|
protected |
Definition at line 381 of file play_controller.hpp.
Referenced by get_hotkey_command_executor(), playmp_controller::playmp_controller(), and playsingle_controller::playsingle_controller().
|
mutableprotected |
Definition at line 427 of file play_controller.hpp.
Referenced by playmp_controller::process_oos(), and process_oos().
|
protected |
Definition at line 377 of file play_controller.hpp.
|
protected |
Definition at line 364 of file play_controller.hpp.
Referenced by play_controller(), and to_config().
|
protected |
Definition at line 402 of file play_controller.hpp.
Referenced by init(), playsingle_controller::init_gui(), and start_game().
|
protected |
Definition at line 380 of file play_controller.hpp.
Referenced by playsingle_controller::end_turn(), enter_textbox(), playsingle_controller::execute_gotos(), have_keyboard_focus(), init(), process_focus_keydown_event(), save_map(), tab(), and textbox_move_vertically().
|
protected |
Definition at line 379 of file play_controller.hpp.
Referenced by enter_textbox(), playsingle_controller::execute_gotos(), finish_side_turn_events(), get_mouse_handler_base(), init(), init_side_begin(), process_keyup_event(), redo(), and undo().
|
protected |
Definition at line 383 of file play_controller.hpp.
Referenced by playsingle_controller::do_end_level(), and play_controller().
|
protected |
true when the controller of the currently playing side has changed.
this can mean for example:
Definition at line 434 of file play_controller.hpp.
Referenced by playsingle_controller::linger(), 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(), and playsingle_controller::should_return_to_play_side().
|
protected |
Definition at line 374 of file play_controller.hpp.
Referenced by get_plugins_context(), init(), and playsingle_controller::playsingle_controller().
|
private |
Definition at line 420 of file play_controller.hpp.
Referenced by check_victory().
|
protected |
Definition at line 391 of file play_controller.hpp.
Referenced by get_replay(), and play_controller().
|
protected |
Definition at line 365 of file play_controller.hpp.
Referenced by playmp_controller::after_human_turn(), playsingle_controller::before_human_turn(), check_next_scenario_is_known(), do_autosave(), do_consolesave(), playsingle_controller::do_end_level(), playsingle_controller::enable_replay(), get_classification(), get_mp_settings(), init(), playmp_controller::linger(), 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(), playsingle_controller::playsingle_controller(), playmp_controller::process_oos(), process_oos(), reset_gamestate(), save_game(), save_game_auto(), save_replay(), save_replay_auto(), start_game(), to_config(), update_savegame_snapshot(), and play_controller::scoped_savegame_snapshot::~scoped_savegame_snapshot().
|
private |
Definition at line 424 of file play_controller.hpp.
|
protected |
Definition at line 393 of file play_controller.hpp.
Referenced by playmp_controller::play_network_turn(), playmp_controller::playmp_controller(), and toggle_skipping_replay().
|
protected |
Definition at line 394 of file play_controller.hpp.
Referenced by fire_start().
|
protected |
Definition at line 382 of file play_controller.hpp.
Referenced by get_soundsource_man(), init_managers(), playsingle_controller::play_scenario_init(), and to_config().
|
protected |
Definition at line 404 of file play_controller.hpp.
Referenced by init().
|
protected |
Definition at line 388 of file play_controller.hpp.
|
private |
Definition at line 359 of file play_controller.hpp.
Referenced by get_ticks().
|
protected |
Definition at line 368 of file play_controller.hpp.
|
private |
Definition at line 421 of file play_controller.hpp.
|
private |
Definition at line 419 of file play_controller.hpp.
Referenced by check_victory().
|
protected |
Definition at line 371 of file play_controller.hpp.
Referenced by playsingle_controller::finish_side_turn(), get_whiteboard(), init(), init_side_end(), process_keydown_event(), and process_keyup_event().
|
protected |
Definition at line 387 of file play_controller.hpp.