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

Classes

struct  party_vote
 

Functions

float vote_total (sys::state &state, dcon::nation_id nation)
 
float get_popular_support (sys::state &state, dcon::nation_id nation, dcon::issue_option_id issue_option)
 
float get_voter_support (sys::state &state, dcon::nation_id nation, dcon::issue_option_id issue_option)
 
bool can_appoint_ruling_party (sys::state &state, dcon::nation_id nation)
 
bool is_election_ongoing (sys::state &state, dcon::nation_id nation)
 
bool has_elections (sys::state &state, dcon::nation_id nation)
 
sys::date next_election_date (sys::state &state, dcon::nation_id nation)
 
dcon::reform_id get_reform_by_name (sys::state &state, std::string_view name)
 
dcon::issue_id get_issue_by_name (sys::state &state, std::string_view name)
 
bool reform_is_selected (sys::state &state, dcon::nation_id nation, dcon::reform_option_id reform_option)
 
bool issue_is_selected (sys::state &state, dcon::nation_id nation, dcon::issue_option_id issue_option)
 
bool can_enact_political_reform (sys::state &state, dcon::nation_id nation, dcon::issue_option_id issue_option)
 
bool can_enact_social_reform (sys::state &state, dcon::nation_id n, dcon::issue_option_id o)
 
bool can_enact_military_reform (sys::state &state, dcon::nation_id n, dcon::reform_option_id o)
 
bool can_enact_economic_reform (sys::state &state, dcon::nation_id n, dcon::reform_option_id o)
 
float get_military_reform_multiplier (sys::state &state, dcon::nation_id n)
 
float get_economic_reform_multiplier (sys::state &state, dcon::nation_id n)
 
bool political_party_is_active (sys::state &state, dcon::nation_id n, dcon::political_party_id p)
 
void set_ruling_party (sys::state &state, dcon::nation_id n, dcon::political_party_id p)
 
void force_ruling_party_ideology (sys::state &state, dcon::nation_id n, dcon::ideology_id id)
 
void appoint_ruling_party (sys::state &state, dcon::nation_id n, dcon::political_party_id p)
 
void force_nation_ideology (sys::state &state, dcon::nation_id n, dcon::ideology_id id)
 
void update_displayed_identity (sys::state &state, dcon::nation_id id)
 
void change_government_type (sys::state &state, dcon::nation_id n, dcon::government_type_id new_type)
 
float pop_vote_weight (sys::state &state, dcon::pop_id p, dcon::nation_id n)
 
void recalculate_upper_house (sys::state &state, dcon::nation_id n)
 
void daily_party_loyalty_update (sys::state &state)
 
float party_total_support (sys::state &state, dcon::pop_id pop, dcon::political_party_id par_id, dcon::nation_id nat_id, dcon::province_id prov_id)
 
void start_election (sys::state &state, dcon::nation_id n)
 
void update_elections (sys::state &state)
 
void set_issue_option (sys::state &state, dcon::nation_id n, dcon::issue_option_id opt)
 
void set_reform_option (sys::state &state, dcon::nation_id n, dcon::reform_option_id opt)
 

Function Documentation

◆ appoint_ruling_party()

void politics::appoint_ruling_party ( sys::state state,
dcon::nation_id  n,
dcon::political_party_id  p 
)

Definition at line 364 of file politics.cpp.

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

◆ can_appoint_ruling_party()

bool politics::can_appoint_ruling_party ( sys::state state,
dcon::nation_id  nation 
)

Definition at line 51 of file politics.cpp.

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

◆ can_enact_economic_reform()

bool politics::can_enact_economic_reform ( sys::state state,
dcon::nation_id  n,
dcon::reform_option_id  o 
)

Definition at line 273 of file politics.cpp.

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

◆ can_enact_military_reform()

bool politics::can_enact_military_reform ( sys::state state,
dcon::nation_id  n,
dcon::reform_option_id  o 
)

Definition at line 253 of file politics.cpp.

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

◆ can_enact_political_reform()

bool politics::can_enact_political_reform ( sys::state state,
dcon::nation_id  nation,
dcon::issue_option_id  issue_option 
)

Definition at line 107 of file politics.cpp.

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

◆ can_enact_social_reform()

bool politics::can_enact_social_reform ( sys::state state,
dcon::nation_id  n,
dcon::issue_option_id  o 
)

Definition at line 181 of file politics.cpp.

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

◆ change_government_type()

void politics::change_government_type ( sys::state state,
dcon::nation_id  n,
dcon::government_type_id  new_type 
)

Definition at line 441 of file politics.cpp.

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

◆ daily_party_loyalty_update()

