#include "UnitInstance.hpp" using namespace OpenVic; template UnitInstance::UnitInstance(std::string_view new_unit_name, _UnitType const& new_unit_type) : unit_name { new_unit_name }, unit_type { new_unit_type }, organisation { new_unit_type.get_default_organisation() }, morale { 0 }, strength { new_unit_type.get_max_strength() } {} template void UnitInstance::set_unit_name(std::string_view new_unit_name) { unit_name = new_unit_name; } template struct OpenVic::UnitInstance; template struct OpenVic::UnitInstance; UnitInstanceBranched::UnitInstanceBranched( std::string_view new_name, RegimentType const& new_regiment_type, Pop* new_pop, bool new_mobilised ) : UnitInstance { new_name, new_regiment_type }, pop { new_pop }, mobilised { new_mobilised } {} UnitInstanceBranched::UnitInstanceBranched( std::string_view new_name, ShipType const& new_ship_type ) : UnitInstance { new_name, new_ship_type } {}