#include <playmp_controller.hpp>
Classes | |
class | hotkey_handler |
Public Member Functions | |
playmp_controller (const config &level, saved_game &state_of_game, mp_game_metadata *mp_info) | |
virtual | ~playmp_controller () |
void | maybe_linger () override |
void | process_oos (const std::string &err_msg) const override |
Asks the user whether to continue on an OOS error. More... | |
void | receive_actions () override |
Reads and executes replay [command]s from the server. More... | |
void | send_actions () override |
Sends replay [command]s to the server. More... | |
void | surrender (int side_number) |
bool | is_networked_mp () const override |
void | send_to_wesnothd (const config &cfg, const std::string &packet_type="unknown") const override |
bool | receive_from_wesnothd (config &cfg) const override |
void | play_slice () override |
Public Member Functions inherited from playsingle_controller | |
playsingle_controller (const config &level, saved_game &state_of_game) | |
~playsingle_controller () | |
Defined here to reduce file includes. More... | |
level_result::type | play_scenario (const config &level) |
void | play_scenario_init (const config &level) |
ses_result | skip_empty_sides (int side_num) |
Calculates the current side, starting at side_num that is non-empty. More... | |
void | play_some () |
void | play_side () |
void | finish_side_turn () |
void | do_end_level () |
void | play_scenario_main_loop () |
virtual void | check_objectives () override |
void | end_turn () |
void | force_end_turn () override |
void | require_end_turn () |
std::string | describe_result () const |
bool | get_player_type_changed () const |
void | set_player_type_changed () |
virtual bool | should_return_to_play_side () const override |
replay_controller * | get_replay_controller () const override |
void | enable_replay (bool is_unit_test=false) |
void | on_replay_end (bool is_unit_test) |
Public Member Functions inherited from play_controller | |
play_controller (const config &level, saved_game &state_of_game) | |
virtual | ~play_controller () |
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 () |
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 |
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 |
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... | |
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 |
Public Member Functions inherited from controller_base | |
controller_base () | |
virtual | ~controller_base () |
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 | |
virtual void | handle_generic_event (const std::string &name) override |
void | start_network () |
void | stop_network () |
virtual void | play_human_turn () override |
virtual void | after_human_turn () override |
virtual void | play_network_turn () override |
Will handle networked turns in descendent classes. More... | |
virtual void | do_idle_notification () override |
Will handle sending a networked notification in descendent classes. More... | |
virtual void | play_idle_loop () override |
void | wait_for_upload () |
Wait for the host to upload the next scenario. More... | |
virtual void | on_not_observer () override |
virtual bool | is_host () const override |
void | remove_blindfold () |
Protected Member Functions inherited from playsingle_controller | |
void | play_side_impl () |
void | before_human_turn () |
void | show_turn_dialog () |
void | execute_gotos () |
void | end_turn_enable (bool enable) |
void | play_ai_turn () |
virtual void | init_gui () override |
void | linger () |
void | update_gui_linger () |
void | sync_end_turn () override |
bool | is_team_visible (int team_num, bool observer) const |
int | find_viewing_side () const override |
returns 0 if no such team was found. More... | |
void | update_viewing_player () override |
void | reset_replay () |
Protected Member Functions inherited from play_controller | |
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 () |
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 | check_time_over () |
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 () |
Protected Attributes | |
bool | network_processing_stopped_ |
bool | next_scenario_notified_ |
blindfold | blindfold_ |
Protected Attributes inherited from playsingle_controller | |
const cursor::setter | cursor_setter_ |
bool | end_turn_requested_ |
true iff the user has pressed the end turn button this turn. More... | |
bool | ai_fallback_ |
true when the current side is actually an ai side but was taken over by a human (usually for debugging purposes), we need this variable to remember to give the ai control back next turn. More... | |
std::unique_ptr< replay_controller > | replay_controller_ |
non-null when replay mode in active, is used in singleplayer and for the "back to turn" feature in multiplayer. More... | |
Protected Attributes inherited from play_controller | |
std::unique_ptr< game_state > | gamestate_ |
config | level_ |
saved_game & | saved_game_ |
tooltips::manager | tooltips_manager_ |
std::shared_ptr< wb::manager > | whiteboard_manager_ |
std::unique_ptr< plugins_context > | plugins_context_ |
std::unique_ptr< font::floating_label_context > | labels_manager_ |
help::help_manager | help_manager_ |
events::mouse_handler | mouse_handler_ |
events::menu_handler | menu_handler_ |
std::unique_ptr< hotkey_handler > | hotkey_handler_ |
std::unique_ptr< soundsource::manager > | soundsources_manager_ |
persist_manager | persist_ |
std::unique_ptr< game_display > | gui_ |
const std::unique_ptr< unit_experience_accelerator > | xp_mod_ |
const std::unique_ptr< statistics_t > | statistics_context_ |
std::unique_ptr< replay > | replay_ |
bool | skip_replay_ |
bool | skip_story_ |
bool | did_autosave_this_turn_ |
Whether we did init sides in this session (false = we did init sides before we reloaded the game). More... | |
bool | did_tod_sound_this_turn_ |
map_location | map_start_ |
bool | start_faded_ |
bool | ignore_replay_errors_ |
bool | player_type_changed_ |
true when the controller of the currently playing side has changed. More... | |
Protected Attributes inherited from controller_base | |
const game_config_view & | game_config_ |
CKey | key_ |
bool | scrolling_ |
bool | scroll_up_ |
bool | scroll_down_ |
bool | scroll_left_ |
bool | scroll_right_ |
std::chrono::steady_clock::time_point | last_scroll_tick_ |
double | scroll_carry_x_ |
double | scroll_carry_y_ |
Private Types | |
enum class | PROCESS_DATA_RESULT { CONTINUE , CANNOT_HANDLE } |
Private Member Functions | |
void | process_network_data (bool unsync_only=false) |
PROCESS_DATA_RESULT | process_network_data_impl (const config &cfg, bool chat_only=false) |
Check for and Handle incoming data from the multiplayer server. More... | |
PROCESS_DATA_RESULT | process_network_turn_impl (const config &t, bool chat_only=false) |
Handle incoming [turn] from the multiplayer server. More... | |
void | process_network_side_drop_impl (const config &t) |
Handle incoming [side_drop] from the multiplayer server. More... | |
void | process_network_change_controller_impl (const config &) |
Handle incoming [change_controller] from the multiplayer server. More... | |
void | send_change_side_controller (int side, const std::string &player) |
Send [change_controller] to the multiplayer server. More... | |
Private Attributes | |
playturn_network_adapter | network_reader_ |
Helper to preprocess infoming network data. More... | |
mp_game_metadata * | mp_info_ |
Information about our connection to the multiplayer server. More... | |
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 23 of file playmp_controller.hpp.
|
strongprivate |
Enumerator | |
---|---|
CONTINUE | |
CANNOT_HANDLE | when we couldn't handle the given action currently. |
Definition at line 66 of file playmp_controller.hpp.
playmp_controller::playmp_controller | ( | const config & | level, |
saved_game & | state_of_game, | ||
mp_game_metadata * | mp_info | ||
) |
Definition at line 50 of file playmp_controller.cpp.
References receive_from_wesnothd().
|
virtual |
Definition at line 68 of file playmp_controller.cpp.
|
overrideprotectedvirtual |
Reimplemented from playsingle_controller.
Definition at line 194 of file playmp_controller.cpp.
References team::action_bonus_count(), replay::add_countdown_update(), playsingle_controller::after_human_turn(), team::countdown_time(), play_controller::current_side(), play_controller::current_team(), LOG_NG, mp_game_settings::mp_countdown, mp_game_settings::mp_countdown_action_bonus, mp_game_settings::mp_countdown_reservoir_time, mp_game_settings::mp_countdown_turn_bonus, saved_game::mp_settings(), play_controller::recorder(), play_controller::saved_game_, team::set_action_bonus_count(), and team::set_countdown_time().
|
overrideprotectedvirtual |
Will handle sending a networked notification in descendent classes.
Reimplemented from playsingle_controller.
Definition at line 276 of file playmp_controller.cpp.
References _(), play_controller::gui_, and events::chat_handler::MESSAGE_PUBLIC.
|
overrideprotectedvirtual |
Reimplemented from playsingle_controller.
Definition at line 267 of file playmp_controller.cpp.
References playsingle_controller::handle_generic_event().
|
overrideprotectedvirtual |
Reimplemented from playsingle_controller.
Definition at line 271 of file playmp_controller.cpp.
References mp_game_metadata::is_host, and mp_info_.
Referenced by maybe_linger(), and wait_for_upload().
|
overridevirtual |
Reimplemented from play_controller.
Definition at line 336 of file playmp_controller.cpp.
References mp_info_.
Referenced by send_actions().
|
overridevirtual |
Reimplemented from playsingle_controller.
Definition at line 284 of file playmp_controller.cpp.
References playsingle_controller::end_turn_requested_, play_controller::gamestate(), play_controller::get_end_level_data(), play_controller::get_teams(), video::headless(), is_host(), play_controller::is_regular_game_end(), playsingle_controller::linger(), playsingle_controller::replay_controller_, send_actions(), and wait_for_upload().
|
overrideprotectedvirtual |
Reimplemented from playsingle_controller.
Definition at line 84 of file playmp_controller.cpp.
References remove_blindfold().
Referenced by process_network_change_controller_impl(), and process_network_side_drop_impl().
|
overrideprotectedvirtual |
Reimplemented from playsingle_controller.
Definition at line 98 of file playmp_controller.cpp.
References _(), play_controller::can_undo(), playsingle_controller::check_objectives(), actions::undo_list::clear(), events::commands_disabled, play_controller::current_team(), DBG_NG, playsingle_controller::end_turn_enable(), playsingle_controller::end_turn_requested_, playsingle_controller::execute_gotos(), play_controller::gamestate(), prefs::get(), utils::get_unknown_exception_type(), replay_helper::get_update_shroud(), play_controller::gui_, LOG_NG, mp_game_settings::mp_countdown, saved_game::mp_settings(), font::NORMAL_COLOR, play_controller::play_slice_catch(), play_controller::player_type_changed_, process_network_data(), remove_blindfold(), synced_context::run_and_store(), play_controller::saved_game_, playsingle_controller::should_return_to_play_side(), playsingle_controller::show_turn_dialog(), play_controller::timer(), mp::ui_alerts::turn_changed(), game_data::TURN_PLAYING, actions::undo_list::undo(), and play_controller::undo_stack().
|
overrideprotectedvirtual |
Reimplemented from playsingle_controller.
Definition at line 160 of file playmp_controller.cpp.
References DBG_NG, utils::get_unknown_exception_type(), LOG_NG, play_controller::play_slice_catch(), process_network_data(), remove_blindfold(), and playsingle_controller::should_return_to_play_side().
|
overrideprotectedvirtual |
Will handle networked turns in descendent classes.
Reimplemented from playsingle_controller.
Definition at line 217 of file playmp_controller.cpp.
References mp_game_metadata::current_turn, playsingle_controller::end_turn_enable(), LOG_NG, mp_info_, network_processing_stopped_, play_controller::play_slice_catch(), process_network_data(), playsingle_controller::should_return_to_play_side(), play_controller::skip_replay_, and play_controller::turn().
|
overridevirtual |
Reimplemented from controller_base.
Definition at line 322 of file playmp_controller.cpp.
References play_controller::is_replay(), network_processing_stopped_, controller_base::play_slice(), process_network_data(), and send_actions().
|
private |
Handle incoming [change_controller] from the multiplayer server.
Definition at line 629 of file playmp_controller.cpp.
References game_state::board_, config::debug(), config::empty(), ERR_NW, play_controller::gamestate(), game_display::get_singleton(), play_controller::get_whiteboard(), utf8::index(), team::is_local(), on_not_observer(), play_controller::player_type_changed_, display::playing_team(), team::side(), game_board::side_change_controller(), game_board::teams(), and playsingle_controller::update_viewing_player().
Referenced by process_network_data_impl().
|
private |
unsync_only | if false (default) this can exceute synced (gamestate changing) turn commands (recall, move, etc.) |
Definition at line 357 of file playmp_controller.cpp.
References CANNOT_HANDLE, DEPENDENT, playsingle_controller::end_turn(), ERR_NW, play_controller::gamestate(), get_replay_action_type(), game_state::in_phase(), play_controller::is_regular_game_end(), network_reader_, next_scenario_notified_, play_controller::player_type_changed_, process_network_data_impl(), playturn_network_adapter::push_front(), playturn_network_adapter::read(), play_controller::recorder(), and game_data::TURN_ENDED.
Referenced by play_human_turn(), play_idle_loop(), play_network_turn(), play_slice(), receive_actions(), and wait_for_upload().
|
private |
Check for and Handle incoming data from the multiplayer server.
Definition at line 397 of file playmp_controller.cpp.
References display_chat_manager::add_chat_message(), display_chat_manager::add_observer(), config::all_children_count(), config::attribute_range(), CONTINUE, config::debug(), playsingle_controller::end_turn_enable(), ERR_NW, prefs::get(), game_display::get_chat_manager(), game_display::get_singleton(), play_controller::get_whiteboard(), config::has_attribute(), config::has_child(), mp_game_metadata::is_host, play_controller::is_linger_mode(), config::mandatory_child(), prefs::message_bell(), events::chat_handler::MESSAGE_PRIVATE, events::chat_handler::MESSAGE_PUBLIC, mp_info_, next_scenario_notified_, game_config::images::observer, config::optional_child(), process_network_change_controller_impl(), process_network_side_drop_impl(), process_network_turn_impl(), play_controller::recorder(), display_chat_manager::remove_observer(), and play_controller::turn().
Referenced by process_network_data().
|
private |
Handle incoming [side_drop] from the multiplayer server.
Definition at line 492 of file playmp_controller.cpp.
References _(), game_state::board_, team::current_player(), play_controller::do_autosave(), ERR_NW, play_controller::gamestate(), string_enums::enum_base< Definition >::get_enum(), game_display::get_singleton(), string_enums::enum_base< Definition >::get_string(), game_state::has_next_scenario(), utf8::index(), play_controller::is_linger_mode(), on_not_observer(), play_controller::player_type_changed_, display::playing_team(), gui2::dialogs::simple_item_selector::selected_index(), send_change_side_controller(), gui2::dialogs::simple_item_selector::set_single_button(), gui2::dialogs::modal_dialog::show(), team::side(), game_board::side_drop_to(), t, game_board::teams(), throw_quit_game_exception(), and VGETTEXT.
Referenced by process_network_data_impl().
|
private |
Handle incoming [turn] from the multiplayer server.
Definition at line 470 of file playmp_controller.cpp.
References replay::add_config(), CANNOT_HANDLE, CONTINUE, play_controller::current_team(), do_replay(), ERR_NW, get_replay_action_type(), INVALID, replay::MARK_AS_SENT, play_controller::recorder(), SYNCED, and t.
Referenced by process_network_data_impl().
|
overridevirtual |
Asks the user whether to continue on an OOS error.
quit_game_exception | If the user wants to abort. |
Reimplemented from play_controller.
Definition at line 237 of file playmp_controller.cpp.
References _(), config::add_child(), i, play_controller::ignore_replay_errors_, lg::info(), savegame::savegame::save_game_interactive(), play_controller::saved_game_, send_to_wesnothd(), utils::split(), and savegame::savegame::YES_NO.
|
overridevirtual |
Reads and executes replay [command]s from the server.
Reimplemented from play_controller.
Definition at line 315 of file playmp_controller.cpp.
References process_network_data(), and send_actions().
|
overridevirtual |
Reimplemented from play_controller.
Definition at line 348 of file playmp_controller.cpp.
References mp_game_metadata::connection, mp_info_, and wesnothd_connection::receive_data().
Referenced by playmp_controller().
|
protected |
Definition at line 89 of file playmp_controller.cpp.
References blindfold_, play_controller::gui_, LOG_NG, and blindfold::unblind().
Referenced by on_not_observer(), play_human_turn(), and play_idle_loop().
|
overridevirtual |
Sends replay [command]s to the server.
Reimplemented from play_controller.
Definition at line 663 of file playmp_controller.cpp.
References replay::ALL_DATA, actions::undo_list::can_undo(), data, replay::get_unsent_commands(), play_controller::get_whiteboard(), is_networked_mp(), synced_context::is_unsynced(), replay::NON_UNDO_DATA, play_controller::recorder(), send_to_wesnothd(), synced_context::undo_blocked(), and play_controller::undo_stack().
Referenced by maybe_linger(), play_slice(), receive_actions(), surrender(), and wait_for_upload().
|
private |
Send [change_controller] to the multiplayer server.
Definition at line 680 of file playmp_controller.cpp.
References config::add_child(), and send_to_wesnothd().
Referenced by process_network_side_drop_impl().
|
overridevirtual |
Reimplemented from play_controller.
Definition at line 341 of file playmp_controller.cpp.
References mp_game_metadata::connection, mp_info_, and wesnothd_connection::send_data().
Referenced by process_oos(), send_actions(), and send_change_side_controller().
|
protected |
Definition at line 72 of file playmp_controller.cpp.
References LOG_NG, and network_processing_stopped_.
|
protected |
Definition at line 78 of file playmp_controller.cpp.
References LOG_NG, and network_processing_stopped_.
void playmp_controller::surrender | ( | int | side_number | ) |
Definition at line 308 of file playmp_controller.cpp.
References replay::add_surrender(), actions::undo_list::clear(), play_controller::recorder(), send_actions(), and play_controller::undo_stack().
Referenced by quit_confirmation::default_prompt(), and hotkey::command_executor::surrender_game().
|
protected |
Wait for the host to upload the next scenario.
Definition at line 179 of file playmp_controller.cpp.
References gui2::dialogs::loading_screen::display(), is_host(), next_scenario, next_scenario_notified_, process_network_data(), gui2::dialogs::loading_screen::progress(), send_actions(), and gui2::dialogs::loading_screen::spin().
Referenced by maybe_linger().
|
protected |
Definition at line 64 of file playmp_controller.hpp.
Referenced by remove_blindfold().
|
private |
Information about our connection to the multiplayer server.
null when we are not connected to the multiplayer server
Definition at line 96 of file playmp_controller.hpp.
Referenced by is_host(), is_networked_mp(), play_network_turn(), process_network_data_impl(), receive_from_wesnothd(), and send_to_wesnothd().
|
mutableprotected |
Definition at line 57 of file playmp_controller.hpp.
Referenced by play_network_turn(), play_slice(), start_network(), and stop_network().
|
private |
Helper to preprocess infoming network data.
Definition at line 93 of file playmp_controller.hpp.
Referenced by process_network_data().
|
protected |
Definition at line 58 of file playmp_controller.hpp.
Referenced by process_network_data(), process_network_data_impl(), and wait_for_upload().