Project Alice
Loading...
Searching...
No Matches
culture Namespace Reference

Classes

struct  crime_info
 
struct  folder_info
 
struct  global_cultural_state
 

Enumerations

enum class  flag_type : uint8_t {
  default_flag = 0 , republic , communist , fascist ,
  monarchy , theocracy , special , spare ,
  populist , realm , other , monarchy2 ,
  monarchy3 , republic2 , republic3 , communist2 ,
  communist3 , fascist2 , fascist3 , theocracy2 ,
  theocracy3 , cosmetic_1 , cosmetic_2 , colonial ,
  nationalist , sectarian , socialist , dominion ,
  agrarism , national_syndicalist , theocratic , slot1 ,
  slot2 , slot3 , slot4 , anarcho_liberal ,
  green , traditionalist , ultranationalist , count
}
 
enum class  tech_category : uint8_t {
  army , navy , commerce , culture ,
  industry , military_theory , population , diplomacy ,
  flavor , unknown
}
 
enum class  pop_strata : uint8_t { poor = 0 , middle = 1 , rich = 2 }
 
enum class  income_type : uint8_t {
  none = 0 , administration = 1 , military = 2 , education = 3 ,
  reforms = 4
}
 
enum class  issue_type : uint8_t {
  party = 0 , political = 1 , social = 2 , military = 3 ,
  economic = 4
}
 
enum class  issue_category : uint8_t {
  party , political , social , military ,
  economic
}
 
enum class  rebel_area : uint8_t {
  none = 0 , nation , culture , nation_culture ,
  nation_religion , religion , culture_group , all
}
 
enum class  rebel_defection : uint8_t {
  none = 0 , culture , culture_group , religion ,
  ideology , any , pan_nationalist
}
 
enum class  rebel_independence : uint8_t {
  none = 0 , culture , culture_group , religion ,
  colonial , any , pan_nationalist
}
 

Functions

std::string get_tech_category_name (tech_category t)
 
void set_default_issue_and_reform_options (sys::state &state)
 
void clear_existing_tech_effects (sys::state &state)
 
void repopulate_technology_effects (sys::state &state)
 
void repopulate_invention_effects (sys::state &state)
 
void apply_technology (sys::state &state, dcon::nation_id target_nation, dcon::technology_id t_id)
 
void remove_technology (sys::state &state, dcon::nation_id target_nation, dcon::technology_id t_id)
 
void apply_invention (sys::state &state, dcon::nation_id target_nation, dcon::invention_id i_id)
 
void remove_invention (sys::state &state, dcon::nation_id target_nation, dcon::invention_id i_id)
 
uint32_t get_remapped_flag_type (sys::state const &state, flag_type type)
 
flag_type get_current_flag_type (sys::state const &state, dcon::nation_id target_nation)
 
flag_type get_current_flag_type (sys::state const &state, dcon::national_identity_id identity)
 
void fix_slaves_in_province (sys::state &state, dcon::nation_id owner, dcon::province_id p)
 
void update_nation_issue_rules (sys::state &state, dcon::nation_id n_id)
 
void update_all_nations_issue_rules (sys::state &state)
 
void restore_unsaved_values (sys::state &state)
 
void create_initial_ideology_and_issues_distribution (sys::state &state)
 
float effective_technology_cost (sys::state &state, uint32_t current_year, dcon::nation_id target_nation, dcon::technology_id tech_id)
 
void update_research (sys::state &state, uint32_t current_year)
 
void discover_inventions (sys::state &state)
 
void replace_cores (sys::state &state, dcon::national_identity_id old_tag, dcon::national_identity_id new_tag)
 
constexpr uint64_t to_bits (dcon::ideology_id id)
 

Variables

constexpr int32_t max_issue_options = 6
 

Enumeration Type Documentation

◆ flag_type

enum class culture::flag_type : uint8_t
strong
Enumerator
default_flag 
republic 
communist 
fascist 
monarchy 
theocracy 
special 
spare 
populist 
realm 
other 
monarchy2 
monarchy3 
republic2 
republic3 
communist2 
communist3 
fascist2 
fascist3 
theocracy2 
theocracy3 
cosmetic_1 
cosmetic_2 
colonial 
nationalist 
sectarian 
socialist 
dominion 
agrarism 
national_syndicalist 
theocratic 
slot1 
slot2 
slot3 
slot4 
anarcho_liberal 
green 
traditionalist 
ultranationalist 
count 

Definition at line 48 of file culture.hpp.

◆ income_type

enum class culture::income_type : uint8_t
strong
Enumerator
none 
administration 
military 
education 
reforms 

Definition at line 116 of file culture.hpp.

◆ issue_category

enum class culture::issue_category : uint8_t
strong
Enumerator
party 
political 
social 
military 
economic 

Definition at line 177 of file culture.hpp.

