The Battle for Wesnoth  1.15.1+dev
Namespaces | Macros | Functions | Variables
game.cpp File Reference
#include "server/game.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "preferences/credentials.hpp"
#include "serialization/string_utils.hpp"
#include "server/player_network.hpp"
#include "server/server.hpp"
#include <cstdio>
#include <iomanip>
#include <sstream>
Include dependency graph for game.cpp:

Go to the source code of this file.

Namespaces

 wesnothd
 

Macros

#define ERR_GAME   LOG_STREAM(err, log_server)
 
#define WRN_GAME   LOG_STREAM(warn, log_server)
 
#define LOG_GAME   LOG_STREAM(info, log_server)
 
#define DBG_GAME   LOG_STREAM(debug, log_server)
 
#define WRN_CONFIG   LOG_STREAM(warn, log_config)
 

Functions

template<typename Container >
void wesnothd::send_to_players (simple_wml::document &data, const Container &players, socket_ptr exclude=socket_ptr())
 
static const simple_wml::nodewesnothd::get_multiplayer (const simple_wml::node &root)
 returns const so that operator [] won't create empty keys if not existent More...
 
static bool wesnothd::is_invalid_filename_char (char c)
 

Variables

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

Macro Definition Documentation

◆ DBG_GAME

#define DBG_GAME   LOG_STREAM(debug, log_server)

◆ ERR_GAME

#define ERR_GAME   LOG_STREAM(err, log_server)

◆ LOG_GAME

#define LOG_GAME   LOG_STREAM(info, log_server)

◆ WRN_CONFIG

#define WRN_CONFIG   LOG_STREAM(warn, log_config)

Definition at line 37 of file game.cpp.

Referenced by wesnothd::game::save_replay(), and wesnothd::game::send_history().

◆ WRN_GAME

#define WRN_GAME   LOG_STREAM(warn, log_server)

Definition at line 32 of file game.cpp.

Referenced by wesnothd::game::missing_user().

Variable Documentation

◆ game_

const wesnothd::game& game_

Definition at line 1682 of file game.cpp.

◆ log_config

lg::log_domain log_config("config")
static

◆ log_server

lg::log_domain log_server("server")
static

◆ sides_

const std::vector<int>& sides_

Definition at line 1683 of file game.cpp.