#include "Region.hpp" #include using namespace OpenVic; size_t ProvinceSet::get_province_count() const { return provinces.size(); } bool ProvinceSet::contains_province(Province const* province) const { return province && std::find(provinces.begin(), provinces.end(), province) != provinces.end(); } std::vector const& ProvinceSet::get_provinces() const { return provinces; } Region::Region(ovstring const& new_identifier) : HasIdentifier { new_identifier } {} colour_t Region::get_colour() const { if (provinces.empty()) return FULL_COLOUR << 16; return provinces.front()->get_colour(); }