The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Variables
connect_engine.cpp File Reference
#include "game_initialization/connect_engine.hpp"
#include "ai/configuration.hpp"
#include "formula/string_utils.hpp"
#include "game_initialization/mp_game_utils.hpp"
#include "game_initialization/playcampaign.hpp"
#include "preferences/credentials.hpp"
#include "preferences/game.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "mt_rng.hpp"
#include "tod_manager.hpp"
#include "wesnothd_connection.hpp"
#include <cstdlib>
#include <ctime>
Include dependency graph for connect_engine.cpp:

Go to the source code of this file.

Namespaces

 ng
 

Macros

#define LOG_CF   LOG_STREAM(info, log_config)
 
#define ERR_CF   LOG_STREAM(err, log_config)
 
#define DBG_MP   LOG_STREAM(debug, log_mp_connect_engine)
 
#define LOG_MP   LOG_STREAM(info, log_mp_connect_engine)
 
#define WRN_MP   LOG_STREAM(warn, log_mp_connect_engine)
 
#define ERR_MP   LOG_STREAM(err, log_mp_connect_engine)
 
#define LOG_NW   LOG_STREAM(info, log_network)
 

Variables

static lg::log_domain log_config ("config")
 
static lg::log_domain log_mp_connect_engine ("mp/connect/engine")
 
static lg::log_domain log_network ("network")
 
static const std::string controller_names []
 
static const std::string attributes_to_trim []
 

Macro Definition Documentation

#define DBG_MP   LOG_STREAM(debug, log_mp_connect_engine)
#define ERR_CF   LOG_STREAM(err, log_config)
#define ERR_MP   LOG_STREAM(err, log_mp_connect_engine)
#define LOG_CF   LOG_STREAM(info, log_config)

Definition at line 33 of file connect_engine.cpp.

Referenced by ng::connect_engine::process_network_data().

#define LOG_MP   LOG_STREAM(info, log_mp_connect_engine)
#define LOG_NW   LOG_STREAM(info, log_network)

Definition at line 43 of file connect_engine.cpp.

Referenced by ng::connect_engine::process_network_data().

#define WRN_MP   LOG_STREAM(warn, log_mp_connect_engine)

Definition at line 39 of file connect_engine.cpp.

Referenced by ng::side_engine::side_engine().

Variable Documentation

const std::string attributes_to_trim[]
static
Initial value:
{
"side",
"type",
"gender",
"recruit",
"player_id",
"previous_recruits",
"controller",
"current_player",
"team_name",
"user_team_name",
"color",
"gold",
"income",
"allow_changes",
"faction"
}

Definition at line 53 of file connect_engine.cpp.

Referenced by ng::side_engine::new_config().

const std::string controller_names[]
static
Initial value:
{
"human",
"human",
"ai",
"null",
"reserved"
}

Definition at line 45 of file connect_engine.cpp.

Referenced by gui2::dialogs::mp_staging::add_side_node(), gui2::dialogs::mp_staging::network_handler(), and ng::side_engine::new_config().

lg::log_domain log_config("config")
static
lg::log_domain log_mp_connect_engine("mp/connect/engine")
static
lg::log_domain log_network("network")
static