The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 "formula/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)
 
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

#define DBG_NG_TC   LOG_STREAM(debug, log_engine_tc)
#define ERR_NG_TC   LOG_STREAM(err, log_engine_tc)

Definition at line 33 of file teambuilder.cpp.

#define LOG_NG_TC   LOG_STREAM(info, log_engine_tc)

Definition at line 35 of file teambuilder.cpp.

Referenced by team_builder::log_step().

#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

void build_team_stage_one ( team_builder_ptr  tb_ptr)

Definition at line 310 of file teambuilder.cpp.

Referenced by game_state::init().

void build_team_stage_two ( team_builder_ptr  tb_ptr)

Definition at line 315 of file teambuilder.cpp.

Referenced by game_state::init().

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

Definition at line 303 of file teambuilder.cpp.

Referenced by game_state::init().

Variable Documentation

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