Project Alice
Loading...
Searching...
No Matches
nations::global_national_state Struct Reference

#include <nations.hpp>

Collaboration diagram for nations::global_national_state:

Public Member Functions

bool is_global_flag_variable_set (dcon::global_flag_id id) const
 
void set_global_flag_variable (dcon::global_flag_id id, bool state)
 

Public Attributes

std::vector< triggered_modifiertriggered_modifiers
 
std::vector< dcon::bitfield_type > global_flag_variables
 
std::vector< dcon::nation_id > nations_by_rank
 
tagged_vector< dcon::text_key, dcon::national_flag_id > flag_variable_names
 
tagged_vector< dcon::text_key, dcon::global_flag_id > global_flag_variable_names
 
tagged_vector< dcon::text_key, dcon::national_variable_id > variable_names
 
dcon::national_identity_id rebel_id
 
dcon::modifier_id very_easy_player
 
dcon::modifier_id easy_player
 
dcon::modifier_id hard_player
 
dcon::modifier_id very_hard_player
 
dcon::modifier_id very_easy_ai
 
dcon::modifier_id easy_ai
 
dcon::modifier_id hard_ai
 
dcon::modifier_id very_hard_ai
 
dcon::modifier_id overseas
 
dcon::modifier_id coastal
 
dcon::modifier_id non_coastal
 
dcon::modifier_id coastal_sea
 
dcon::modifier_id sea_zone
 
dcon::modifier_id land_province
 
dcon::modifier_id blockaded
 
dcon::modifier_id no_adjacent_controlled
 
dcon::modifier_id core
 
dcon::modifier_id has_siege
 
dcon::modifier_id occupied
 
dcon::modifier_id nationalism
 
dcon::modifier_id infrastructure
 
dcon::modifier_id base_values
 
dcon::modifier_id war
 
dcon::modifier_id peace
 
dcon::modifier_id disarming
 
dcon::modifier_id war_exhaustion
 
dcon::modifier_id badboy
 
dcon::modifier_id debt_default_to
 
dcon::modifier_id bad_debter
 
dcon::modifier_id great_power
 
dcon::modifier_id second_power
 
dcon::modifier_id civ_nation
 
dcon::modifier_id unciv_nation
 
dcon::modifier_id average_literacy
 
dcon::modifier_id plurality
 
dcon::modifier_id generalised_debt_default
 
dcon::modifier_id total_occupation
 
dcon::modifier_id total_blockaded
 
dcon::modifier_id in_bankrupcy
 
int32_t num_allocated_national_variables = 0
 
int32_t num_allocated_national_flags = 0
 
int32_t num_allocated_global_flags = 0
 
dcon::national_focus_id flashpoint_focus
 
dcon::national_focus_id clergy_focus
 
dcon::national_focus_id soldier_focus
 
dcon::national_focus_id aristocrat_focus
 
dcon::national_focus_id capitalist_focus
 
dcon::national_focus_id primary_factory_worker_focus
 
dcon::national_focus_id secondary_factory_worker_focus
 
float flashpoint_amount = 0.15f
 
std::vector< fixed_eventon_yearly_pulse
 
std::vector< fixed_eventon_quarterly_pulse
 
std::vector< fixed_province_eventon_battle_won
 
std::vector< fixed_province_eventon_battle_lost
 
std::vector< fixed_eventon_surrender
 
std::vector< fixed_eventon_new_great_nation
 
std::vector< fixed_eventon_lost_great_nation
 
std::vector< fixed_election_eventon_election_tick
 
std::vector< fixed_eventon_colony_to_state
 
std::vector< fixed_eventon_state_conquest
 
std::vector< fixed_eventon_colony_to_state_free_slaves
 
std::vector< fixed_eventon_debtor_default
 
std::vector< fixed_eventon_debtor_default_small
 
std::vector< fixed_eventon_debtor_default_second
 
std::vector< fixed_eventon_civilize
 
std::vector< fixed_eventon_my_factories_nationalized
 
std::vector< fixed_eventon_crisis_declare_interest
 
std::vector< fixed_eventon_election_started
 
std::vector< fixed_eventon_election_finished
 
bool gc_pending = false
 

Detailed Description

Definition at line 66 of file nations.hpp.

Member Function Documentation

◆ is_global_flag_variable_set()

bool nations::global_national_state::is_global_flag_variable_set ( dcon::global_flag_id  id) const

Definition at line 212 of file nations.cpp.

◆ set_global_flag_variable()

void nations::global_national_state::set_global_flag_variable ( dcon::global_flag_id  id,
bool  state 
)

Definition at line 218 of file nations.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ aristocrat_focus

dcon::national_focus_id nations::global_national_state::aristocrat_focus

Definition at line 128 of file nations.hpp.

◆ average_literacy

dcon::modifier_id nations::global_national_state::average_literacy

Definition at line 114 of file nations.hpp.

◆ bad_debter

dcon::modifier_id nations::global_national_state::bad_debter

Definition at line 109 of file nations.hpp.

◆ badboy

dcon::modifier_id nations::global_national_state::badboy

