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

Namespaces

namespace  influence
 

Classes

struct  fixed_election_event
 
struct  fixed_event
 
struct  fixed_province_event
 
struct  global_national_state
 
struct  triggered_modifier
 

Enumerations

enum class  focus_type : uint8_t {
  unknown = 0 , rail_focus = 1 , immigration_focus = 2 , diplomatic_focus = 3 ,
  promotion_focus = 4 , production_focus = 5 , party_loyalty_focus = 6 , policy_focus = 7 ,
  tier_1_focus = 8 , tier_2_focus = 9 , tier_3_focus = 10 , tier_4_focus = 11 ,
  tier_5_focus = 12 , tier_6_focus = 13 , tier_7_focus = 14 , tier_8_focus = 15 ,
  building_focus = 16 , population_focus = 17 , heavy_industry_focus = 18 , consumer_goods_focus = 19 ,
  military_goods_focus = 20 , immigration_colonization_focus = 21
}
 
enum class  status : uint8_t {
  great_power , secondary_power , civilized , westernizing ,
  uncivilized , primitive
}
 

Functions

template auto primary_culture_group< ve::tagged_vector< dcon::nation_id > > (sys::state const &, ve::tagged_vector< dcon::nation_id >)
 
template auto owner_of_pop< ve::tagged_vector< dcon::pop_id > > (sys::state const &, ve::tagged_vector< dcon::pop_id >)
 
template auto central_blockaded_fraction< ve::tagged_vector< dcon::nation_id > > (sys::state const &, ve::tagged_vector< dcon::nation_id >)
 
template auto central_reb_controlled_fraction< ve::tagged_vector< dcon::nation_id > > (sys::state const &, ve::tagged_vector< dcon::nation_id >)
 
template auto central_has_crime_fraction< ve::tagged_vector< dcon::nation_id > > (sys::state const &, ve::tagged_vector< dcon::nation_id >)
 
template auto occupied_provinces_fraction< ve::tagged_vector< dcon::nation_id > > (sys::state const &, ve::tagged_vector< dcon::nation_id >)
 
int64_t get_monthly_pop_increase_of_nation (sys::state &state, dcon::nation_id n)
 
dcon::nation_id get_nth_great_power (sys::state const &state, uint16_t n)
 
dcon::nation_id owner_of_pop (sys::state const &state, dcon::pop_id pop_ids)
 
void restore_state_instances (sys::state &state)
 
void restore_cached_values (sys::state &state)
 
void update_cached_values (sys::state &state)
 
void restore_unsaved_values (sys::state &state)
 
void generate_initial_state_instances (sys::state &state)
 
bool can_release_as_vassal (sys::state const &state, dcon::nation_id n, dcon::national_identity_id releasable)
 
bool identity_has_holder (sys::state const &state, dcon::national_identity_id ident)
 
bool are_allied (sys::state &state, dcon::nation_id a, dcon::nation_id b)
 
bool is_landlocked (sys::state &state, dcon::nation_id n)
 
dcon::nation_id get_relationship_partner (sys::state const &state, dcon::diplomatic_relation_id rel_id, dcon::nation_id query)
 
dcon::text_key name_from_tag (sys::state &state, dcon::national_identity_id tag)
 
void update_administrative_efficiency (sys::state &state)
 
float daily_research_points (sys::state &state, dcon::nation_id n)
 
void update_research_points (sys::state &state)
 
float get_foreign_investment (sys::state &state, dcon::nation_id n)
 
float get_foreign_investment_as_gp (sys::state &state, dcon::nation_id n)
 
void update_industrial_scores (sys::state &state)
 
void update_military_scores (sys::state &state)
 
float prestige_score (sys::state const &state, dcon::nation_id n)
 
void update_rankings (sys::state &state)
 
void update_ui_rankings (sys::state &state)
 
bool is_great_power (sys::state const &state, dcon::nation_id id)
 
void update_great_powers (sys::state &state)
 
status get_status (sys::state &state, dcon::nation_id n)
 
sys::date get_research_end_date (sys::state &state, dcon::technology_id tech_id, dcon::nation_id n)
 
dcon::technology_id current_research (sys::state const &state, dcon::nation_id n)
 
float suppression_points (sys::state const &state, dcon::nation_id n)
 
float leadership_points (sys::state const &state, dcon::nation_id n)
 
int32_t max_national_focuses (sys::state &state, dcon::nation_id n)
 
int32_t national_focuses_in_use (sys::state &state, dcon::nation_id n)
 
float diplomatic_points (sys::state const &state, dcon::nation_id n)
 
float monthly_diplomatic_points (sys::state const &state, dcon::nation_id n)
 
float colonial_points_from_ships (sys::state &state, dcon::nation_id n)
 
float colonial_points_from_naval_bases (sys::state &state, dcon::nation_id n)
 
float colonial_points_from_technology (sys::state &state, dcon::nation_id n)
 
float used_colonial_points (sys::state &state, dcon::nation_id n)
 
int32_t free_colonial_points (sys::state &state, dcon::nation_id n)
 
int32_t max_colonial_points (sys::state &state, dcon::nation_id n)
 
bool can_expand_colony (sys::state &state, dcon::nation_id n)
 
bool is_losing_colonial_race (sys::state &state, dcon::nation_id n)
 
bool sphereing_progress_is_possible (sys::state &state, dcon::nation_id n)
 
bool has_political_reform_available (sys::state &state, dcon::nation_id n)
 
bool has_social_reform_available (sys::state &state, dcon::nation_id n)
 
bool has_reform_available (sys::state &state, dcon::nation_id n)
 
bool has_decision_available (sys::state &state, dcon::nation_id n)
 
void get_active_political_parties (sys::state &state, dcon::nation_id n, std::vector< dcon::political_party_id > &parties)
 
void monthly_adjust_relationship (sys::state &state, dcon::nation_id a, dcon::nation_id b, float delta)
 
void update_revanchism (sys::state &state)
 
void update_monthly_points (sys::state &state)
 
float get_treasury (sys::state &state, dcon::nation_id n)
 
float get_bank_funds (sys::state &state, dcon::nation_id n)
 
float get_debt (sys::state &state, dcon::nation_id n)
 
float tariff_efficiency (sys::state &state, dcon::nation_id n)
 
float tax_efficiency (sys::state &state, dcon::nation_id n)
 
bool is_involved_in_crisis (sys::state const &state, dcon::nation_id n)
 
bool is_committed_in_crisis (sys::state const &state, dcon::nation_id n)
 
void adjust_relationship (sys::state &state, dcon::nation_id a, dcon::nation_id b, float delta)
 
void create_nation_based_on_template (sys::state &state, dcon::nation_id n, dcon::nation_id base)
 
void run_gc (sys::state &state)
 
void cleanup_nation (sys::state &state, dcon::nation_id n)
 
void adjust_prestige (sys::state &state, dcon::nation_id n, float delta)
 
bool destroy_vassal_relationships (sys::state &state, dcon::nation_id n)
 
void destroy_diplomatic_relationships (sys::state &state, dcon::nation_id n)
 
void release_vassal (sys::state &state, dcon::overlord_id rel)
 
void make_vassal (sys::state &state, dcon::nation_id subject, dcon::nation_id overlord)
 
void make_substate (sys::state &state, dcon::nation_id subject, dcon::nation_id overlord)
 
void break_alliance (sys::state &state, dcon::diplomatic_relation_id rel)
 
void break_alliance (sys::state &state, dcon::nation_id a, dcon::nation_id b)
 
void make_alliance (sys::state &state, dcon::nation_id a, dcon::nation_id b)
 
bool other_nation_is_influencing (sys::state &state, dcon::nation_id target, dcon::gp_relationship_id rel)
 
bool can_accumulate_influence_with (sys::state &state, dcon::nation_id gp, dcon::nation_id target, dcon::gp_relationship_id rel)
 
float get_base_shares (sys::state &state, dcon::gp_relationship_id gp, float total_gain, int32_t total_influence_shares)
 
bool has_sphere_neighbour (sys::state &state, dcon::nation_id n, dcon::nation_id target)
 
void update_influence (sys::state &state)
 
bool can_put_flashpoint_focus_in_state (sys::state &state, dcon::state_instance_id s, dcon::nation_id fp_nation)
 
void monthly_flashpoint_update (sys::state &state)
 
void daily_update_flashpoint_tension (sys::state &state)
 
void cleanup_crisis (sys::state &state)
 
void add_as_primary_crisis_defender (sys::state &state, dcon::nation_id n)
 
