aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/Government.hpp
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-11-22 17:16:34 +0100
committer zaaarf <zaaarf@proton.me>2023-11-22 17:16:34 +0100
commit1683859e333f98fb63f1c72d926bb366a3b89f0b (patch)
treee11dde918a7f1f228d3383ba8f9287385e43b4f5 /src/openvic-simulation/politics/Government.hpp
parent5c6caf6fbb7c606f4ebe0c397cc15c97d776f13d (diff)
chore: use PROPERTY and its variants when possible
Diffstat (limited to 'src/openvic-simulation/politics/Government.hpp')
-rw-r--r--src/openvic-simulation/politics/Government.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/openvic-simulation/politics/Government.hpp b/src/openvic-simulation/politics/Government.hpp
index 9fff111..fde7d32 100644
--- a/src/openvic-simulation/politics/Government.hpp
+++ b/src/openvic-simulation/politics/Government.hpp
@@ -9,10 +9,11 @@ namespace OpenVic {
friend struct GovernmentTypeManager;
private:
- const std::vector<Ideology const*> ideologies;
- const bool elections, appoint_ruling_party;
- const Timespan term_duration;
- const std::string flag_type_identifier;
+ const std::vector<Ideology const*> PROPERTY(ideologies);
+ const bool PROPERTY_CUSTOM_NAME(elections, holds_elections);
+ const bool PROPERTY_CUSTOM_NAME(appoint_ruling_party, can_appoint_ruling_party);
+ const Timespan PROPERTY(term_duration);
+ const std::string PROPERTY_CUSTOM_NAME(flag_type_identifier, get_flag_type);
GovernmentType(
std::string_view new_identifier, std::vector<Ideology const*>&& new_ideologies, bool new_elections,
@@ -23,11 +24,6 @@ namespace OpenVic {
GovernmentType(GovernmentType&&) = default;
bool is_ideology_compatible(Ideology const* ideology) const;
- std::vector<Ideology const*> const& get_ideologies() const;
- bool holds_elections() const;
- bool can_appoint_ruling_party() const;
- Timespan get_term_duration() const;
- std::string_view get_flag_type() const;
};
struct GovernmentTypeManager {