The Battle for Wesnoth  1.19.0-dev
make.cpp File Reference
#include "units/make.hpp"
#include "units/unit.hpp"
Include dependency graph for make.cpp:

Go to the source code of this file.


unit_ptr make_unit_ptr (const config &cfg, bool use_traits, const vconfig *vcfg)
unit_ptr make_unit_ptr (const unit_type &t, int side, bool real_unit, unit_race::GENDER gender)
unit_ptr make_unit_ptr (const unit &u)

Function Documentation

◆ make_unit_ptr() [1/3]

unit_ptr make_unit_ptr ( const config cfg,
bool  use_traits,
const vconfig vcfg 

Definition at line 19 of file make.cpp.

References unit::create().

◆ make_unit_ptr() [2/3]

unit_ptr make_unit_ptr ( const unit u)

Definition at line 27 of file make.cpp.

References unit::clone().

◆ make_unit_ptr() [3/3]

unit_ptr make_unit_ptr ( const unit_type t,
int  side,
bool  real_unit,
unit_race::GENDER  gender 

Definition at line 23 of file make.cpp.

References unit::create(), and t.