aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/Ideology.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-11-22 23:11:42 +0100
committer GitHub <noreply@github.com>2023-11-22 23:11:42 +0100
commita54898b7770e0d66b729216173960686c67e58bb (patch)
treeaf8ed836a4789ef94c5bfed27abb713922f45af3 /src/openvic-simulation/politics/Ideology.hpp
parente76336cd92639f4ec71088fc4c80aea4c25528cd (diff)
parent738a203e0d8b4df87c42888043b99c13d5d97511 (diff)
Merge pull request #78 from OpenVicProject/property-macro
Refactoring (*mostly* related to the property macro)
Diffstat (limited to 'src/openvic-simulation/politics/Ideology.hpp')
-rw-r--r--src/openvic-simulation/politics/Ideology.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/openvic-simulation/politics/Ideology.hpp b/src/openvic-simulation/politics/Ideology.hpp
index bdf9f91..47ae45b 100644
--- a/src/openvic-simulation/politics/Ideology.hpp
+++ b/src/openvic-simulation/politics/Ideology.hpp
@@ -19,9 +19,10 @@ namespace OpenVic {
friend struct IdeologyManager;
private:
- IdeologyGroup const& group;
- const bool uncivilised, can_reduce_militancy;
- const Date spawn_date;
+ IdeologyGroup const& PROPERTY(group);
+ const bool PROPERTY_CUSTOM_NAME(uncivilised, is_uncivilised);
+ const bool PROPERTY(can_reduce_militancy);
+ const Date PROPERTY(spawn_date);
// TODO - willingness to repeal/pass reforms (and its modifiers)
@@ -32,11 +33,6 @@ namespace OpenVic {
public:
Ideology(Ideology&&) = default;
-
- IdeologyGroup const& get_group() const;
- bool is_uncivilised() const;
- bool get_can_reduce_militancy() const;
- Date get_spawn_date() const;
};
struct IdeologyManager {