The Battle for Wesnoth  1.15.1+dev
Classes | Macros | Functions | Variables
teambuilder.cpp File Reference
#include "teambuilder.hpp"
#include "actions/create.hpp"
#include "config.hpp"
#include "game_board.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "units/map.hpp"
#include "resources.hpp"
#include "gettext.hpp"
#include "game_errors.hpp"
#include "serialization/string_utils.hpp"
#include <deque>
#include <vector>
Include dependency graph for teambuilder.cpp:

Go to the source code of this file.

Classes

class  team_builder
 

Macros

#define ERR_NG_TC   LOG_STREAM(err, log_engine_tc)
 
#define WRN_NG_TC   LOG_STREAM(warn, log_engine_tc)
 
#define LOG_NG_TC   LOG_STREAM(info, log_engine_tc)
 
#define DBG_NG_TC   LOG_STREAM(debug, log_engine_tc)
 

Functions

team_builder_ptr create_team_builder (const config &side_cfg, std::vector< team > &teams, const config &level, game_board &board, int num)
 
void build_team_stage_one (team_builder_ptr tb_ptr)
 
void build_team_stage_two (team_builder_ptr tb_ptr)
 

Variables

static lg::log_domain log_engine_tc ("engine/team_construction")
 

Macro Definition Documentation

◆ DBG_NG_TC

#define DBG_NG_TC   LOG_STREAM(debug, log_engine_tc)

◆ ERR_NG_TC

#define ERR_NG_TC   LOG_STREAM(err, log_engine_tc)

Definition at line 33 of file teambuilder.cpp.

Referenced by team_builder::init(), and team_builder::place_units().

◆ LOG_NG_TC

#define LOG_NG_TC   LOG_STREAM(info, log_engine_tc)

Definition at line 35 of file teambuilder.cpp.

Referenced by team_builder::log_step().

◆ WRN_NG_TC

#define WRN_NG_TC   LOG_STREAM(warn, log_engine_tc)

Definition at line 34 of file teambuilder.cpp.

Referenced by team_builder::handle_unit().

Function Documentation

◆ build_team_stage_one()

void build_team_stage_one ( team_builder_ptr  tb_ptr)

Definition at line 304 of file teambuilder.cpp.

Referenced by game_state::init().

◆ build_team_stage_two()

void build_team_stage_two ( team_builder_ptr  tb_ptr)

Definition at line 309 of file teambuilder.cpp.

Referenced by game_state::init().

◆ create_team_builder()

team_builder_ptr create_team_builder ( const config side_cfg,
std::vector< team > &  teams,
const config level,
game_board board,
int  num 
)

Definition at line 297 of file teambuilder.cpp.

References team_builder::team_builder().

Referenced by game_state::init().

Variable Documentation

◆ log_engine_tc

lg::log_domain log_engine_tc("engine/team_construction")
static