The Battle for Wesnoth  1.19.5+dev
Namespaces | Macros | Functions | Variables
multiplayer.cpp File Reference
#include "game_initialization/multiplayer.hpp"
#include "build_info.hpp"
#include "commandline_options.hpp"
#include "connect_engine.hpp"
#include "events.hpp"
#include "formula/string_utils.hpp"
#include "game_config_manager.hpp"
#include "game_initialization/playcampaign.hpp"
#include "gettext.hpp"
#include "gui/dialogs/loading_screen.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/dialogs/multiplayer/lobby.hpp"
#include "gui/dialogs/multiplayer/mp_create_game.hpp"
#include "gui/dialogs/multiplayer/mp_join_game.hpp"
#include "gui/dialogs/multiplayer/mp_login.hpp"
#include "gui/dialogs/multiplayer/mp_staging.hpp"
#include "log.hpp"
#include "map_settings.hpp"
#include "multiplayer_error_codes.hpp"
#include "preferences/preferences.hpp"
#include "replay.hpp"
#include "resources.hpp"
#include "saved_game.hpp"
#include "sound.hpp"
#include "utils/parse_network_address.hpp"
#include "wesnothd_connection.hpp"
#include <functional>
#include "utils/optional_fwd.hpp"
#include <thread>
Include dependency graph for multiplayer.cpp:

Go to the source code of this file.

Namespaces

 mp
 Main entry points of multiplayer mode.
 

Macros

#define DBG_MP   LOG_STREAM(debug, log_mp)
 
#define LOG_MP   LOG_STREAM(info, log_mp)
 
#define WRN_MP   LOG_STREAM(warn, log_mp)
 
#define ERR_MP   LOG_STREAM(err, log_mp)
 

Functions

void mp::start_client (const std::string &host)
 Pubic entry points for the MP workflow. More...
 
void mp::start_local_game ()
 Starts a multiplayer game in single-user mode. More...
 
void mp::start_local_game_commandline (const commandline_options &cmdline_opts)
 Starts a multiplayer game in single-user mode using command line settings. More...
 
bool mp::goto_mp_staging (ng::connect_engine &engine)
 Opens the MP Staging screen and sets the game state according to the changes made. More...
 
bool mp::goto_mp_wait (bool observe)
 Opens the MP Join Game screen and sets the game state according to the changes made. More...
 
bool mp::logged_in_as_moderator ()
 Gets whether the currently logged-in user is a moderator. More...
 
std::string mp::get_profile_link (int user_id)
 Gets the forum profile link for the given user. More...
 
void mp::send_to_server (const config &data)
 Attempts to send given data to server if a connection is open. More...
 
lobby_info * mp::get_lobby_info ()
 Returns the lobby_info object for the given session. More...
 

Variables

static lg::log_domain log_mp ("mp/main")
 

Macro Definition Documentation

◆ DBG_MP

#define DBG_MP   LOG_STREAM(debug, log_mp)

Definition at line 49 of file multiplayer.cpp.

◆ ERR_MP

#define ERR_MP   LOG_STREAM(err, log_mp)

Definition at line 52 of file multiplayer.cpp.

◆ LOG_MP

#define LOG_MP   LOG_STREAM(info, log_mp)

Definition at line 50 of file multiplayer.cpp.

◆ WRN_MP

#define WRN_MP   LOG_STREAM(warn, log_mp)

Definition at line 51 of file multiplayer.cpp.

Variable Documentation

◆ log_mp

lg::log_domain log_mp("mp/main") ( "mp/main )
static