Definition at line 107 of file nations.hpp.

◆ base_values

dcon::modifier_id nations::global_national_state::base_values

Definition at line 102 of file nations.hpp.

◆ blockaded

dcon::modifier_id nations::global_national_state::blockaded

Definition at line 93 of file nations.hpp.

◆ capitalist_focus

dcon::national_focus_id nations::global_national_state::capitalist_focus

Definition at line 129 of file nations.hpp.

◆ civ_nation

dcon::modifier_id nations::global_national_state::civ_nation

Definition at line 112 of file nations.hpp.

◆ clergy_focus

dcon::national_focus_id nations::global_national_state::clergy_focus

Definition at line 126 of file nations.hpp.

◆ coastal

dcon::modifier_id nations::global_national_state::coastal

Definition at line 88 of file nations.hpp.

◆ coastal_sea

dcon::modifier_id nations::global_national_state::coastal_sea

Definition at line 90 of file nations.hpp.

◆ core

dcon::modifier_id nations::global_national_state::core

Definition at line 95 of file nations.hpp.

◆ debt_default_to

dcon::modifier_id nations::global_national_state::debt_default_to

Definition at line 108 of file nations.hpp.

◆ disarming

dcon::modifier_id nations::global_national_state::disarming

Definition at line 105 of file nations.hpp.

◆ easy_ai

dcon::modifier_id nations::global_national_state::easy_ai

Definition at line 82 of file nations.hpp.

◆ easy_player

dcon::modifier_id nations::global_national_state::easy_player

Definition at line 78 of file nations.hpp.

◆ flag_variable_names

tagged_vector<dcon::text_key, dcon::national_flag_id> nations::global_national_state::flag_variable_names

Definition at line 71 of file nations.hpp.

◆ flashpoint_amount

float nations::global_national_state::flashpoint_amount = 0.15f

Definition at line 133 of file nations.hpp.

◆ flashpoint_focus

dcon::national_focus_id nations::global_national_state::flashpoint_focus

Definition at line 125 of file nations.hpp.

◆ gc_pending

bool nations::global_national_state::gc_pending = false

Definition at line 155 of file nations.hpp.

◆ generalised_debt_default

dcon::modifier_id nations::global_national_state::generalised_debt_default

Definition at line 116 of file nations.hpp.

◆ global_flag_variable_names

tagged_vector<dcon::text_key, dcon::global_flag_id> nations::global_national_state::global_flag_variable_names

Definition at line 72 of file nations.hpp.

◆ global_flag_variables

std::vector<dcon::bitfield_type> nations::global_national_state::global_flag_variables

Definition at line 68 of file nations.hpp.

◆ great_power

dcon::modifier_id nations::global_national_state::great_power

Definition at line 110 of file nations.hpp.

◆ hard_ai

dcon::modifier_id nations::global_national_state::hard_ai

Definition at line 83 of file nations.hpp.

◆ hard_player

dcon::modifier_id nations::global_national_state::hard_player

Definition at line 79 of file nations.hpp.

◆ has_siege

dcon::modifier_id nations::global_national_state::has_siege

Definition at line 96 of file nations.hpp.

◆ in_bankrupcy

dcon::modifier_id nations::global_national_state::in_bankrupcy

Definition at line 119 of file nations.hpp.

◆ infrastructure

dcon::modifier_id nations::global_national_state::infrastructure

Definition at line 99 of file nations.hpp.

◆ land_province

dcon::modifier_id nations::global_national_state::land_province

Definition at line 92 of file nations.hpp.

◆ nationalism

dcon::modifier_id nations::global_national_state::nationalism

Definition at line 98 of file nations.hpp.

◆ nations_by_rank

std::vector<dcon::nation_id> nations::global_national_state::nations_by_rank

Definition at line 69 of file nations.hpp.

◆ no_adjacent_controlled

dcon::modifier_id nations::global_national_state::no_adjacent_controlled

Definition at line 94 of file nations.hpp.

◆ non_coastal

dcon::modifier_id nations::global_national_state::non_coastal

Definition at line 89 of file nations.hpp.

◆ num_allocated_global_flags

int32_t nations::global_national_state::num_allocated_global_flags = 0

Definition at line 123 of file nations.hpp.

◆ num_allocated_national_flags

int32_t nations::global_national_state::num_allocated_national_flags = 0

Definition at line 122 of file nations.hpp.

◆ num_allocated_national_variables

int32_t nations::global_national_state::num_allocated_national_variables = 0

Definition at line 121 of file nations.hpp.

◆ occupied

dcon::modifier_id nations::global_national_state::occupied

Definition at line 97 of file nations.hpp.

◆ on_battle_lost

std::vector<fixed_province_event> nations::global_national_state::on_battle_lost

Definition at line 138 of file nations.hpp.

◆ on_battle_won

std::vector<fixed_province_event> nations::global_national_state::on_battle_won

Definition at line 137 of file nations.hpp.

◆ on_civilize

std::vector<fixed_event> nations::global_national_state::on_civilize

Definition at line 149 of file nations.hpp.

◆ on_colony_to_state