void add_as_primary_crisis_attacker (sys::state &state, dcon::nation_id n)
 
void ask_to_defend_in_crisis (sys::state &state, dcon::nation_id n)
 
void ask_to_attack_in_crisis (sys::state &state, dcon::nation_id n)
 
void reject_crisis_participation (sys::state &state)
 
void cleanup_crisis_peace_offer (sys::state &state, dcon::peace_offer_id peace)
 
void accept_crisis_peace_offer (sys::state &state, dcon::nation_id from, dcon::nation_id to, dcon::peace_offer_id peace)
 
void update_crisis (sys::state &state)
 
int32_t num_crisis_wargoals (sys::state &state)
 
bool nth_crisis_war_goal_is_for_attacker (sys::state &state, int32_t index)
 
military::full_wg get_nth_crisis_war_goal (sys::state &state, int32_t index)
 
void update_pop_acceptance (sys::state &state, dcon::nation_id n)
 
void liberate_nation_from (sys::state &state, dcon::national_identity_id liberated, dcon::nation_id from)
 
void release_nation_from (sys::state &state, dcon::national_identity_id liberated, dcon::nation_id from)
 
void remove_cores_from_owned (sys::state &state, dcon::nation_id n, dcon::national_identity_id tag)
 
void perform_nationalization (sys::state &state, dcon::nation_id n)
 
void adjust_influence (sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta)
 
void adjust_influence_with_overflow (sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta)
 
void adjust_foreign_investment (sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta)
 
float get_yesterday_income (sys::state &state, dcon::nation_id n)
 
void make_civilized (sys::state &state, dcon::nation_id n)
 
void make_uncivilized (sys::state &state, dcon::nation_id n)
 
void enact_reform (sys::state &state, dcon::nation_id source, dcon::reform_option_id r)
 
void enact_issue (sys::state &state, dcon::nation_id source, dcon::issue_option_id i)
 
uint32_t tag_to_int (char first, char second, char third)
 
std::string int_to_tag (uint32_t v)
 
uint32_t get_total_pop_in_owned_provinces (sys::state &state, dcon::nation_id n)
 
template<typename T , typename U >
auto nation_accepts_culture (sys::state const &state, T ids, U cul_ids)
 
template<typename T >
auto primary_culture_group (sys::state const &state, T ids)
 
template<typename T >
auto owner_of_pop (sys::state const &state, T pop_ids)
 
template<typename T >
auto central_blockaded_fraction (sys::state const &state, T ids)
 
template<typename T >
auto central_reb_controlled_fraction (sys::state const &state, T ids)
 
template<typename T >
auto central_has_crime_fraction (sys::state const &state, T ids)
 
template<typename T >
auto occupied_provinces_fraction (sys::state const &state, T ids)
 

Variables

constexpr float max_prestige = 2147483648.f
 

Enumeration Type Documentation

◆ focus_type

enum class nations::focus_type : uint8_t
strong
Enumerator
unknown 
rail_focus 
immigration_focus 
diplomatic_focus 
promotion_focus 
production_focus 
party_loyalty_focus 
policy_focus 
tier_1_focus 
tier_2_focus 
tier_3_focus 
tier_4_focus 
tier_5_focus 
tier_6_focus 
tier_7_focus 
tier_8_focus 
building_focus 
population_focus 
heavy_industry_focus 
consumer_goods_focus 
military_goods_focus 
immigration_colonization_focus 

Definition at line 40 of file nations.hpp.

◆ status

enum class nations::status : uint8_t
strong
Enumerator
great_power 
secondary_power 
civilized 
westernizing 
uncivilized 
primitive 

Definition at line 284 of file nations.hpp.

Function Documentation

◆ accept_crisis_peace_offer()

void nations::accept_crisis_peace_offer ( sys::state state,
dcon::nation_id  from,
dcon::nation_id  to,
dcon::peace_offer_id  peace 
)

Definition at line 2017 of file nations.cpp.

Here is the caller graph for this function:

◆ add_as_primary_crisis_attacker()

void nations::add_as_primary_crisis_attacker ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1904 of file nations.cpp.

Here is the caller graph for this function:

◆ add_as_primary_crisis_defender()

void nations::add_as_primary_crisis_defender ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1890 of file nations.cpp.

Here is the caller graph for this function:

◆ adjust_foreign_investment()

void nations::adjust_foreign_investment ( sys::state state,
dcon::nation_id  great_power,
dcon::nation_id  target,
float  delta 
)

Definition at line 2735 of file nations.cpp.

Here is the caller graph for this function:

◆ adjust_influence()

void nations::adjust_influence ( sys::state state,
dcon::nation_id  great_power,
dcon::nation_id  target,
float  delta 
)

Definition at line 2669 of file nations.cpp.

◆ adjust_influence_with_overflow()

void nations::adjust_influence_with_overflow ( sys::state state,
dcon::nation_id  great_power,
dcon::nation_id  target,
float  delta 
)

Definition at line 2681 of file nations.cpp.

Here is the caller graph for this function:

◆ adjust_prestige()

void nations::adjust_prestige ( sys::state state,
dcon::nation_id  n,
float  delta 
)

Definition at line 1330 of file nations.cpp.

Here is the caller graph for this function:

◆ adjust_relationship()

void nations::adjust_relationship ( sys::state state,
dcon::nation_id  a,
dcon::nation_id  b,
float  delta 
)

Definition at line 1094 of file nations.cpp.

Here is the caller graph for this function:

◆ are_allied()

bool nations::are_allied ( sys::state state,
dcon::nation_id  a,
dcon::nation_id  b 
)

Definition at line 198 of file nations.cpp.

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

◆ ask_to_attack_in_crisis()

void nations::ask_to_attack_in_crisis ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1933 of file nations.cpp.

◆ ask_to_defend_in_crisis()

void nations::ask_to_defend_in_crisis ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1918 of file nations.cpp.

◆ break_alliance() [1/2]

void nations::break_alliance ( sys::state state,
dcon::diplomatic_relation_id  rel 
)

Definition at line 1442 of file nations.cpp.

Here is the caller graph for this function:

◆ break_alliance() [2/2]

void nations::break_alliance ( sys::state state,
dcon::nation_id  a,
dcon::nation_id  b 
)

Definition at line 1450 of file nations.cpp.

◆ can_accumulate_influence_with()

bool nations::can_accumulate_influence_with ( sys::state state,
dcon::nation_id  gp,
dcon::nation_id  target,
dcon::gp_relationship_id  rel 
)

Definition at line 1500 of file nations.cpp.

Here is the caller graph for this function:

◆ can_expand_colony()

bool nations::can_expand_colony ( sys::state state,
dcon::nation_id  n 
)

Definition at line 759 of file nations.cpp.

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

◆ can_put_flashpoint_focus_in_state()

bool nations::can_put_flashpoint_focus_in_state ( sys::state state,
dcon::state_instance_id  s,
dcon::nation_id  fp_nation 
)

Definition at line 1667 of file nations.cpp.

◆ can_release_as_vassal()

bool nations::can_release_as_vassal ( sys::state const &  state,
dcon::nation_id  n,
dcon::national_identity_id  releasable 
)

Definition at line 176 of file nations.cpp.

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

◆ central_blockaded_fraction()

template<typename T >
auto nations::central_blockaded_fraction ( sys::state const &  state,
ids 
)

Definition at line 34 of file nations_templates.hpp.

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

◆ central_blockaded_fraction< ve::tagged_vector< dcon::nation_id > >()

template auto nations::central_blockaded_fraction< ve::tagged_vector< dcon::nation_id > > ( sys::state const &  ,
ve::tagged_vector< dcon::nation_id >   
)

◆ central_has_crime_fraction()

template<typename T >
auto nations::central_has_crime_fraction ( sys::state const &  state,
ids 
)

Definition at line 49 of file nations_templates.hpp.

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

◆ central_has_crime_fraction< ve::tagged_vector< dcon::nation_id > >()

template auto nations::central_has_crime_fraction< ve::tagged_vector< dcon::nation_id > > ( sys::state const &  ,
ve::tagged_vector< dcon::nation_id >   
)

◆ central_reb_controlled_fraction()

template<typename T >
auto nations::central_reb_controlled_fraction ( sys::state const &  state,
ids 
)

Definition at line 42 of file nations_templates.hpp.

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

◆ central_reb_controlled_fraction< ve::tagged_vector< dcon::nation_id > >()

template auto nations::central_reb_controlled_fraction< ve::tagged_vector< dcon::nation_id > > ( sys::state const &  ,
ve::tagged_vector< dcon::nation_id >   
)

◆ cleanup_crisis()

void nations::cleanup_crisis ( sys::state state)

Definition at line 1860 of file nations.cpp.

Here is the caller graph for this function:

◆ cleanup_crisis_peace_offer()

void nations::cleanup_crisis_peace_offer ( sys::state state,
dcon::peace_offer_id  peace 
)

Definition at line 2009 of file nations.cpp.

Here is the caller graph for this function:

◆ cleanup_nation()

void nations::cleanup_nation ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1241 of file nations.cpp.

◆ colonial_points_from_naval_bases()

float nations::colonial_points_from_naval_bases ( sys::state state,
dcon::nation_id  n 
)

Definition at line 674 of file nations.cpp.

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

◆ colonial_points_from_ships()

float nations::colonial_points_from_ships ( sys::state state,
dcon::nation_id  n 
)

Definition at line 655 of file nations.cpp.

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

◆ colonial_points_from_technology()

float nations::colonial_points_from_technology ( sys::state state,
dcon::nation_id  n 
)

Definition at line 708 of file nations.cpp.

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

◆ create_nation_based_on_template()

void nations::create_nation_based_on_template ( sys::state state,
dcon::nation_id  n,
dcon::nation_id  base 
)

Definition at line 1106 of file nations.cpp.

Here is the caller graph for this function:

◆ current_research()

dcon::technology_id nations::current_research ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 606 of file nations.cpp.

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

◆ daily_research_points()

float nations::daily_research_points ( sys::state state,
dcon::nation_id  n 
)

Definition at line 254 of file nations.cpp.

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

◆ daily_update_flashpoint_tension()

void nations::daily_update_flashpoint_tension ( sys::state state)

Definition at line 1773 of file nations.cpp.

Here is the caller graph for this function:

◆ destroy_diplomatic_relationships()

void nations::destroy_diplomatic_relationships ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1348 of file nations.cpp.

Here is the caller graph for this function:

◆ destroy_vassal_relationships()

bool nations::destroy_vassal_relationships ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1337 of file nations.cpp.

◆ diplomatic_points()

float nations::diplomatic_points ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 645 of file nations.cpp.

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

◆ enact_issue()

void nations::enact_issue ( sys::state state,
dcon::nation_id  source,
dcon::issue_option_id  i 
)

Definition at line 2935 of file nations.cpp.

Here is the caller graph for this function:

◆ enact_reform()

void nations::enact_reform ( sys::state state,
dcon::nation_id  source,
dcon::reform_option_id  r 
)

Definition at line 2890 of file nations.cpp.

Here is the caller graph for this function:

◆ free_colonial_points()

int32_t nations::free_colonial_points ( sys::state state,
dcon::nation_id  n 
)

Definition at line 739 of file nations.cpp.

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

◆ generate_initial_state_instances()

void nations::generate_initial_state_instances ( sys::state state)

Definition at line 143 of file nations.cpp.

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

◆ get_active_political_parties()

void nations::get_active_political_parties ( sys::state state,
dcon::nation_id  n,
std::vector< dcon::political_party_id > &  parties 
)

Definition at line 892 of file nations.cpp.

Here is the caller graph for this function:

◆ get_bank_funds()

float nations::get_bank_funds ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1046 of file nations.cpp.

Here is the caller graph for this function:

◆ get_base_shares()

float nations::get_base_shares ( sys::state state,
dcon::gp_relationship_id  gp,
float  total_gain,
int32_t  total_influence_shares 
)

Definition at line 1513 of file nations.cpp.

Here is the caller graph for this function:

◆ get_debt()

float nations::get_debt ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1050 of file nations.cpp.

Here is the caller graph for this function:

◆ get_foreign_investment()

float nations::get_foreign_investment ( sys::state state,
dcon::nation_id  n 
)

Definition at line 314 of file nations.cpp.

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

◆ get_foreign_investment_as_gp()

float nations::get_foreign_investment_as_gp ( sys::state state,
dcon::nation_id  n 
)

Definition at line 322 of file nations.cpp.

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

◆ get_monthly_pop_increase_of_nation()

int64_t nations::get_monthly_pop_increase_of_nation ( sys::state state,
dcon::nation_id  n 
)

Definition at line 38 of file nations.cpp.

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

◆ get_nth_crisis_war_goal()

military::full_wg nations::get_nth_crisis_war_goal ( sys::state state,
int32_t  index 
)

Definition at line 2497 of file nations.cpp.

Here is the caller graph for this function:

◆ get_nth_great_power()

dcon::nation_id nations::get_nth_great_power ( sys::state const &  state,
uint16_t  n 
)

Definition at line 57 of file nations.cpp.

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

◆ get_relationship_partner()

dcon::nation_id nations::get_relationship_partner ( sys::state const &  state,
dcon::diplomatic_relation_id  rel_id,
dcon::nation_id  query 
)

Definition at line 207 of file nations.cpp.

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

◆ get_research_end_date()

sys::date nations::get_research_end_date ( sys::state state,
dcon::technology_id  tech_id,
dcon::nation_id  n 
)

Definition at line 599 of file nations.cpp.

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

◆ get_status()

status nations::get_status ( sys::state state,
dcon::nation_id  n 
)

Definition at line 580 of file nations.cpp.

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

◆ get_total_pop_in_owned_provinces()

uint32_t nations::get_total_pop_in_owned_provinces ( sys::state state,
dcon::nation_id  n 
)

◆ get_treasury()

float nations::get_treasury ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1042 of file nations.cpp.

Here is the caller graph for this function:

◆ get_yesterday_income()

float nations::get_yesterday_income ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2744 of file nations.cpp.

◆ has_decision_available()

bool nations::has_decision_available ( sys::state state,
dcon::nation_id  n 
)

Definition at line 876 of file nations.cpp.

Here is the caller graph for this function:

◆ has_political_reform_available()

bool nations::has_political_reform_available ( sys::state state,
dcon::nation_id  n 
)

Definition at line 805 of file nations.cpp.

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

◆ has_reform_available()

bool nations::has_reform_available ( sys::state state,
dcon::nation_id  n 
)

Definition at line 829 of file nations.cpp.

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

◆ has_social_reform_available()

bool nations::has_social_reform_available ( sys::state state,
dcon::nation_id  n 
)

Definition at line 817 of file nations.cpp.

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

◆ has_sphere_neighbour()

bool nations::has_sphere_neighbour ( sys::state state,
dcon::nation_id  n,
dcon::nation_id  target 
)

Definition at line 1529 of file nations.cpp.

Here is the caller graph for this function:

◆ identity_has_holder()

bool nations::identity_has_holder ( sys::state const &  state,
dcon::national_identity_id  ident 
)

Definition at line 193 of file nations.cpp.

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

◆ int_to_tag()

std::string nations::int_to_tag ( uint32_t  v)
inline

Definition at line 10 of file nations.hpp.

Here is the caller graph for this function:

◆ is_committed_in_crisis()

bool nations::is_committed_in_crisis ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 1080 of file nations.cpp.

◆ is_great_power()

bool nations::is_great_power ( sys::state const &  state,
dcon::nation_id  id 
)

Definition at line 503 of file nations.cpp.

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

◆ is_involved_in_crisis()

bool nations::is_involved_in_crisis ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 1066 of file nations.cpp.

Here is the caller graph for this function:

◆ is_landlocked()

bool nations::is_landlocked ( sys::state state,
dcon::nation_id  n 
)

Definition at line 203 of file nations.cpp.

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

◆ is_losing_colonial_race()

bool nations::is_losing_colonial_race ( sys::state state,
dcon::nation_id  n 
)

Definition at line 774 of file nations.cpp.

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

◆ leadership_points()

float nations::leadership_points ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 614 of file nations.cpp.

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

◆ liberate_nation_from()

void nations::liberate_nation_from ( sys::state state,
dcon::national_identity_id  liberated,
dcon::nation_id  from 
)

Definition at line 2602 of file nations.cpp.

Here is the caller graph for this function:

◆ make_alliance()

void nations::make_alliance ( sys::state state,
dcon::nation_id  a,
dcon::nation_id  b 
)

Definition at line 1467 of file nations.cpp.

Here is the caller graph for this function:

◆ make_civilized()

void nations::make_civilized ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2758 of file nations.cpp.

Here is the caller graph for this function:

◆ make_substate()

void nations::make_substate ( sys::state state,
dcon::nation_id  subject,
dcon::nation_id  overlord 
)

Definition at line 1416 of file nations.cpp.

