aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/Rule.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-20 14:02:17 +0200
committer hop311 <hop3114@gmail.com>2024-09-20 14:06:40 +0200
commit3703851ced696a2d4559c3e3340c537982d5ebc7 (patch)
tree0f103095b45de46688206d0e33e24f0331afbabd /src/openvic-simulation/politics/Rule.hpp
parent7c312e21c6ac3a28fe5f7963ffe12b409cce643c (diff)
Add ModifierSum and improve ModifierValue and RuleSet
Diffstat (limited to 'src/openvic-simulation/politics/Rule.hpp')
-rw-r--r--src/openvic-simulation/politics/Rule.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvic-simulation/politics/Rule.hpp b/src/openvic-simulation/politics/Rule.hpp
index 579299b..0bbac82 100644
--- a/src/openvic-simulation/politics/Rule.hpp
+++ b/src/openvic-simulation/politics/Rule.hpp
@@ -65,12 +65,12 @@ namespace OpenVic {
void clear();
bool empty() const;
- rule_map_t const& get_rule_group(Rule::rule_group_t group, bool* successful = nullptr) const;
- bool get_rule(Rule const* rule, bool* successful = nullptr) const;
- bool has_rule(Rule const* rule) const;
+ rule_map_t const& get_rule_group(Rule::rule_group_t group, bool* rule_group_found = nullptr) const;
+ bool get_rule(Rule const& rule, bool* rule_found = nullptr) const;
+ bool has_rule(Rule const& rule) const;
/* Sets the rule to the specified value. Returns false if there was an existing rule, regardless of its value. */
- bool set_rule(Rule const* rule, bool value);
+ bool set_rule(Rule const& rule, bool value);
RuleSet& operator|=(RuleSet const& right);
RuleSet operator|(RuleSet const& right) const;