std::vector<fixed_event> nations::global_national_state::on_colony_to_state

Definition at line 143 of file nations.hpp.

◆ on_colony_to_state_free_slaves

std::vector<fixed_event> nations::global_national_state::on_colony_to_state_free_slaves

Definition at line 145 of file nations.hpp.

◆ on_crisis_declare_interest

std::vector<fixed_event> nations::global_national_state::on_crisis_declare_interest

Definition at line 151 of file nations.hpp.

◆ on_debtor_default

std::vector<fixed_event> nations::global_national_state::on_debtor_default

Definition at line 146 of file nations.hpp.

◆ on_debtor_default_second

std::vector<fixed_event> nations::global_national_state::on_debtor_default_second

Definition at line 148 of file nations.hpp.

◆ on_debtor_default_small

std::vector<fixed_event> nations::global_national_state::on_debtor_default_small

Definition at line 147 of file nations.hpp.

◆ on_election_finished

std::vector<fixed_event> nations::global_national_state::on_election_finished

Definition at line 153 of file nations.hpp.

◆ on_election_started

std::vector<fixed_event> nations::global_national_state::on_election_started

Definition at line 152 of file nations.hpp.

◆ on_election_tick

std::vector<fixed_election_event> nations::global_national_state::on_election_tick

Definition at line 142 of file nations.hpp.

◆ on_lost_great_nation

std::vector<fixed_event> nations::global_national_state::on_lost_great_nation

Definition at line 141 of file nations.hpp.

◆ on_my_factories_nationalized

std::vector<fixed_event> nations::global_national_state::on_my_factories_nationalized

Definition at line 150 of file nations.hpp.

◆ on_new_great_nation

std::vector<fixed_event> nations::global_national_state::on_new_great_nation

Definition at line 140 of file nations.hpp.

◆ on_quarterly_pulse

std::vector<fixed_event> nations::global_national_state::on_quarterly_pulse

Definition at line 136 of file nations.hpp.

◆ on_state_conquest

std::vector<fixed_event> nations::global_national_state::on_state_conquest

Definition at line 144 of file nations.hpp.

◆ on_surrender

std::vector<fixed_event> nations::global_national_state::on_surrender

Definition at line 139 of file nations.hpp.

◆ on_yearly_pulse

std::vector<fixed_event> nations::global_national_state::on_yearly_pulse

Definition at line 135 of file nations.hpp.

◆ overseas

dcon::modifier_id nations::global_national_state::overseas

Definition at line 87 of file nations.hpp.

◆ peace

dcon::modifier_id nations::global_national_state::peace

Definition at line 104 of file nations.hpp.

◆ plurality

dcon::modifier_id nations::global_national_state::plurality

Definition at line 115 of file nations.hpp.

◆ primary_factory_worker_focus

dcon::national_focus_id nations::global_national_state::primary_factory_worker_focus

Definition at line 130 of file nations.hpp.

◆ rebel_id

dcon::national_identity_id nations::global_national_state::rebel_id

Definition at line 75 of file nations.hpp.

◆ sea_zone

dcon::modifier_id nations::global_national_state::sea_zone

Definition at line 91 of file nations.hpp.

◆ second_power

dcon::modifier_id nations::global_national_state::second_power

Definition at line 111 of file nations.hpp.

◆ secondary_factory_worker_focus

dcon::national_focus_id nations::global_national_state::secondary_factory_worker_focus

Definition at line 131 of file nations.hpp.

◆ soldier_focus

dcon::national_focus_id nations::global_national_state::soldier_focus

Definition at line 127 of file nations.hpp.

◆ total_blockaded

dcon::modifier_id nations::global_national_state::total_blockaded

Definition at line 118 of file nations.hpp.

◆ total_occupation

dcon::modifier_id nations::global_national_state::total_occupation

Definition at line 117 of file nations.hpp.

◆ triggered_modifiers

std::vector<triggered_modifier> nations::global_national_state::triggered_modifiers

Definition at line 67 of file nations.hpp.

◆ unciv_nation

dcon::modifier_id nations::global_national_state::unciv_nation

Definition at line 113 of file nations.hpp.

◆ variable_names

tagged_vector<dcon::text_key, dcon::national_variable_id> nations::global_national_state::variable_names

Definition at line 73 of file nations.hpp.

◆ very_easy_ai

dcon::modifier_id nations::global_national_state::very_easy_ai

Definition at line 81 of file nations.hpp.

◆ very_easy_player

dcon::modifier_id nations::global_national_state::very_easy_player

Definition at line 77 of file nations.hpp.

◆ very_hard_ai

dcon::modifier_id nations::global_national_state::very_hard_ai

Definition at line 84 of file nations.hpp.

◆ very_hard_player

dcon::modifier_id nations::global_national_state::very_hard_player

Definition at line 80 of file nations.hpp.

◆ war

dcon::modifier_id nations::global_national_state::war

Definition at line 103 of file nations.hpp.

◆ war_exhaustion

dcon::modifier_id nations::global_national_state::war_exhaustion

Definition at line 106 of file nations.hpp.


The documentation for this struct was generated from the following files: