Project Alice
|
Go to the source code of this file.
Classes | |
struct | nations::triggered_modifier |
struct | nations::fixed_event |
struct | nations::fixed_election_event |
struct | nations::fixed_province_event |
struct | nations::global_national_state |
Namespaces | |
namespace | nations |
namespace | nations::influence |
Enumerations | |
enum class | nations::focus_type : uint8_t { nations::unknown = 0 , nations::rail_focus = 1 , nations::immigration_focus = 2 , nations::diplomatic_focus = 3 , nations::promotion_focus = 4 , nations::production_focus = 5 , nations::party_loyalty_focus = 6 , nations::policy_focus = 7 , nations::tier_1_focus = 8 , nations::tier_2_focus = 9 , nations::tier_3_focus = 10 , nations::tier_4_focus = 11 , nations::tier_5_focus = 12 , nations::tier_6_focus = 13 , nations::tier_7_focus = 14 , nations::tier_8_focus = 15 , nations::building_focus = 16 , nations::population_focus = 17 , nations::heavy_industry_focus = 18 , nations::consumer_goods_focus = 19 , nations::military_goods_focus = 20 , nations::immigration_colonization_focus = 21 } |
enum class | nations::status : uint8_t { nations::great_power , nations::secondary_power , nations::civilized , nations::westernizing , nations::uncivilized , nations::primitive } |
Functions | |
uint32_t | nations::tag_to_int (char first, char second, char third) |
std::string | nations::int_to_tag (uint32_t v) |
uint8_t | nations::influence::increase_level (uint8_t v) |
uint8_t | nations::influence::decrease_level (uint8_t v) |
uint8_t | nations::influence::increase_priority (uint8_t v) |
uint8_t | nations::influence::decrease_priority (uint8_t v) |
bool | nations::influence::is_influence_level_greater (int32_t l, int32_t r) |
bool | nations::influence::is_influence_level_greater_or_equal (int32_t l, int32_t r) |
int32_t | nations::influence::get_level (sys::state &state, dcon::nation_id gp, dcon::nation_id target) |
dcon::nation_id | nations::get_nth_great_power (sys::state const &state, uint16_t n) |
dcon::nation_id | nations::owner_of_pop (sys::state const &state, dcon::pop_id pop_ids) |
bool | nations::can_release_as_vassal (sys::state const &state, dcon::nation_id n, dcon::national_identity_id releasable) |
bool | nations::identity_has_holder (sys::state const &state, dcon::national_identity_id ident) |
dcon::nation_id | nations::get_relationship_partner (sys::state const &state, dcon::diplomatic_relation_id rel_id, dcon::nation_id query) |
void | nations::update_cached_values (sys::state &state) |
void | nations::restore_unsaved_values (sys::state &state) |
void | nations::restore_state_instances (sys::state &state) |
void | nations::generate_initial_state_instances (sys::state &state) |
dcon::text_key | nations::name_from_tag (sys::state &state, dcon::national_identity_id tag) |
void | nations::update_administrative_efficiency (sys::state &state) |
float | nations::daily_research_points (sys::state &state, dcon::nation_id n) |
void | nations::update_research_points (sys::state &state) |
void | nations::update_industrial_scores (sys::state &state) |
void | nations::update_military_scores (sys::state &state) |
void | nations::update_rankings (sys::state &state) |
void | nations::update_ui_rankings (sys::state &state) |
bool | nations::is_great_power (sys::state const &state, dcon::nation_id id) |
float | nations::prestige_score (sys::state const &state, dcon::nation_id n) |
status | nations::get_status (sys::state &state, dcon::nation_id n) |
sys::date | nations::get_research_end_date (sys::state &state, dcon::technology_id tech_id, dcon::nation_id n) |
dcon::technology_id | nations::current_research (sys::state const &state, dcon::nation_id n) |
float | nations::suppression_points (sys::state const &state, dcon::nation_id n) |
float | nations::diplomatic_points (sys::state const &state, dcon::nation_id n) |
float | nations::monthly_diplomatic_points (sys::state const &state, dcon::nation_id n) |
float | nations::leadership_points (sys::state const &state, dcon::nation_id n) |
float | nations::get_treasury (sys::state &state, dcon::nation_id n) |
float | nations::get_bank_funds (sys::state &state, dcon::nation_id n) |
float | nations::get_debt (sys::state &state, dcon::nation_id n) |
float | nations::tariff_efficiency (sys::state &state, dcon::nation_id n) |
float | nations::tax_efficiency (sys::state &state, dcon::nation_id n) |
float | nations::colonial_points_from_naval_bases (sys::state &state, dcon::nation_id n) |
float | nations::colonial_points_from_ships (sys::state &state, dcon::nation_id n) |
float | nations::colonial_points_from_technology (sys::state &state, dcon::nation_id n) |
float | nations::used_colonial_points (sys::state &state, dcon::nation_id n) |
int32_t | nations::free_colonial_points (sys::state &state, dcon::nation_id n) |
int32_t | nations::max_colonial_points (sys::state &state, dcon::nation_id n) |
uint32_t | nations::get_total_pop_in_owned_provinces (sys::state &state, dcon::nation_id n) |
bool | nations::has_political_reform_available (sys::state &state, dcon::nation_id n) |
bool | nations::has_social_reform_available (sys::state &state, dcon::nation_id n) |
bool | nations::has_reform_available (sys::state &state, dcon::nation_id n) |
bool | nations::has_decision_available (sys::state &state, dcon::nation_id n) |
int32_t | nations::max_national_focuses (sys::state &state, dcon::nation_id n) |
int32_t | nations::national_focuses_in_use (sys::state &state, dcon::nation_id n) |
bool | nations::can_expand_colony (sys::state &state, dcon::nation_id n) |
bool | nations::is_losing_colonial_race (sys::state &state, dcon::nation_id n) |
bool | nations::sphereing_progress_is_possible (sys::state &state, dcon::nation_id n) |
bool | nations::is_involved_in_crisis (sys::state const &state, dcon::nation_id n) |
bool | nations::is_committed_in_crisis (sys::state const &state, dcon::nation_id n) |
bool | nations::can_put_flashpoint_focus_in_state (sys::state &state, dcon::state_instance_id s, dcon::nation_id fp_nation) |
int64_t | nations::get_monthly_pop_increase_of_nation (sys::state &state, dcon::nation_id n) |
bool | nations::can_accumulate_influence_with (sys::state &state, dcon::nation_id gp, dcon::nation_id target, dcon::gp_relationship_id rel) |
bool | nations::are_allied (sys::state &state, dcon::nation_id a, dcon::nation_id b) |
bool | nations::is_landlocked (sys::state &state, dcon::nation_id n) |
bool | nations::nth_crisis_war_goal_is_for_attacker (sys::state &state, int32_t index) |
military::full_wg | nations::get_nth_crisis_war_goal (sys::state &state, int32_t index) |
int32_t | nations::num_crisis_wargoals (sys::state &state) |
void | nations::get_active_political_parties (sys::state &state, dcon::nation_id n, std::vector< dcon::political_party_id > &parties) |
void | nations::update_monthly_points (sys::state &state) |
void | nations::adjust_relationship (sys::state &state, dcon::nation_id a, dcon::nation_id b, float delta) |
void | nations::create_nation_based_on_template (sys::state &state, dcon::nation_id n, dcon::nation_id base) |
void | nations::cleanup_nation (sys::state &state, dcon::nation_id n) |
void | nations::adjust_prestige (sys::state &state, dcon::nation_id n, float delta) |
void | nations::destroy_diplomatic_relationships (sys::state &state, dcon::nation_id n) |
void | nations::release_vassal (sys::state &state, dcon::overlord_id rel) |
void | nations::make_vassal (sys::state &state, dcon::nation_id subject, dcon::nation_id overlord) |
void | nations::make_substate (sys::state &state, dcon::nation_id subject, dcon::nation_id overlord) |
void | nations::break_alliance (sys::state &state, dcon::diplomatic_relation_id rel) |
void | nations::break_alliance (sys::state &state, dcon::nation_id a, dcon::nation_id b) |
void | nations::make_alliance (sys::state &state, dcon::nation_id a, dcon::nation_id b) |
void | nations::adjust_influence (sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta) |
void | nations::adjust_influence_with_overflow (sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta) |
void | nations::adjust_foreign_investment (sys::state &state, dcon::nation_id great_power, dcon::nation_id target, float delta) |
void | nations::enact_issue (sys::state &state, dcon::nation_id source, dcon::issue_option_id i) |
void | nations::enact_reform (sys::state &state, dcon::nation_id source, dcon::reform_option_id r) |
float | nations::get_foreign_investment (sys::state &state, dcon::nation_id n) |
float | nations::get_foreign_investment_as_gp (sys::state &state, dcon::nation_id n) |
float | nations::get_base_shares (sys::state &state, dcon::gp_relationship_id gp, float total_gain, int32_t total_influence_shares) |
bool | nations::has_sphere_neighbour (sys::state &state, dcon::nation_id n, dcon::nation_id target) |
void | nations::update_great_powers (sys::state &state) |
void | nations::update_influence (sys::state &state) |
void | nations::update_revanchism (sys::state &state) |
void | nations::monthly_flashpoint_update (sys::state &state) |
void | nations::daily_update_flashpoint_tension (sys::state &state) |
void | nations::update_crisis (sys::state &state) |
void | nations::add_as_primary_crisis_defender (sys::state &state, dcon::nation_id n) |
void | nations::add_as_primary_crisis_attacker (sys::state &state, dcon::nation_id n) |
void | nations::reject_crisis_participation (sys::state &state) |
void | nations::cleanup_crisis (sys::state &state) |
void | nations::cleanup_crisis_peace_offer (sys::state &state, dcon::peace_offer_id peace) |
void | nations::accept_crisis_peace_offer (sys::state &state, dcon::nation_id from, dcon::nation_id to, dcon::peace_offer_id peace) |
void | nations::update_pop_acceptance (sys::state &state, dcon::nation_id n) |
void | nations::liberate_nation_from (sys::state &state, dcon::national_identity_id liberated, dcon::nation_id from) |
void | nations::release_nation_from (sys::state &state, dcon::national_identity_id liberated, dcon::nation_id from) |
void | nations::remove_cores_from_owned (sys::state &state, dcon::nation_id n, dcon::national_identity_id tag) |
void | nations::perform_nationalization (sys::state &state, dcon::nation_id n) |
float | nations::get_yesterday_income (sys::state &state, dcon::nation_id n) |
void | nations::make_civilized (sys::state &state, dcon::nation_id n) |
void | nations::make_uncivilized (sys::state &state, dcon::nation_id n) |
void | nations::run_gc (sys::state &state) |
Variables | |
constexpr uint8_t | nations::influence::level_mask = uint8_t(0x07) |
constexpr uint8_t | nations::influence::level_neutral = uint8_t(0x00) |
constexpr uint8_t | nations::influence::level_opposed = uint8_t(0x01) |
constexpr uint8_t | nations::influence::level_hostile = uint8_t(0x02) |
constexpr uint8_t | nations::influence::level_cordial = uint8_t(0x03) |
constexpr uint8_t | nations::influence::level_friendly = uint8_t(0x04) |
constexpr uint8_t | nations::influence::level_in_sphere = uint8_t(0x05) |
constexpr uint8_t | nations::influence::priority_mask = uint8_t(0x18) |
constexpr uint8_t | nations::influence::priority_zero = uint8_t(0x00) |
constexpr uint8_t | nations::influence::priority_one = uint8_t(0x08) |
constexpr uint8_t | nations::influence::priority_two = uint8_t(0x10) |
constexpr uint8_t | nations::influence::priority_three = uint8_t(0x18) |
constexpr uint8_t | nations::influence::is_discredited = uint8_t(0x40) |
constexpr uint8_t | nations::influence::is_banned = uint8_t(0x80) |