aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/pop/Pop.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-07-23 01:29:13 +0200
committer Hop311 <hop3114@gmail.com>2023-07-23 01:29:13 +0200
commit0422f9fbb06e911a7cf6da11045b47cdda0d2d06 (patch)
treec3aa6375f636ba2ffb3f35885b19ae3db51bf12d /src/openvic/pop/Pop.cpp
parent83e61b518788d21283cda481decafee4ee2e252c (diff)
Culture data structs
Diffstat (limited to 'src/openvic/pop/Pop.cpp')
-rw-r--r--src/openvic/pop/Pop.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/openvic/pop/Pop.cpp b/src/openvic/pop/Pop.cpp
index 0a8c646..b095358 100644
--- a/src/openvic/pop/Pop.cpp
+++ b/src/openvic/pop/Pop.cpp
@@ -6,8 +6,11 @@
using namespace OpenVic;
-Pop::Pop(PopType const& new_type, Religion const& new_religion)
- : type { new_type }, religion { new_religion }, size { 1 } {
+Pop::Pop(PopType const& new_type, Culture const& new_culture, Religion const& new_religion)
+ : type { new_type },
+ culture { new_culture },
+ religion { new_religion },
+ size { 1 } {
assert(size > 0);
}
@@ -15,6 +18,10 @@ PopType const& Pop::get_type() const {
return type;
}
+Culture const& Pop::get_culture() const {
+ return culture;
+}
+
Religion const& Pop::get_religion() const {
return religion;
}
@@ -23,7 +30,8 @@ Pop::pop_size_t Pop::get_size() const {
return size;
}
-PopType::PopType(std::string const& new_identifier, colour_t new_colour, strata_t new_strata, sprite_t new_sprite,
+PopType::PopType(std::string const& new_identifier, colour_t new_colour,
+ strata_t new_strata, sprite_t new_sprite,
Pop::pop_size_t new_max_size, Pop::pop_size_t new_merge_max_size,
bool new_state_capital_only, bool new_demote_migrant, bool new_is_artisan)
: HasIdentifier { new_identifier },