diff options
author | hop311 <hop3114@gmail.com> | 2024-10-01 00:35:13 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-10-05 22:48:42 +0200 |
commit | 3713393682c16fd5d3bed3e12fef68a1559c0cc5 (patch) | |
tree | 616377125abf684d9ec5b28d293428d559543d9a /src/openvic-simulation/country/CountryInstance.hpp | |
parent | ba4fe5d9a8596e1b73a3aa0735d471e25493d54b (diff) |
Add supply_consumption and mobilization_impact modifier effect check examples
Diffstat (limited to 'src/openvic-simulation/country/CountryInstance.hpp')
-rw-r--r-- | src/openvic-simulation/country/CountryInstance.hpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/openvic-simulation/country/CountryInstance.hpp b/src/openvic-simulation/country/CountryInstance.hpp index c9b61e3..8a5d234 100644 --- a/src/openvic-simulation/country/CountryInstance.hpp +++ b/src/openvic-simulation/country/CountryInstance.hpp @@ -295,7 +295,10 @@ namespace OpenVic { void _update_population(); void _update_trade(); void _update_diplomacy(); - void _update_military(DefineManager const& define_manager, UnitTypeManager const& unit_type_manager); + void _update_military( + DefineManager const& define_manager, UnitTypeManager const& unit_type_manager, + ModifierEffectCache const& modifier_effect_cache + ); bool update_rule_set(); @@ -305,7 +308,10 @@ namespace OpenVic { fixed_point_t get_modifier_effect_value(ModifierEffect const& effect) const; fixed_point_t get_modifier_effect_value_nullcheck(ModifierEffect const* effect) const; - void update_gamestate(DefineManager const& define_manager, UnitTypeManager const& unit_type_manager); + void update_gamestate( + DefineManager const& define_manager, UnitTypeManager const& unit_type_manager, + ModifierEffectCache const& modifier_effect_cache + ); void tick(); }; @@ -351,7 +357,10 @@ namespace OpenVic { ); void update_modifier_sums(Date today, StaticModifierCache const& static_modifier_cache); - void update_gamestate(Date today, DefineManager const& define_manager, UnitTypeManager const& unit_type_manager); + void update_gamestate( + Date today, DefineManager const& define_manager, UnitTypeManager const& unit_type_manager, + ModifierEffectCache const& modifier_effect_cache + ); void tick(); }; } |