The Battle for Wesnoth  1.15.1+dev
Functions
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.

Functions

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 18 of file make.cpp.

References unit::create().

◆ make_unit_ptr() [2/3]

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

Definition at line 22 of file make.cpp.

References unit::create().

◆ make_unit_ptr() [3/3]

unit_ptr make_unit_ptr ( const unit u)

Definition at line 26 of file make.cpp.

References unit::clone().