#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) | |
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... | |
bool | reveal_map_default () const |
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 |
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 |
bool | is_skipping_actions () 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 () |
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 |
replay & | recorder () 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 |
team & | current_team () |
const team & | current_team () const |
bool | can_use_synced_wml_menu () const |
std::set< std::string > | all_players () const |
const auto & | timer () 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 void | send_actions () |
Sends replay [command]s to the server. More... | |
virtual void | receive_actions () |
Reads and executes replay [command]s from the server. 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 () |
statistics_t & | statistics () |
bool | is_during_turn () const |
bool | is_linger_mode () const |
virtual int | find_viewing_side () const =0 |
returns 0 if no such team was found. More... | |
Public Member Functions inherited from controller_base | |
controller_base () | |
virtual | ~controller_base () |
virtual void | play_slice () |
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) |
Public Member Functions inherited from events::sdl_handler | |
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 | |
Public Member Functions inherited from events::pump_monitor | |
pump_monitor () | |
virtual | ~pump_monitor () |
Public Member Functions inherited from events::observer | |
virtual | ~observer () |
Public Member Functions inherited from quit_confirmation | |
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 () |
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 |
Protected Member Functions inherited from controller_base | |
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 () 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 (const hotkey::ui_command &cmd) const |
void | long_touch_callback (int x, int y) |
Protected Member Functions inherited from events::sdl_handler | |
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 | |
utils::ms_optimer | timer_ |
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 Public Member Functions inherited from quit_confirmation | |
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 61 of file play_controller.hpp.
play_controller::play_controller | ( | const config & | level, |
saved_game & | state_of_game | ||
) |
Definition at line 131 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(), game_config::images::level, level_, resources::persist, persist_, resources::recorder, replay_, saved_game_, persist_manager::start_transaction(), unit_types, and game_config_view::wrap().
|
virtual |
Definition at line 189 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 1242 of file play_controller.cpp.
References get_teams(), gui_, and t.
Referenced by campaign_controller::playmp_scenario().
bool play_controller::can_redo | ( | ) | const |
Definition at line 920 of file play_controller.cpp.
References actions::undo_list::can_redo(), events::commands_disabled, is_browsing(), is_during_turn(), and undo_stack().
bool play_controller::can_undo | ( | ) | const |
Definition at line 915 of file play_controller.cpp.
References actions::undo_list::can_undo(), events::commands_disabled, is_browsing(), is_during_turn(), and undo_stack().
Referenced by playmp_controller::play_human_turn().
bool play_controller::can_use_synced_wml_menu | ( | ) | const |
Definition at line 1235 of file play_controller.cpp.
References events::commands_disabled, gui_, is_browsing(), and team::is_local_human().
Referenced by 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 1166 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().
|
protectedvirtual |
Definition at line 1254 of file play_controller.cpp.
References check_victory(), e, game_events::wml_event_pump::fire(), gamestate(), video::headless(), is_regular_game_end(), LOG_AIT, ai_testing::log_draw(), LOG_NG, tod_manager::next_turn(), pump(), reveal_map_default(), 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 944 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(), transient_end_level::reveal_map, reveal_map_default(), set_end_level_data(), end_level_data::transient, and game_state::victory_when_enemies_defeated_.
Referenced by check_time_over(), do_init_side(), finish_side_turn_events(), and synced_context::run().
|
inline |
Returns the number of the side whose turn it is.
Numbering starts at one.
Definition at line 204 of file play_controller.hpp.
References gamestate_.
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(), 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(), playsingle_controller::find_viewing_side(), playsingle_controller::finish_side_turn(), finish_side_turn_events(), replay_helper::get_init_side(), mp_sync::get_user_choice(), replay::init_side(), init_side_begin(), playsingle_controller::play_ai_turn(), playsingle_controller::play_side_impl(), replay_controller::play_side_impl(), 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 751 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(), do_init_side(), enemies_visible(), playsingle_controller::finish_side_turn(), synced_context::ignore_undo(), is_browsing(), is_skipping_actions(), maybe_do_init_side(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playsingle_controller::play_side_impl(), playmp_controller::process_network_turn_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 761 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 1043 of file play_controller.cpp.
References savegame::autosave_savegame::autosave(), prefs::get(), pref_constants::INFINITE_AUTO_SAVES, and saved_game_.
Referenced by playmp_controller::process_network_side_drop_impl().
void play_controller::do_consolesave | ( | const std::string & | filename | ) |
Definition at line 1050 of file play_controller.cpp.
References filename, prefs::get(), savegame::savegame::save_game_automatic(), and saved_game_.
|
inline |
Definition at line 170 of file play_controller.hpp.
References game_state::do_healing_, and gamestate().
Referenced by do_init_side(), and set_do_healing().
void play_controller::do_init_side | ( | ) |
Called by replay handler or init_side() to do actual work for turn change.
Definition at line 447 of file play_controller.cpp.
References synced_context::block_undo(), 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(), gamestate_, game_data::get_variable(), gui_, init_side_end(), is_skipping_replay(), log_scope, actions::undo_list::new_side_turn(), team::new_turn(), game_board::new_turn(), display::ONSCREEN, pump(), statistics_t::reset_turn_stats(), set_do_healing(), game_data::set_phase(), display_context::side_upkeep(), team::spend_gold(), statistics(), 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 602 of file play_controller.cpp.
References current_team(), get_units(), and gui_.
|
protected |
Definition at line 619 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().
|
pure virtual |
returns 0 if no such team was found.
Implemented in playsingle_controller.
Referenced by replay_controller::update_viewing_player().
|
protected |
Definition at line 566 of file play_controller.cpp.
References synced_context::block_undo(), game_state::board_, check_victory(), 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(), and turn().
Referenced by playsingle_controller::finish_side_turn().
|
protected |
Definition at line 593 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 338 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 346 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 373 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 game_lua_kernel::intf_end_turn(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
inline |
Definition at line 180 of file play_controller.hpp.
References gamestate_.
Referenced by playsingle_controller::before_human_turn(), playsingle_controller::hotkey_handler::can_execute_command(), playmp_controller::hotkey_handler::can_execute_command(), check_next_scenario_is_known(), check_time_over(), check_victory(), current_team(), playsingle_controller::do_end_level(), play_controller::hotkey_handler::do_execute_command(), do_healing(), do_init_side(), do_replay_handle(), play_controller::hotkey_handler::expand_wml_commands(), 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(), playsingle_controller::force_end_turn(), events::menu_handler::gamestate(), get_end_level_data(), get_map(), events::mouse_handler::get_route(), get_server_request_number(), get_teams(), get_tod_manager(), get_units(), play_controller::hotkey_handler::in_context_menu(), increase_server_request_number(), init(), init_side_begin(), init_side_end(), game_lua_kernel::intf_end_turn(), is_browsing(), is_during_turn(), is_linger_mode(), is_observer(), is_regular_game_end(), playsingle_controller::is_team_visible(), playsingle_controller::linger(), playmp_controller::maybe_linger(), events::mouse_handler::mouse_button_event(), events::mouse_handler::mouse_motion(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario_init(), playsingle_controller::play_scenario_main_loop(), playsingle_controller::play_side_impl(), replay_controller::play_side_impl(), playsingle_controller::play_some(), playmp_controller::process_network_change_controller_impl(), playmp_controller::process_network_data(), playmp_controller::process_network_side_drop_impl(), pump(), refresh_objectives(), replay_controller::replay_next_turn(), reset_end_level_data(), reset_gamestate(), save_game(), events::mouse_handler::select_or_action(), events::mouse_handler::select_teleport(), set_do_healing(), set_end_level_data(), 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(), turn(), undo_stack(), and events::mouse_handler::unit_in_cycle().
|
inline |
Definition at line 185 of file play_controller.hpp.
References gamestate_.
game_classification & play_controller::get_classification | ( | ) |
Definition at line 787 of file play_controller.cpp.
References saved_game::classification(), and saved_game_.
Referenced by scenario_tag::cls(), and game_lua_kernel::game_lua_kernel().
|
inline |
Definition at line 251 of file play_controller.hpp.
References level_.
|
overridevirtual |
Get a reference to a display member a derived class uses.
Implements controller_base.
Definition at line 792 of file play_controller.cpp.
References gui_.
Referenced by replay_controller::add_replay_theme(), gui2::dialogs::lua_interpreter::display(), play_controller::hotkey_handler::get_display(), 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 130 of file play_controller.hpp.
References game_state::end_level_data_, and gamestate().
Referenced by playsingle_controller::describe_result(), playsingle_controller::do_end_level(), playmp_controller::maybe_linger(), playsingle_controller::play_scenario(), playsingle_controller::play_some(), campaign_controller::playmp_scenario(), campaign_controller::playsingle_scenario(), and playsingle_controller::update_gui_linger().
|
overridevirtual |
Optionally get a command executor to handle context menu events.
Reimplemented from controller_base.
Definition at line 1078 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 256 of file play_controller.hpp.
References level_.
|
inline |
Definition at line 155 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::map().
Referenced by events::mouse_handler::current_unit_attacks_from(), playsingle_controller::init_gui(), events::mouse_handler::mouse_button_event(), 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(), and events::mouse_handler::touch_motion().
|
inline |
Definition at line 221 of file play_controller.hpp.
References menu_handler_.
Referenced by wb::recruit::execute().
|
overridevirtual |
Get a reference to a mouse handler member a derived class uses.
Implements controller_base.
Definition at line 772 of file play_controller.cpp.
References mouse_handler_.
Referenced by wb::manager::create_temp_move(), events::console_handler::do_create(), events::console_handler::do_layers(), events::console_handler::do_terrain(), wb::attack::execute(), wb::move::execute(), game_lua_kernel::impl_theme_item(), 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 782 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 1073 of file play_controller.cpp.
References plugins_context_.
replay & play_controller::get_replay | ( | ) |
Definition at line 856 of file play_controller.cpp.
References replay_.
Referenced by game_lua_kernel::intf_log_replay().
|
inlinevirtual |
Reimplemented in playsingle_controller.
Definition at line 241 of file play_controller.hpp.
Referenced by is_replay().
|
inline |
Definition at line 306 of file play_controller.hpp.
References saved_game_.
Referenced by playsingle_controller::play_scenario_main_loop().
|
inline |
Definition at line 246 of file play_controller.hpp.
References level_.
Referenced by init(), playsingle_controller::play_scenario(), and show_objectives().
|
inline |
Definition at line 226 of file play_controller.hpp.
References gamestate(), and game_state::server_request_number_.
Referenced by synced_context::server_choice::request_id().
|
overridevirtual |
Get (optionally) a soundsources manager a derived class uses.
Reimplemented from controller_base.
Definition at line 1068 of file play_controller.cpp.
References soundsources_manager_.
|
inline |
Definition at line 135 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::teams().
Referenced by all_players(), playsingle_controller::check_objectives(), events::mouse_handler::current_team(), current_team(), quit_confirmation::default_prompt(), playsingle_controller::do_end_level(), playsingle_controller::find_viewing_side(), fire_start(), events::mouse_handler::get_adj_enemies(), events::menu_handler::has_friends(), playmp_controller::maybe_linger(), playsingle_controller::play_scenario_init(), playsingle_controller::play_scenario_main_loop(), playsingle_controller::play_side(), playsingle_controller::play_some(), refresh_objectives(), events::mouse_handler::show_attack_options(), events::mouse_handler::show_reach_for_unit(), playsingle_controller::skip_empty_sides(), start_game(), and tab().
|
inline |
Definition at line 140 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::teams().
|
inline |
Definition at line 160 of file play_controller.hpp.
References gamestate(), and game_state::tod_manager_.
Referenced by events::mouse_handler::attack_enemy_().
|
inline |
Definition at line 235 of file play_controller.hpp.
References undo_stack().
|
inline |
Definition at line 150 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::units().
|
inline |
Definition at line 145 of file play_controller.hpp.
References game_state::board_, gamestate(), and game_board::units().
Referenced by events::mouse_handler::cycle_units(), enemies_visible(), events::mouse_handler::fill_weapon_choices(), events::mouse_handler::find_unit(), fire_prestart(), events::mouse_handler::move_action(), events::mouse_handler::move_unit_along_route(), playsingle_controller::play_side_impl(), events::mouse_handler::select_hex(), events::mouse_handler::show_attack_options(), and tab().
std::shared_ptr< wb::manager > play_controller::get_whiteboard | ( | ) | const |
Definition at line 777 of file play_controller.cpp.
References whiteboard_manager_.
Referenced by events::mouse_handler::current_unit_attacks_from(), game_lua_kernel::impl_theme_item(), events::mouse_handler::mouse_motion(), events::mouse_handler::move_action(), events::mouse_handler::move_unit_along_route(), playmp_controller::process_network_change_controller_impl(), playmp_controller::process_network_data_impl(), events::mouse_handler::save_whiteboard_attack(), events::mouse_handler::select_hex(), playmp_controller::send_actions(), 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 70 of file play_controller.hpp.
|
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 797 of file play_controller.cpp.
References gui::floating_textbox::active(), events::menu_handler::get_textbox(), and menu_handler_.
|
inline |
Definition at line 227 of file play_controller.hpp.
References gamestate(), and game_state::server_request_number_.
Referenced by synced_context::ask_server_choice().
|
private |
Definition at line 195 of file play_controller.cpp.
References _(), game_state::board_, build_terrain, gui2::dialogs::loading_screen::display(), prefs::encounter_all_content(), game_state::events_manager_, resources::filter_con, resources::game_events, resources::gameboard, resources::gamedata, game_state::gamedata_, gamestate(), gamestate_, prefs::get(), get_scenario_name(), gui_, video::headless(), init_display, init_lua, init_managers(), init_theme, init_whiteboard, game_config::images::level, 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, theme(), throw_quit_game_exception(), timer(), resources::tod_manager, game_state::tod_manager_, resources::tunnels, undo_stack(), resources::undo_stack, resources::whiteboard, and whiteboard_manager_.
Referenced by play_controller().
|
protectedvirtual |
Reimplemented in playsingle_controller.
Definition at line 395 of file play_controller.cpp.
References gui_.
Referenced by playsingle_controller::init_gui(), and start_game().
|
protected |
Definition at line 329 of file play_controller.cpp.
References gui_, LOG_NG, resources::soundsources, soundsources_manager_, and timer().
Referenced by init().
void play_controller::init_side_begin | ( | ) |
Definition at line 401 of file play_controller.cpp.
References current_side(), game_state::gamedata_, gamestate(), gui_, game_data::last_selected, mouse_handler_, map_location::null_location(), events::mouse_handler::set_side(), and update_viewing_player().
Referenced by playsingle_controller::finish_side_turn(), and playsingle_controller::play_scenario_init().
void play_controller::init_side_end | ( | ) |
Definition at line 534 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 1083 of file play_controller.cpp.
References current_team(), gamestate(), t, and game_data::TURN_PLAYING.
Referenced by 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 1321 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 1326 of file play_controller.cpp.
References game_data::GAME_ENDED, gamestate(), and game_state::in_phase().
Referenced by playsingle_controller::before_human_turn(), check_victory(), playsingle_controller::end_turn(), playmp_controller::process_network_data_impl(), playmp_controller::process_network_side_drop_impl(), hotkey::command_executor::surrender_game(), and playsingle_controller::update_gui_linger().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 292 of file play_controller.hpp.
Referenced by synced_context::ask_server_choice(), mp_sync::get_user_choice(), playsingle_controller::on_replay_end(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_init(), and wb::manager::should_clear_undo().
|
inline |
Definition at line 165 of file play_controller.hpp.
References game_state::board_, gamestate(), and display_context::is_observer().
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), playmp_controller::hotkey_handler::can_execute_command(), quit_confirmation::default_prompt(), playsingle_controller::do_end_level(), playsingle_controller::find_viewing_side(), playsingle_controller::play_scenario(), and hotkey::command_executor::surrender_game().
|
inline |
Definition at line 125 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(), playsingle_controller::finish_side_turn(), playsingle_controller::maybe_linger(), playmp_controller::maybe_linger(), playsingle_controller::on_replay_end(), playsingle_controller::play_side(), playsingle_controller::play_side_impl(), replay_controller::play_side_impl(), playsingle_controller::play_some(), playmp_controller::process_network_data(), should_return_to_play_side(), playsingle_controller::should_return_to_play_side(), playsingle_controller::show_turn_dialog(), start_game(), and synced_context::undo_blocked().
|
inline |
Definition at line 242 of file play_controller.hpp.
References get_replay_controller().
Referenced by playsingle_controller::do_end_level(), game_lua_kernel::intf_progress_achievement(), game_lua_kernel::intf_set_achievement(), game_lua_kernel::intf_set_sub_achievement(), is_skipping_actions(), maybe_do_init_side(), and playmp_controller::play_slice().
bool play_controller::is_skipping_actions | ( | ) | const |
Definition at line 1316 of file play_controller.cpp.
References current_team(), prefs::get(), team::is_ai(), is_replay(), and is_skipping_replay().
Referenced by actions::move_unit_internal(), actions::recall_unit(), and actions::recruit_unit().
|
inline |
Definition at line 211 of file play_controller.hpp.
References skip_replay_.
Referenced by do_init_side(), replay_controller::handle_generic_event(), game_lua_kernel::intf_is_skipping_messages(), game_lua_kernel::intf_play_sound(), is_skipping_actions(), actions::move_unit_internal(), playsingle_controller::play_scenario(), start_game(), SYNCED_COMMAND_HANDLER_FUNCTION(), and replay_controller::~replay_controller().
|
inline |
Definition at line 216 of file play_controller.hpp.
References skip_story_.
Referenced by game_lua_kernel::intf_is_skipping_messages(), and playsingle_controller::play_scenario().
void play_controller::load_game | ( | ) |
Definition at line 897 of file play_controller.cpp.
References savegame::save_index_class::default_saves_dir(), gui2::tip_of_the_day::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 411 of file play_controller.cpp.
References current_team(), do_init_side(), replay::init_side(), is_during_turn(), is_replay(), and resources::recorder.
Referenced by playsingle_controller::play_side().
void play_controller::maybe_throw_return_to_play_side | ( | ) | const |
Definition at line 1331 of file play_controller.cpp.
References is_during_turn(), and should_return_to_play_side().
Referenced by synced_context::run_and_throw().
|
pure virtual |
Implemented in playsingle_controller, and playmp_controller.
|
protected |
Definition at line 1093 of file play_controller.cpp.
References controller_base::play_slice(), and should_return_to_play_side().
Referenced by playsingle_controller::play_human_turn(), playmp_controller::play_human_turn(), playsingle_controller::play_idle_loop(), playmp_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 802 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 817 of file play_controller.cpp.
References whiteboard_manager_.
|
overrideprotectedvirtual |
Process keyup (always).
Reimplemented from controller_base.
Definition at line 824 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(), 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 1012 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 1063 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(), game_lua_kernel::intf_allow_undo(), game_lua_kernel::intf_cancel_action(), game_lua_kernel::intf_fire_event(), game_lua_kernel::intf_put_unit(), events::mouse_handler::select_hex(), and SYNCED_COMMAND_HANDLER_FUNCTION().
|
inlinevirtual |
Reads and executes replay [command]s from the server.
Reimplemented in playmp_controller.
Definition at line 290 of file play_controller.hpp.
Referenced by synced_context::pull_remote_user_input().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 294 of file play_controller.hpp.
|
inline |
Definition at line 244 of file play_controller.hpp.
References replay_.
Referenced by playmp_controller::after_human_turn(), playmp_controller::process_network_data(), playmp_controller::process_network_data_impl(), playmp_controller::process_network_turn_impl(), playmp_controller::send_actions(), and playmp_controller::surrender().
void play_controller::redo | ( | ) |
Definition at line 909 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), mouse_handler_, actions::undo_list::redo(), and undo_stack().
void play_controller::refresh_objectives | ( | ) | const |
Reevaluate [show_if] conditions and build a new objectives string.
Definition at line 364 of file play_controller.cpp.
References gamestate(), get_teams(), gui_, and game_state::lua_kernel_.
Referenced by fire_start(), and events::menu_handler::objectives().
|
inline |
Definition at line 120 of file play_controller.hpp.
References game_state::end_level_data_, and gamestate().
|
protected |
Definition at line 287 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_, game_config::images::level, 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, undo_stack(), and resources::undo_stack.
Referenced by playsingle_controller::play_scenario_main_loop().
bool play_controller::reveal_map_default | ( | ) | const |
Definition at line 1031 of file play_controller.cpp.
References saved_game::classification(), game_classification::get_tagname(), and saved_game_.
Referenced by check_time_over(), and check_victory().
void play_controller::save_game | ( | ) |
Definition at line 862 of file play_controller.cpp.
References gamestate(), prefs::get(), savegame::savegame::OK_CANCEL, savegame::savegame::save_game_interactive(), and saved_game_.
void play_controller::save_game_auto | ( | const std::string & | filename | ) |
Definition at line 873 of file play_controller.cpp.
References filename, prefs::get(), savegame::savegame::save_game_automatic(), and saved_game_.
Referenced by init().
void play_controller::save_map | ( | ) |
Definition at line 892 of file play_controller.cpp.
References menu_handler_, and events::menu_handler::save_map().
void play_controller::save_replay | ( | ) |
Definition at line 880 of file play_controller.cpp.
References prefs::get(), savegame::savegame::OK_CANCEL, savegame::savegame::save_game_interactive(), and saved_game_.
void play_controller::save_replay_auto | ( | const std::string & | filename | ) |
Definition at line 886 of file play_controller.cpp.
References filename, prefs::get(), savegame::savegame::save_game_automatic(), and saved_game_.
Referenced by init().
|
protected |
Definition at line 925 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 |
Sends replay [command]s to the server.
Reimplemented in playmp_controller.
Definition at line 288 of file play_controller.hpp.
Referenced by synced_context::block_undo(), and synced_context::send_user_choice().
|
inlinevirtual |
Reimplemented in playmp_controller.
Definition at line 293 of file play_controller.hpp.
Referenced by playsingle_controller::do_end_level(), wb::manager::send_network_data(), synced_context::server_choice::send_request(), and tod_manager::update_server_information().
|
inline |
Definition at line 175 of file play_controller.hpp.
References do_healing(), game_state::do_healing_, and gamestate().
Referenced by do_init_side().
|
inline |
Definition at line 115 of file play_controller.hpp.
References data, game_state::end_level_data_, and gamestate().
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 266 of file play_controller.hpp.
References is_regular_game_end().
Referenced by maybe_throw_return_to_play_side(), and play_slice_catch().
void play_controller::show_objectives | ( | ) | const |
Definition at line 1298 of file play_controller.cpp.
References _(), gamestate_, get_scenario_name(), gui_, utils::interpolate_variables_into_string(), gui2::show_transient_message(), and t.
Referenced by playsingle_controller::check_objectives(), and events::menu_handler::objectives().
|
protected |
Definition at line 1106 of file play_controller.cpp.
References replay::add_start_if_not_there_yet(), synced_context::block_undo(), check_next_scenario_is_known(), actions::clear_shroud(), did_autosave_this_turn_, 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, 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().
|
inline |
Definition at line 308 of file play_controller.hpp.
References statistics_context_.
Referenced by advance_unit(), do_init_side(), actions::recall_unit(), actions::recruit_unit(), events::menu_handler::show_statistics(), actions::undo::recall_action::undo(), and actions::undo::recruit_action::undo().
|
inlineprotectedvirtual |
Reimplemented in playsingle_controller.
Definition at line 413 of file play_controller.hpp.
|
protected |
Definition at line 695 of file play_controller.cpp.
References ERR_DP, prefs::get(), prefs::get_acquaintances_nice(), events::menu_handler::get_commands_list(), get_teams(), events::menu_handler::get_textbox(), get_units(), gui_, 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 655 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 261 of file play_controller.hpp.
References gamestate_.
Referenced by replay_controller::add_replay_theme(), and init().
|
inline |
Definition at line 278 of file play_controller.hpp.
References timer_.
Referenced by init(), game_state::init(), playsingle_controller::init_gui(), init_managers(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario_main_loop(), and campaign_controller::playsingle_scenario().
config play_controller::to_config | ( | ) | const |
Builds the snapshot config from members and their respective configs.
Definition at line 544 of file play_controller.cpp.
References _(), config::add_child(), gamestate(), replay_recorder_base::get_pos(), saved_game::get_replay(), gui_, level_, saved_game_, gui2::show_error_message(), 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 1307 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 197 of file play_controller.hpp.
References gamestate(), game_state::tod_manager_, and tod_manager::turn().
Referenced by wfl::gamestate::DEFINE_WFL_FUNCTION(), do_init_side(), play_controller::hotkey_handler::expand_autosaves(), play_controller::hotkey_handler::expand_quickreplay(), finish_side_turn_events(), finish_turn(), fire_preload(), fire_prestart(), fire_start(), foreach_autosave(), playmp_controller::play_network_turn(), playsingle_controller::playsingle_controller(), and playmp_controller::process_network_data_impl().
void play_controller::undo | ( | ) |
Definition at line 903 of file play_controller.cpp.
References events::mouse_handler::deselect_hex(), mouse_handler_, actions::undo_list::undo(), and undo_stack().
|
inlineprotected |
Definition at line 369 of file play_controller.hpp.
References gamestate(), and game_state::undo_stack_.
Referenced by can_redo(), can_undo(), do_init_side(), get_undo_stack(), init(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), redo(), reset_gamestate(), playmp_controller::send_actions(), playmp_controller::surrender(), and undo().
|
inlineprotected |
Definition at line 370 of file play_controller.hpp.
References gamestate(), and game_state::undo_stack_.
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 1036 of file play_controller.cpp.
References gui_.
Referenced by playsingle_controller::update_gui_linger(), replay_controller::update_viewing_player(), and playsingle_controller::update_viewing_player().
void play_controller::update_savegame_snapshot | ( | ) | const |
Definition at line 1057 of file play_controller.cpp.
References saved_game_, saved_game::set_snapshot(), and to_config().
Referenced by campaign_controller::playmp_scenario(), and play_controller::scoped_savegame_snapshot::scoped_savegame_snapshot().
|
protectedpure virtual |
Implemented in playsingle_controller.
Referenced by init_side_begin().
|
friend |
Definition at line 313 of file play_controller.hpp.
|
private |
Definition at line 400 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 379 of file play_controller.hpp.
Referenced by playsingle_controller::before_human_turn(), playsingle_controller::finish_side_turn(), and start_game().
|
protected |
Definition at line 380 of file play_controller.hpp.
Referenced by playsingle_controller::finish_side_turn(), and init_side_end().
|
protected |
Definition at line 343 of file play_controller.hpp.
Referenced by current_side(), do_init_side(), playsingle_controller::finish_side_turn(), gamestate(), init(), playsingle_controller::play_scenario_init(), reset_gamestate(), select_music(), show_objectives(), playsingle_controller::sync_end_turn(), and theme().
|
protected |
Definition at line 366 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(), playsingle_controller::do_idle_notification(), playmp_controller::do_idle_notification(), do_init_side(), enemies_visible(), playsingle_controller::finish_side_turn(), get_display(), init(), init_gui(), playsingle_controller::init_gui(), init_managers(), init_side_begin(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario_init(), 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 358 of file play_controller.hpp.
|
protected |
Definition at line 361 of file play_controller.hpp.
Referenced by get_hotkey_command_executor(), and playsingle_controller::playsingle_controller().
|
mutableprotected |
Definition at line 405 of file play_controller.hpp.
Referenced by playmp_controller::process_oos(), and process_oos().
|
protected |
Definition at line 357 of file play_controller.hpp.
|
protected |
Definition at line 344 of file play_controller.hpp.
Referenced by get_disallow_recall(), get_loaded_resources(), get_scenario_name(), play_controller(), and to_config().
|
protected |
Definition at line 382 of file play_controller.hpp.
Referenced by init(), and playsingle_controller::init_gui().
|
protected |
Definition at line 360 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(), play_controller::hotkey_handler::speak(), play_controller::hotkey_handler::status_table(), tab(), play_controller::hotkey_handler::terrain_description(), textbox_move_vertically(), 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 359 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(), play_controller::hotkey_handler::do_execute_command(), playsingle_controller::hotkey_handler::end_unit_turn(), enter_textbox(), playsingle_controller::execute_gotos(), play_controller::hotkey_handler::expand_wml_commands(), finish_side_turn_events(), 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(), playsingle_controller::hotkey_handler::select_teleport(), play_controller::hotkey_handler::terrain_description(), play_controller::hotkey_handler::touch_hex(), undo(), and playsingle_controller::hotkey_handler::unit_hold_position().
|
protected |
Definition at line 363 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 412 of file play_controller.hpp.
Referenced by playsingle_controller::get_player_type_changed(), playsingle_controller::linger(), playsingle_controller::play_ai_turn(), playmp_controller::play_human_turn(), playsingle_controller::play_side(), playsingle_controller::play_side_impl(), playmp_controller::process_network_change_controller_impl(), playmp_controller::process_network_data(), playmp_controller::process_network_side_drop_impl(), playsingle_controller::set_player_type_changed(), and playsingle_controller::should_return_to_play_side().
|
protected |
Definition at line 354 of file play_controller.hpp.
Referenced by get_plugins_context(), init(), and playsingle_controller::playsingle_controller().
|
protected |
Definition at line 371 of file play_controller.hpp.
Referenced by get_replay(), play_controller(), and recorder().
|
protected |
Definition at line 345 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(), play_controller::hotkey_handler::expand_autosaves(), play_controller::hotkey_handler::expand_quickreplay(), get_classification(), get_mp_settings(), get_saved_game(), init(), playsingle_controller::linger(), load_game(), play_controller(), playmp_controller::play_human_turn(), playsingle_controller::play_scenario(), playsingle_controller::play_scenario_init(), playsingle_controller::playsingle_controller(), playmp_controller::process_oos(), process_oos(), reset_gamestate(), reveal_map_default(), save_game(), save_game_auto(), save_replay(), save_replay_auto(), start_game(), to_config(), and update_savegame_snapshot().
|
private |
Definition at line 402 of file play_controller.hpp.
|
protected |
Definition at line 373 of file play_controller.hpp.
Referenced by is_skipping_replay(), playmp_controller::play_network_turn(), and toggle_skipping_replay().
|
protected |
Definition at line 374 of file play_controller.hpp.
Referenced by fire_start(), and is_skipping_story().
|
protected |
Definition at line 362 of file play_controller.hpp.
Referenced by get_soundsource_man(), init_managers(), playsingle_controller::play_scenario_init(), and to_config().
|
protected |
Definition at line 384 of file play_controller.hpp.
Referenced by init().
|
protected |
Definition at line 368 of file play_controller.hpp.
Referenced by statistics().
|
private |
Definition at line 339 of file play_controller.hpp.
Referenced by timer().
|
protected |
Definition at line 348 of file play_controller.hpp.
|
private |
Definition at line 399 of file play_controller.hpp.
|
protected |
Definition at line 351 of file play_controller.hpp.
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), playsingle_controller::finish_side_turn(), playsingle_controller::hotkey_handler::get_action_state(), get_whiteboard(), init(), init_side_end(), 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 367 of file play_controller.hpp.