The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions | Variables
team.cpp File Reference

Team-management, allies, setup at start of scenario. More...

#include "team.hpp"
#include "ai/manager.hpp"
#include "formula/string_utils.hpp"
#include "game_events/manager.hpp"
#include "game_events/pump.hpp"
#include "game_data.hpp"
#include "map/map.hpp"
#include "resources.hpp"
#include "play_controller.hpp"
#include "game_preferences.hpp"
#include "sdl/utils.hpp"
#include "units/types.hpp"
#include "synced_context.hpp"
#include "whiteboard/side_actions.hpp"
#include "config_assign.hpp"
#include "serialization/string_utils.hpp"
Include dependency graph for team.cpp:

Go to the source code of this file.

Macros

#define DBG_NG   LOG_STREAM(debug, log_engine)
 
#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define WRN_NG   LOG_STREAM(warn, log_engine)
 
#define ERR_NG   LOG_STREAM(warn, log_engine)
 
#define DBG_NGE   LOG_STREAM(debug, log_engine_enemies)
 
#define LOG_NGE   LOG_STREAM(info, log_engine_enemies)
 
#define WRN_NGE   LOG_STREAM(warn, log_engine_enemies)
 

Functions

void validate_side (int side)
 

Variables

static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_engine_enemies ("engine/enemies")
 
static std::vector< team > *& teams = resources::teams
 

Detailed Description

Team-management, allies, setup at start of scenario.

Definition in file team.cpp.

Macro Definition Documentation

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 39 of file team.cpp.

Referenced by team::shroud_map::place().

#define DBG_NGE   LOG_STREAM(debug, log_engine_enemies)

Definition at line 45 of file team.cpp.

#define ERR_NG   LOG_STREAM(warn, log_engine)

Definition at line 42 of file team.cpp.

Referenced by team::change_controller_by_wml().

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 40 of file team.cpp.

Referenced by team::build(), team::log_recruitable(), and team::team_info::read().

#define LOG_NGE   LOG_STREAM(info, log_engine_enemies)

Definition at line 46 of file team.cpp.

Referenced by team::calculate_is_enemy().

#define WRN_NG   LOG_STREAM(warn, log_engine)

Definition at line 41 of file team.cpp.

Referenced by team::build().

#define WRN_NGE   LOG_STREAM(warn, log_engine_enemies)

Definition at line 47 of file team.cpp.

Function Documentation

void validate_side ( int  side)

Definition at line 657 of file team.cpp.

Referenced by unit::unit().

Variable Documentation

lg::log_domain log_engine("engine")
static
lg::log_domain log_engine_enemies("engine/enemies")
static
std::vector<team>*& teams = resources::teams
static