Project Alice
|
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) |
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.
bool politics::can_appoint_ruling_party | ( | sys::state & | state, |
dcon::nation_id | nation | ||
) |
Definition at line 51 of file politics.cpp.
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.
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.
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.
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.
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.
void politics::daily_party_loyalty_update | ( | sys::state & | state | ) |
Definition at line 690 of file politics.cpp.
void politics::force_nation_ideology | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::ideology_id | id | ||
) |
Definition at line 422 of file politics.cpp.
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.
float politics::get_economic_reform_multiplier | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 308 of file politics.cpp.
dcon::issue_id politics::get_issue_by_name | ( | sys::state & | state, |
std::string_view | name | ||
) |
Definition at line 83 of file politics.cpp.
float politics::get_military_reform_multiplier | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 293 of file politics.cpp.
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.
dcon::reform_id politics::get_reform_by_name | ( | sys::state & | state, |
std::string_view | name | ||
) |
Definition at line 69 of file politics.cpp.
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.
bool politics::has_elections | ( | sys::state & | state, |
dcon::nation_id | nation | ||
) |
Definition at line 60 of file politics.cpp.
bool politics::is_election_ongoing | ( | sys::state & | state, |
dcon::nation_id | nation | ||
) |
Definition at line 55 of file politics.cpp.
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.
sys::date politics::next_election_date | ( | sys::state & | state, |
dcon::nation_id | nation | ||
) |
Definition at line 64 of file politics.cpp.
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.
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.
float politics::pop_vote_weight | ( | sys::state & | state, |
dcon::pop_id | p, | ||
dcon::nation_id | n | ||
) |
Definition at line 477 of file politics.cpp.
void politics::recalculate_upper_house | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 523 of file politics.cpp.
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.
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.
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.
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.
void politics::start_election | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 732 of file politics.cpp.
void politics::update_displayed_identity | ( | sys::state & | state, |
dcon::nation_id | id | ||
) |
Definition at line 429 of file politics.cpp.
void politics::update_elections | ( | sys::state & | state | ) |
Definition at line 751 of file politics.cpp.
float politics::vote_total | ( | sys::state & | state, |
dcon::nation_id | nation | ||
) |