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

Go to the source code of this file.

Classes

struct  culture::crime_info
 
struct  culture::folder_info
 
struct  culture::global_cultural_state
 

Namespaces

namespace  issue_rule
 
namespace  culture
 

Enumerations

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

Functions

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

Variables

constexpr uint32_t issue_rule::build_factory = 0x00000001
 
constexpr uint32_t issue_rule::expand_factory = 0x00000002
 
constexpr uint32_t issue_rule::open_factory = 0x00000004
 
constexpr uint32_t issue_rule::destroy_factory = 0x00000008
 
constexpr uint32_t issue_rule::factory_priority = 0x00000010
 
constexpr uint32_t issue_rule::can_subsidise = 0x00000020
 
constexpr uint32_t issue_rule::pop_build_factory = 0x00000040
 
constexpr uint32_t issue_rule::pop_expand_factory = 0x00000080
 
constexpr uint32_t issue_rule::pop_open_factory = 0x00000100
 
constexpr uint32_t issue_rule::delete_factory_if_no_input = 0x00000200
 
constexpr uint32_t issue_rule::build_factory_invest = 0x00000400
 
constexpr uint32_t issue_rule::expand_factory_invest = 0x00000800
 
constexpr uint32_t issue_rule::open_factory_invest = 0x00001000
 
constexpr uint32_t issue_rule::build_railway_invest = 0x00002000
 
constexpr uint32_t issue_rule::can_invest_in_pop_projects = 0x00004000
 
constexpr uint32_t issue_rule::pop_build_factory_invest = 0x00008000
 
constexpr uint32_t issue_rule::pop_expand_factory_invest = 0x00010000
 
constexpr uint32_t issue_rule::pop_open_factory_invest = 0x00020000
 
constexpr uint32_t issue_rule::allow_foreign_investment = 0x00040000
 
constexpr uint32_t issue_rule::slavery_allowed = 0x00080000
 
constexpr uint32_t issue_rule::primary_culture_voting = 0x00100000
 
constexpr uint32_t issue_rule::culture_voting = 0x00200000
 
constexpr uint32_t issue_rule::all_voting = 0x00400000
 
constexpr uint32_t issue_rule::largest_share = 0x00800000
 
constexpr uint32_t issue_rule::dhont = 0x01000000
 
constexpr uint32_t issue_rule::sainte_laque = 0x02000000
 
constexpr uint32_t issue_rule::same_as_ruling_party = 0x04000000
 
constexpr uint32_t issue_rule::rich_only = 0x08000000
 
constexpr uint32_t issue_rule::state_vote = 0x10000000
 
constexpr uint32_t issue_rule::population_vote = 0x20000000
 
constexpr uint32_t issue_rule::build_railway = 0x40000000
 
constexpr uint32_t issue_rule::build_bank = 0x40000000
 
constexpr uint32_t issue_rule::build_university = 0x80000000