◆ make_uncivilized()

void nations::make_uncivilized ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2865 of file nations.cpp.

Here is the caller graph for this function:

◆ make_vassal()

void nations::make_vassal ( sys::state state,
dcon::nation_id  subject,
dcon::nation_id  overlord 
)

Definition at line 1393 of file nations.cpp.

Here is the caller graph for this function:

◆ max_colonial_points()

int32_t nations::max_colonial_points ( sys::state state,
dcon::nation_id  n 
)

Definition at line 747 of file nations.cpp.

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

◆ max_national_focuses()

int32_t nations::max_national_focuses ( sys::state state,
dcon::nation_id  n 
)

Definition at line 618 of file nations.cpp.

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

◆ monthly_adjust_relationship()

void nations::monthly_adjust_relationship ( sys::state state,
dcon::nation_id  a,
dcon::nation_id  b,
float  delta 
)

Definition at line 904 of file nations.cpp.

◆ monthly_diplomatic_points()

float nations::monthly_diplomatic_points ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 649 of file nations.cpp.

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

◆ monthly_flashpoint_update()

void nations::monthly_flashpoint_update ( sys::state state)

Definition at line 1696 of file nations.cpp.

Here is the caller graph for this function:

◆ name_from_tag()

dcon::text_key nations::name_from_tag ( sys::state state,
dcon::national_identity_id  tag 
)

Definition at line 223 of file nations.cpp.

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

◆ nation_accepts_culture()

template<typename T , typename U >
auto nations::nation_accepts_culture ( sys::state const &  state,
ids,
cul_ids 
)

Definition at line 9 of file nations_templates.hpp.

Here is the caller graph for this function:

◆ national_focuses_in_use()

int32_t nations::national_focuses_in_use ( sys::state state,
dcon::nation_id  n 
)

Definition at line 634 of file nations.cpp.

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

◆ nth_crisis_war_goal_is_for_attacker()

bool nations::nth_crisis_war_goal_is_for_attacker ( sys::state state,
int32_t  index 
)

Definition at line 2458 of file nations.cpp.

Here is the caller graph for this function:

◆ num_crisis_wargoals()

int32_t nations::num_crisis_wargoals ( sys::state state)

Definition at line 2439 of file nations.cpp.

Here is the caller graph for this function:

◆ occupied_provinces_fraction()

template<typename T >
auto nations::occupied_provinces_fraction ( sys::state const &  state,
ids 
)

Definition at line 56 of file nations_templates.hpp.

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

◆ occupied_provinces_fraction< ve::tagged_vector< dcon::nation_id > >()

template auto nations::occupied_provinces_fraction< ve::tagged_vector< dcon::nation_id > > ( sys::state const &  ,
ve::tagged_vector< dcon::nation_id >   
)

◆ other_nation_is_influencing()

bool nations::other_nation_is_influencing ( sys::state state,
dcon::nation_id  target,
dcon::gp_relationship_id  rel 
)

Definition at line 1492 of file nations.cpp.

◆ owner_of_pop() [1/2]

dcon::nation_id nations::owner_of_pop ( sys::state const &  state,
dcon::pop_id  pop_ids 
)

Definition at line 69 of file nations.cpp.

◆ owner_of_pop() [2/2]

template<typename T >
auto nations::owner_of_pop ( sys::state const &  state,
pop_ids 
)

Definition at line 28 of file nations_templates.hpp.

◆ owner_of_pop< ve::tagged_vector< dcon::pop_id > >()

template auto nations::owner_of_pop< ve::tagged_vector< dcon::pop_id > > ( sys::state const &  ,
ve::tagged_vector< dcon::pop_id >   
)

◆ perform_nationalization()

void nations::perform_nationalization ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2658 of file nations.cpp.

Here is the caller graph for this function:

◆ prestige_score()

float nations::prestige_score ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 396 of file nations.cpp.

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

◆ primary_culture_group()

template<typename T >
auto nations::primary_culture_group ( sys::state const &  state,
ids 
)

Definition at line 22 of file nations_templates.hpp.

Here is the caller graph for this function:

◆ primary_culture_group< ve::tagged_vector< dcon::nation_id > >()

template auto nations::primary_culture_group< ve::tagged_vector< dcon::nation_id > > ( sys::state const &  ,
ve::tagged_vector< dcon::nation_id >   
)