void politics::daily_party_loyalty_update ( sys::state state)

Definition at line 690 of file politics.cpp.

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

◆ force_nation_ideology()

void politics::force_nation_ideology ( sys::state state,
dcon::nation_id  n,
dcon::ideology_id  id 
)

Definition at line 422 of file politics.cpp.

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

◆ force_ruling_party_ideology()

void politics::force_ruling_party_ideology ( sys::state state,
dcon::nation_id  n,
dcon::ideology_id  id 
)

Definition at line 350 of file politics.cpp.

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

◆ get_economic_reform_multiplier()

float politics::get_economic_reform_multiplier ( sys::state state,
dcon::nation_id  n 
)

Definition at line 308 of file politics.cpp.

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

◆ get_issue_by_name()

dcon::issue_id politics::get_issue_by_name ( sys::state state,
std::string_view  name 
)

Definition at line 83 of file politics.cpp.

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

◆ get_military_reform_multiplier()

float politics::get_military_reform_multiplier ( sys::state state,
dcon::nation_id  n 
)

Definition at line 293 of file politics.cpp.

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

◆ get_popular_support()

float politics::get_popular_support ( sys::state state,
dcon::nation_id  nation,
dcon::issue_option_id  issue_option 
)

Definition at line 24 of file politics.cpp.

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

◆ get_reform_by_name()

dcon::reform_id politics::get_reform_by_name ( sys::state state,
std::string_view  name 
)

Definition at line 69 of file politics.cpp.

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

◆ get_voter_support()

float politics::get_voter_support ( sys::state state,
dcon::nation_id  nation,
dcon::issue_option_id  issue_option 
)

Definition at line 33 of file politics.cpp.

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

◆ has_elections()

bool politics::has_elections ( sys::state state,
dcon::nation_id  nation 
)

Definition at line 60 of file politics.cpp.

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

◆ is_election_ongoing()

bool politics::is_election_ongoing ( sys::state state,
dcon::nation_id  nation 
)

Definition at line 55 of file politics.cpp.

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

◆ issue_is_selected()

bool politics::issue_is_selected ( sys::state state,
dcon::nation_id  nation,
dcon::issue_option_id  issue_option 
)

Definition at line 102 of file politics.cpp.

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

◆ next_election_date()

sys::date politics::next_election_date ( sys::state state,
dcon::nation_id  nation 
)

Definition at line 64 of file politics.cpp.

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

◆ party_total_support()

float politics::party_total_support ( sys::state state,
dcon::pop_id  pop,
dcon::political_party_id  par_id,
dcon::nation_id  nat_id,
dcon::province_id  prov_id 
)

Definition at line 702 of file politics.cpp.

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

◆ political_party_is_active()

bool politics::political_party_is_active ( sys::state state,
dcon::nation_id  n,
dcon::political_party_id  p 
)

Definition at line 323 of file politics.cpp.

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

◆ pop_vote_weight()

float politics::pop_vote_weight ( sys::state state,
dcon::pop_id  p,
dcon::nation_id  n 
)

Definition at line 477 of file politics.cpp.

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

◆ recalculate_upper_house()

void politics::recalculate_upper_house ( sys::state state,
dcon::nation_id  n 
)

Definition at line 523 of file politics.cpp.

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

◆ reform_is_selected()

bool politics::reform_is_selected ( sys::state state,
dcon::nation_id  nation,
dcon::reform_option_id  reform_option 
)

Definition at line 97 of file politics.cpp.

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

◆ set_issue_option()

void politics::set_issue_option ( sys::state state,
dcon::nation_id  n,
dcon::issue_option_id  opt 
)

Definition at line 980 of file politics.cpp.

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

◆ set_reform_option()

void politics::set_reform_option ( sys::state state,
dcon::nation_id  n,
dcon::reform_option_id  opt 
)

Definition at line 990 of file politics.cpp.

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

◆ set_ruling_party()

void politics::set_ruling_party ( sys::state state,
dcon::nation_id  n,
dcon::political_party_id  p 
)

Definition at line 333 of file politics.cpp.

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

◆ start_election()

void politics::start_election ( sys::state state,
dcon::nation_id  n 
)

Definition at line 732 of file politics.cpp.

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

◆ update_displayed_identity()

void politics::update_displayed_identity ( sys::state state,
dcon::nation_id  id 
)

Definition at line 429 of file politics.cpp.

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

◆ update_elections()

void politics::update_elections ( sys::state state)

Definition at line 751 of file politics.cpp.

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

◆ vote_total()

float politics::vote_total ( sys::state state,
dcon::nation_id  nation 
)

Definition at line 11 of file politics.cpp.

Here is the caller graph for this function: