Project Alice
Loading...
Searching...
No Matches
modifiers.cpp File Reference
#include "modifiers.hpp"
#include "system_state.hpp"
#include "demographics.hpp"
#include "military.hpp"
#include "military_templates.hpp"
#include "province.hpp"
#include "province_templates.hpp"
#include "triggers.hpp"
#include "ve_scalar_extensions.hpp"
Include dependency graph for modifiers.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sys
 

Functions

void sys::apply_modifier_values_to_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id)
 
void sys::apply_scaled_modifier_values_to_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id, float scale)
 
void sys::apply_modifier_values_to_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id)
 
void sys::add_modifier_to_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id, sys::date expiration)
 
void sys::add_modifier_to_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id, sys::date expiration)
 
void sys::remove_modifier_from_nation (sys::state &state, dcon::nation_id target_nation, dcon::modifier_id mod_id)
 
void sys::remove_modifier_from_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id)
 
void sys::toggle_modifier_from_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id, sys::date expiration)
 
template<typename F >
void sys::bulk_apply_masked_modifier_to_nations (sys::state &state, dcon::modifier_id m, F const &mask_functor)
 
template<typename F >
void sys::bulk_apply_scaled_modifier_to_nations (sys::state &state, dcon::modifier_id m, F const &scale_functor)
 
template<typename F >
void sys::bulk_apply_masked_modifier_to_provinces (sys::state &state, dcon::modifier_id mod_id, F const &mask_functor)
 
void sys::bulk_apply_modifier_to_provinces (sys::state &state, dcon::modifier_id mod_id)
 
template<typename F >
void sys::bulk_apply_scaled_modifier_to_provinces (sys::state &state, dcon::modifier_id mod_id, F const &scale_functor)
 
void sys::recreate_national_modifiers (sys::state &state)
 
void sys::update_single_nation_modifiers (sys::state &state, dcon::nation_id n)
 
void sys::recreate_province_modifiers (sys::state &state)
 
void sys::repopulate_modifier_effects (sys::state &state)
 
void sys::update_modifier_effects (sys::state &state)