◆ reject_crisis_participation()

void nations::reject_crisis_participation ( sys::state state)

Definition at line 1948 of file nations.cpp.

Here is the caller graph for this function:

◆ release_nation_from()

void nations::release_nation_from ( sys::state state,
dcon::national_identity_id  liberated,
dcon::nation_id  from 
)

Definition at line 2626 of file nations.cpp.

◆ release_vassal()

void nations::release_vassal ( sys::state state,
dcon::overlord_id  rel 
)

Definition at line 1378 of file nations.cpp.

Here is the caller graph for this function:

◆ remove_cores_from_owned()

void nations::remove_cores_from_owned ( sys::state state,
dcon::nation_id  n,
dcon::national_identity_id  tag 
)

Definition at line 2650 of file nations.cpp.

Here is the caller graph for this function:

◆ restore_cached_values()

void nations::restore_cached_values ( sys::state state)

Definition at line 86 of file nations.cpp.

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

◆ restore_state_instances()

void nations::restore_state_instances ( sys::state state)

Definition at line 74 of file nations.cpp.

Here is the caller graph for this function:

◆ restore_unsaved_values()

void nations::restore_unsaved_values ( sys::state state)

Definition at line 116 of file nations.cpp.

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

◆ run_gc()

void nations::run_gc ( sys::state state)

Definition at line 1220 of file nations.cpp.

Here is the caller graph for this function:

◆ sphereing_progress_is_possible()

bool nations::sphereing_progress_is_possible ( sys::state state,
dcon::nation_id  n 
)

Definition at line 785 of file nations.cpp.

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

◆ suppression_points()

float nations::suppression_points ( sys::state const &  state,
dcon::nation_id  n 
)

Definition at line 610 of file nations.cpp.

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

◆ tag_to_int()

uint32_t nations::tag_to_int ( char  first,
char  second,
char  third 
)
inline

Definition at line 7 of file nations.hpp.

◆ tariff_efficiency()

float nations::tariff_efficiency ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1055 of file nations.cpp.

Here is the caller graph for this function:

◆ tax_efficiency()

float nations::tax_efficiency ( sys::state state,
dcon::nation_id  n 
)

Definition at line 1061 of file nations.cpp.

Here is the caller graph for this function:

◆ update_administrative_efficiency()

void nations::update_administrative_efficiency ( sys::state state)

Definition at line 231 of file nations.cpp.

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

◆ update_cached_values()

void nations::update_cached_values ( sys::state state)

Definition at line 109 of file nations.cpp.

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

◆ update_crisis()

void nations::update_crisis ( sys::state state)

Definition at line 2025 of file nations.cpp.

Here is the caller graph for this function:

◆ update_great_powers()

void nations::update_great_powers ( sys::state state)

Definition at line 507 of file nations.cpp.

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

◆ update_industrial_scores()

void nations::update_industrial_scores ( sys::state state)

Definition at line 330 of file nations.cpp.

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

◆ update_influence()

void nations::update_influence ( sys::state state)

Definition at line 1539 of file nations.cpp.

Here is the caller graph for this function:

◆ update_military_scores()

void nations::update_military_scores ( sys::state state)

Definition at line 370 of file nations.cpp.

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

◆ update_monthly_points()

void nations::update_monthly_points ( sys::state state)

Definition at line 943 of file nations.cpp.

Here is the caller graph for this function:

◆ update_pop_acceptance()

void nations::update_pop_acceptance ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2583 of file nations.cpp.

Here is the caller graph for this function:

◆ update_rankings()

void nations::update_rankings ( sys::state state)

Definition at line 401 of file nations.cpp.

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

◆ update_research_points()

void nations::update_research_points ( sys::state state)

Definition at line 279 of file nations.cpp.

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

◆ update_revanchism()

void nations::update_revanchism ( sys::state state)

Definition at line 913 of file nations.cpp.

◆ update_ui_rankings()

void nations::update_ui_rankings ( sys::state state)

Definition at line 432 of file nations.cpp.

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

◆ used_colonial_points()

float nations::used_colonial_points ( sys::state state,
dcon::nation_id  n 
)

Definition at line 717 of file nations.cpp.

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

Variable Documentation

◆ max_prestige

constexpr float nations::max_prestige = 2147483648.f
constexpr

Definition at line 19 of file nations.cpp.