Project Alice
Loading...
Searching...
No Matches
modifiers.hpp File Reference
#include <stdint.h>
#include "date_interface.hpp"
#include "dcon_generated.hpp"
Include dependency graph for modifiers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sys::provincial_modifier_definition
 
struct  sys::national_modifier_definition
 
struct  sys::commodity_modifier
 
struct  sys::unit_variable_stats
 
struct  sys::unit_modifier
 
struct  sys::rebel_org_modifier
 
struct  sys::dated_modifier
 

Namespaces

namespace  sys
 
namespace  sys::provincial_mod_offsets
 
namespace  sys::national_mod_offsets
 

Macros

#define MOD_PROV_LIST
 
#define MOD_PROV_LIST_COUNT   51
 
#define MOD_NAT_LIST
 
#define MOD_NAT_LIST_COUNT   126
 
#define MOD_LIST_ELEMENT(num, name, green_is_negative, display_type, locale_name)    constexpr inline dcon::provincial_modifier_value name{num};
 
#define MOD_LIST_ELEMENT(num, name, green_is_negative, display_type, locale_name)    constexpr inline dcon::national_modifier_value name{num};
 

Functions

void sys::repopulate_modifier_effects (sys::state &state)
 
void sys::update_modifier_effects (sys::state &state)
 
void sys::update_single_nation_modifiers (sys::state &state, dcon::nation_id n)
 
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::remove_expired_modifiers_from_nation (sys::state &state, dcon::nation_id target_nation)
 
void sys::remove_expired_modifiers_from_province (sys::state &state, dcon::province_id target_prov)
 
void sys::toggle_modifier_from_province (sys::state &state, dcon::province_id target_prov, dcon::modifier_id mod_id, sys::date expiration)
 

Variables

MOD_PROV_LIST constexpr uint32_t sys::provincial_mod_offsets::count = MOD_PROV_LIST_COUNT
 
MOD_NAT_LIST constexpr uint32_t sys::national_mod_offsets::count = MOD_NAT_LIST_COUNT
 

Macro Definition Documentation

◆ MOD_LIST_ELEMENT [1/2]

#define MOD_LIST_ELEMENT (   num,
  name,
  green_is_negative,
  display_type,
  locale_name 
)     constexpr inline dcon::provincial_modifier_value name{num};

Definition at line 211 of file modifiers.hpp.

◆ MOD_LIST_ELEMENT [2/2]

#define MOD_LIST_ELEMENT (   num,
  name,
  green_is_negative,
  display_type,
  locale_name 
)     constexpr inline dcon::national_modifier_value name{num};

Definition at line 211 of file modifiers.hpp.

◆ MOD_NAT_LIST

#define MOD_NAT_LIST

Definition at line 64 of file modifiers.hpp.

◆ MOD_NAT_LIST_COUNT

#define MOD_NAT_LIST_COUNT   126

Definition at line 200 of file modifiers.hpp.

◆ MOD_PROV_LIST

#define MOD_PROV_LIST

Definition at line 9 of file modifiers.hpp.

◆ MOD_PROV_LIST_COUNT

#define MOD_PROV_LIST_COUNT   51

Definition at line 62 of file modifiers.hpp.