Project Alice
Loading...
Searching...
No Matches
politics.cpp File Reference
#include "politics.hpp"
#include "dcon_generated.hpp"
#include "demographics.hpp"
#include "effects.hpp"
#include "prng.hpp"
#include "province_templates.hpp"
#include "triggers.hpp"
Include dependency graph for politics.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  politics::party_vote
 

Namespaces

namespace  politics
 

Functions

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