The Battle for Wesnoth  1.15.12+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 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 30 of file mp_game_utils.cpp.

◆ ERR_NG

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 25 of file mp_game_utils.cpp.

◆ ERR_NW

#define ERR_NW   LOG_STREAM(err, log_network)

Definition at line 34 of file mp_game_utils.cpp.

◆ LOG_CF

#define LOG_CF   LOG_STREAM(info, log_config)

Definition at line 28 of file mp_game_utils.cpp.

◆ LOG_NG

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 24 of file mp_game_utils.cpp.

◆ LOG_NW

#define LOG_NW   LOG_STREAM(info, log_network)

Definition at line 33 of file mp_game_utils.cpp.

◆ WRN_CF

#define WRN_CF   LOG_STREAM(warn, log_config)

Definition at line 29 of file mp_game_utils.cpp.

Referenced by mp::initial_level_config().

Variable Documentation

◆ log_config

lg::log_domain log_config("config")
static

◆ log_engine

lg::log_domain log_engine("engine")
static

◆ log_network

lg::log_domain log_network("network")
static