◆ issue_type

enum class culture::issue_type : uint8_t
strong
Enumerator
party 
political 
social 
military 
economic 

Definition at line 123 of file culture.hpp.

◆ pop_strata

enum class culture::pop_strata : uint8_t
strong
Enumerator
poor 
middle 
rich 

Definition at line 115 of file culture.hpp.

◆ rebel_area

enum class culture::rebel_area : uint8_t
strong
Enumerator
none 
nation 
culture 
nation_culture 
nation_religion 
religion 
culture_group 
all 

Definition at line 179 of file culture.hpp.

◆ rebel_defection

enum class culture::rebel_defection : uint8_t
strong
Enumerator
none 
culture 
culture_group 
religion 
ideology 
any 
pan_nationalist 

Definition at line 180 of file culture.hpp.

◆ rebel_independence

enum class culture::rebel_independence : uint8_t
strong
Enumerator
none 
culture 
culture_group 
religion 
colonial 
any 
pan_nationalist 

Definition at line 181 of file culture.hpp.

◆ tech_category

enum class culture::tech_category : uint8_t
strong
Enumerator
army 
navy 
commerce 
culture 
industry 
military_theory 
population 
diplomacy 
flavor 
unknown 

Definition at line 106 of file culture.hpp.

Function Documentation

◆ apply_invention()

void culture::apply_invention ( sys::state state,
dcon::nation_id  target_nation,
dcon::invention_id  i_id 
)

Definition at line 500 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_technology()

void culture::apply_technology ( sys::state state,
dcon::nation_id  target_nation,
dcon::technology_id  t_id 
)

Definition at line 360 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear_existing_tech_effects()

void culture::clear_existing_tech_effects ( sys::state state)

Definition at line 55 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_initial_ideology_and_issues_distribution()

void culture::create_initial_ideology_and_issues_distribution ( sys::state state)

Definition at line 841 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ discover_inventions()

void culture::discover_inventions ( sys::state state)

Definition at line 975 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ effective_technology_cost()

float culture::effective_technology_cost ( sys::state state,
uint32_t  current_year,
dcon::nation_id  target_nation,
dcon::technology_id  tech_id 
)

Definition at line 904 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fix_slaves_in_province()

void culture::fix_slaves_in_province ( sys::state state,
dcon::nation_id  owner,
dcon::province_id  p 
)

Definition at line 740 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_current_flag_type() [1/2]

flag_type culture::get_current_flag_type ( sys::state const &  state,
dcon::nation_id  target_nation 
)

Definition at line 717 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_current_flag_type() [2/2]

flag_type culture::get_current_flag_type ( sys::state const &  state,
dcon::national_identity_id  identity 
)

Definition at line 732 of file culture.cpp.

Here is the call graph for this function:

◆ get_remapped_flag_type()

uint32_t culture::get_remapped_flag_type ( sys::state const &  state,
flag_type  type 
)

Definition at line 713 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_tech_category_name()

std::string culture::get_tech_category_name ( tech_category  t)

Definition at line 12 of file culture.cpp.

Here is the caller graph for this function:

◆ remove_invention()

void culture::remove_invention ( sys::state state,
dcon::nation_id  target_nation,
dcon::invention_id  i_id 
)

Definition at line 606 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_technology()

void culture::remove_technology ( sys::state state,
dcon::nation_id  target_nation,
dcon::technology_id  t_id 
)

Definition at line 430 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ replace_cores()

void culture::replace_cores ( sys::state state,
dcon::national_identity_id  old_tag,
dcon::national_identity_id  new_tag 
)

Definition at line 1047 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ repopulate_invention_effects()

void culture::repopulate_invention_effects ( sys::state state)

Definition at line 212 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ repopulate_technology_effects()

void culture::repopulate_technology_effects ( sys::state state)

Definition at line 114 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restore_unsaved_values()

void culture::restore_unsaved_values ( sys::state state)

Definition at line 818 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_default_issue_and_reform_options()

void culture::set_default_issue_and_reform_options ( sys::state state)

Definition at line 39 of file culture.cpp.

Here is the caller graph for this function:

◆ to_bits()

constexpr uint64_t culture::to_bits ( dcon::ideology_id  id)
inlineconstexpr

Definition at line 92 of file culture.hpp.

Here is the caller graph for this function:

◆ update_all_nations_issue_rules()

void culture::update_all_nations_issue_rules ( sys::state state)

Definition at line 801 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_nation_issue_rules()

void culture::update_nation_issue_rules ( sys::state state,
dcon::nation_id  n_id 
)

Definition at line 766 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_research()

void culture::update_research ( sys::state state,
uint32_t  current_year 
)

Definition at line 947 of file culture.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ max_issue_options

constexpr int32_t culture::max_issue_options = 6
inlineconstexpr

Definition at line 574 of file constants.hpp.