#include <unit.hpp>
Definition at line 157 of file unit.hpp.
◆ add_unit()
void UnitManager::add_unit |
( |
Unit |
unit, |
|
|
ProvinceId |
unit_current_province |
|
) |
| |
- Todo:
- Obtain the cached ID of the newly added unit
Definition at line 121 of file unit.cpp.
◆ get_province_units()
std::vector<UnitId> UnitManager::get_province_units |
( |
ProvinceId |
province_id | ) |
const |
|
inline |
◆ get_unit_current_province()
◆ init()
void UnitManager::init |
( |
World & |
world | ) |
|
Fill in the relationship vectors for each nation.
Definition at line 117 of file unit.cpp.
◆ move_unit()
◆ remove_unit()
void UnitManager::remove_unit |
( |
UnitId |
unit | ) |
|
◆ province_units
std::vector<std::vector<UnitId> > UnitManager::province_units |
◆ unit_province
std::vector<ProvinceId> UnitManager::unit_province |
◆ units
The documentation for this class was generated from the following files: