The Battle for Wesnoth  1.19.7+dev
Namespaces | Macros | Functions | Variables
mp_game_utils.cpp File Reference
#include "game_initialization/mp_game_utils.hpp"
#include "config.hpp"
#include "formula/string_utils.hpp"
#include "game_config_manager.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "saved_game.hpp"
#include "serialization/markup.hpp"
Include dependency graph for mp_game_utils.cpp:

Go to the source code of this file.

Namespaces

 mp
 Main entry points of multiplayer mode.
 

Macros

#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define ERR_NG   LOG_STREAM(err, log_engine)
 
#define LOG_CF   LOG_STREAM(info, log_config)
 
#define WRN_CF   LOG_STREAM(warn, log_config)
 
#define ERR_CF   LOG_STREAM(err, log_config)
 
#define LOG_NW   LOG_STREAM(info, log_network)
 
#define ERR_NW   LOG_STREAM(err, log_network)
 

Functions

static void mp::add_multiplayer_classification (config &multiplayer, saved_game &state)
 
config mp::initial_level_config (saved_game &state)
 
void mp::level_to_gamestate (const config &level, saved_game &state)
 

Variables

static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_config ("config")
 
static lg::log_domain log_network ("network")
 

Macro Definition Documentation

◆ ERR_CF

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 33 of file mp_game_utils.cpp.

◆ ERR_NG

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 28 of file mp_game_utils.cpp.

◆ ERR_NW

#define ERR_NW   LOG_STREAM(err, log_network)

Definition at line 37 of file mp_game_utils.cpp.

◆ LOG_CF

#define LOG_CF   LOG_STREAM(info, log_config)

Definition at line 31 of file mp_game_utils.cpp.

◆ LOG_NG

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 27 of file mp_game_utils.cpp.

◆ LOG_NW

#define LOG_NW   LOG_STREAM(info, log_network)

Definition at line 36 of file mp_game_utils.cpp.

◆ WRN_CF

#define WRN_CF   LOG_STREAM(warn, log_config)

Definition at line 32 of file mp_game_utils.cpp.

Variable Documentation

◆ log_config

lg::log_domain log_config("config") ( "config"  )
static

◆ log_engine

lg::log_domain log_engine("engine") ( "engine"  )
static

◆ log_network

lg::log_domain log_network("network") ( "network"  )
static