Project Alice
|
Classes | |
struct | building_information |
struct | commodity_profit_holder |
struct | commodity_set |
struct | construction_status |
struct | full_construction_province |
struct | full_construction_state |
struct | global_economy_state |
struct | nation_enriched_float |
struct | new_factory |
struct | profit_distribution |
struct | rgo_workers_breakdown |
struct | small_commodity_set |
struct | trade_and_tariff |
struct | trade_breakdown_item |
struct | trade_volume_data_detailed |
struct | upgraded_factory |
Enumerations | |
enum class | province_building_type : uint8_t { railroad , fort , naval_base , bank , university , last , factory , province_selector , province_immigrator } |
enum class | economy_reason { pop , factory , rgo , artisan , construction , nation , stockpile , overseas_penalty , trade } |
enum | commodity_production_type { primary , derivative , both } |
enum class | worker_effect : uint8_t { none = 0 , input , output , throughput } |
Functions | |
float | pop_min_wage_factor (sys::state &state, dcon::nation_id n) |
template<typename T > | |
ve::fp_vector | ve_pop_min_wage_factor (sys::state &state, T n) |
template<typename T > | |
ve::fp_vector | ve_artisan_min_wage (sys::state &state, T markets) |
template<typename T > | |
ve::fp_vector | ve_farmer_min_wage (sys::state &state, T markets, ve::fp_vector min_wage_factor) |
template<typename T > | |
ve::fp_vector | unskilled_labor_supply_multiplier (sys::state &state, T markets) |
template<typename T > | |
ve::fp_vector | skilled_labor_supply_multiplier (sys::state &state, T markets) |
float | unskilled_labor_supply_multiplier (sys::state &state, dcon::market_id markets) |
float | skilled_labor_supply_multiplier (sys::state &state, dcon::market_id markets) |
template<typename T > | |
ve::fp_vector | ve_laborer_min_wage (sys::state &state, T markets, ve::fp_vector min_wage_factor) |
float | farmer_min_wage (sys::state &state, dcon::market_id m, float min_wage_factor) |
float | laborer_min_wage (sys::state &state, dcon::market_id m, float min_wage_factor) |
float | expected_savings_per_capita (sys::state &state) |
void | sanity_check (sys::state &state) |
float | price (sys::state const &state, dcon::state_instance_id s, dcon::commodity_id c) |
float | price (sys::state const &state, dcon::nation_id s, dcon::commodity_id c) |
float | price (sys::state &state, dcon::commodity_id c) |
template<typename T > | |
ve::fp_vector | ve_price (sys::state const &state, T s, dcon::commodity_id c) |
float | price (sys::state const &state, dcon::market_id s, dcon::commodity_id c) |
float | supply (sys::state &state, dcon::market_id s, dcon::commodity_id c) |
float | supply (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
float | domestic_trade_volume (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
float | supply (sys::state &state, dcon::commodity_id c) |
float | demand (sys::state &state, dcon::market_id s, dcon::commodity_id c) |
float | demand (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
float | demand (sys::state &state, dcon::commodity_id c) |
float | consumption (sys::state &state, dcon::market_id s, dcon::commodity_id c) |
float | consumption (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
float | consumption (sys::state &state, dcon::commodity_id c) |
float | market_pool (sys::state &state, dcon::market_id s, dcon::commodity_id c) |
float | market_pool (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
float | market_pool (sys::state &state, dcon::commodity_id c) |
float | demand_satisfaction (sys::state &state, dcon::market_id s, dcon::commodity_id c) |
float | demand_satisfaction (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
float | demand_satisfaction (sys::state &state, dcon::commodity_id c) |
float | average_capitalists_luxury_cost (sys::state &state, dcon::nation_id s) |
float | export_volume (sys::state &state, dcon::market_id s, dcon::commodity_id c) |
float | export_volume (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
trade_volume_data_detailed | export_volume_detailed (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
float | import_volume (sys::state &state, dcon::market_id s, dcon::commodity_id c) |
float | import_volume (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
trade_volume_data_detailed | import_volume_detailed (sys::state &state, dcon::nation_id s, dcon::commodity_id c) |
void | register_demand (sys::state &state, dcon::market_id s, dcon::commodity_id commodity_type, float amount, economy_reason reason) |
template<typename T > | |
void | register_demand (sys::state &state, T s, dcon::commodity_id commodity_type, ve::fp_vector amount, economy_reason reason) |
template<typename T > | |
void | register_intermediate_demand (sys::state &state, T s, dcon::commodity_id c, ve::fp_vector amount, economy_reason reason) |
void | register_construction_demand (sys::state &state, dcon::market_id s, dcon::commodity_id commodity_type, float amount) |
void | register_domestic_supply (sys::state &state, dcon::market_id s, dcon::commodity_id commodity_type, float amount, economy_reason reason) |
void | register_foreign_supply (sys::state &state, dcon::market_id s, dcon::commodity_id commodity_type, float amount, economy_reason reason) |
template<typename T > | |
void | register_domestic_supply (sys::state &state, T s, dcon::commodity_id commodity_type, ve::fp_vector amount, economy_reason reason) |
template void | for_each_new_factory< std::function< void(new_factory)> > (sys::state &, dcon::state_instance_id, std::function< void(new_factory)> &&) |
template void | for_each_upgraded_factory< std::function< void(upgraded_factory)> > (sys::state &, dcon::state_instance_id, std::function< void(upgraded_factory)> &&) |
bool | can_take_loans (sys::state &state, dcon::nation_id n) |
float | interest_payment (sys::state &state, dcon::nation_id n) |
float | max_loan (sys::state &state, dcon::nation_id n) |
int32_t | most_recent_price_record_index (sys::state &state) |
int32_t | previous_price_record_index (sys::state &state) |
int32_t | most_recent_gdp_record_index (sys::state &state) |
int32_t | previous_gdp_record_index (sys::state &state) |
float | ideal_pound_conversion_rate (sys::state &state, dcon::market_id n) |
float | gdp_adjusted (sys::state &state, dcon::market_id n) |
float | gdp_adjusted (sys::state &state, dcon::nation_id n) |
float | full_spending_cost (sys::state &state, dcon::nation_id n) |
void | populate_army_consumption (sys::state &state) |
void | populate_navy_consumption (sys::state &state) |
void | populate_construction_consumption (sys::state &state) |
float | commodity_daily_production_amount (sys::state &state, dcon::commodity_id c) |
float | stockpile_commodity_daily_increase (sys::state &state, dcon::commodity_id c, dcon::nation_id n) |
float | global_market_commodity_daily_increase (sys::state &state, dcon::commodity_id c) |
std::vector< dcon::factory_type_id > | commodity_get_factory_types_as_output (sys::state const &state, dcon::commodity_id output_good) |
bool | has_factory (sys::state const &state, dcon::state_instance_id si) |
void | initialize_artisan_distribution (sys::state &state) |
bool | valid_need (sys::state &state, dcon::nation_id n, dcon::commodity_id c) |
template<typename T > | |
ve::mask_vector | valid_need (sys::state &state, T n, dcon::commodity_id c) |
bool | valid_life_need (sys::state &state, dcon::nation_id n, dcon::commodity_id c) |
bool | valid_everyday_need (sys::state &state, dcon::nation_id n, dcon::commodity_id c) |
bool | valid_luxury_need (sys::state &state, dcon::nation_id n, dcon::commodity_id c) |
void | initialize_needs_weights (sys::state &state, dcon::market_id n) |
float | need_weight (sys::state &state, dcon::market_id n, dcon::commodity_id c) |
void | rebalance_needs_weights (sys::state &state, dcon::market_id n) |
void | convert_commodities_into_ingredients (sys::state &state, std::vector< float > &buffer_commodities, std::vector< float > &buffer_ingredients, std::vector< float > &buffer_weights) |
void | presimulate (sys::state &state) |
bool | has_building (sys::state const &state, dcon::state_instance_id si, dcon::factory_type_id fac) |
bool | is_bankrupt_debtor_to (sys::state &state, dcon::nation_id debt_holder, dcon::nation_id debtor) |
bool | nation_is_constructing_factories (sys::state &state, dcon::nation_id n) |
bool | nation_has_closed_factories (sys::state &state, dcon::nation_id n) |
template<typename T > | |
auto | artisan_input_multiplier (sys::state &state, T nations) |
template<typename T > | |
auto | artisan_output_multiplier (sys::state &state, T nations) |
template<typename T > | |
auto | artisan_throughput_multiplier (sys::state &state, T nations) |
template<typename T , typename S > | |
ve::fp_vector | base_artisan_profit (sys::state &state, T markets, S nations, dcon::commodity_id c) |
float | base_artisan_profit (sys::state &state, dcon::market_id market, dcon::commodity_id c) |
template<typename T > | |
ve::mask_vector | ve_valid_artisan_good (sys::state &state, T nations, dcon::commodity_id cid) |
bool | valid_artisan_good (sys::state &state, dcon::nation_id nations, dcon::commodity_id cid) |
float | pseudo_exp_for_negative (float f) |
ve::fp_vector | ve_pseudo_exp_for_negative (ve::fp_vector f) |
template<typename T , typename S > | |
void | adjust_artisan_balance (sys::state &state, T markets, S nations) |
void | initialize (sys::state &state) |
float | sphere_leader_share_factor (sys::state &state, dcon::nation_id sphere_leader, dcon::nation_id sphere_member) |
float | effective_tariff_import_rate (sys::state &state, dcon::nation_id n) |
float | effective_tariff_export_rate (sys::state &state, dcon::nation_id n) |
void | update_factory_triggered_modifiers (sys::state &state) |
float | subsistence_size (sys::state const &state, dcon::province_id p) |
float | rgo_effective_size (sys::state const &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c) |
float | rgo_total_effective_size (sys::state &state, dcon::nation_id n, dcon::province_id p) |
float | subsistence_max_pseudoemployment (sys::state &state, dcon::nation_id n, dcon::province_id p) |
float | rgo_total_employment (sys::state &state, dcon::nation_id n, dcon::province_id p) |
float | rgo_max_employment (sys::state &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c) |
float | rgo_total_max_employment (sys::state &state, dcon::nation_id n, dcon::province_id p) |
void | update_local_subsistence_factor (sys::state &state) |
float | adjusted_subsistence_score (sys::state &state, dcon::province_id p) |
template<typename T > | |
ve::fp_vector | ve_adjusted_subsistence_score (sys::state &state, T p) |
void | update_land_ownership (sys::state &state) |
int32_t | factory_priority (sys::state const &state, dcon::factory_id f) |
void | set_factory_priority (sys::state &state, dcon::factory_id f, int32_t priority) |
bool | factory_is_profitable (sys::state const &state, dcon::factory_id f) |
void | update_rgo_employment (sys::state &state) |
float | factory_max_employment (sys::state const &state, dcon::factory_id f) |
float | factory_primary_employment (sys::state const &state, dcon::factory_id f) |
float | factory_secondary_employment (sys::state const &state, dcon::factory_id f) |
float | factory_total_employment (sys::state const &state, dcon::factory_id f) |
void | update_factory_employment (sys::state &state) |
float | rgo_efficiency (sys::state &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c) |
float | rgo_full_production_quantity (sys::state &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c) |
float | factory_min_input_available (sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type) |
float | factory_input_total_cost (sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type) |
float | factory_min_e_input_available (sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type) |
float | factory_e_input_total_cost (sys::state const &state, dcon::market_id m, dcon::factory_type_id fac_type) |
float | priority_multiplier (sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n) |
float | nation_factory_input_multiplier (sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n) |
float | nation_factory_output_multiplier (sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n) |
float | factory_input_multiplier (sys::state const &state, dcon::factory_id fac, dcon::nation_id n, dcon::province_id p, dcon::state_instance_id s) |
float | factory_throughput_multiplier (sys::state const &state, dcon::factory_type_id fac_type, dcon::nation_id n, dcon::province_id p, dcon::state_instance_id s) |
float | factory_output_multiplier_no_secondary_workers (sys::state const &state, dcon::factory_id fac, dcon::nation_id n, dcon::province_id p) |
float | factory_output_multiplier (sys::state const &state, dcon::factory_id fac, dcon::nation_id n, dcon::market_id m, dcon::province_id p) |
float | factory_max_production_scale_non_modified (sys::state const &state, dcon::factory_fat_id fac) |
float | factory_max_production_scale (sys::state const &state, dcon::factory_id fac, float mobilization_impact, bool occupied) |
float | factory_desired_raw_profit (dcon::factory_id fac, float spendings) |
void | update_single_factory_consumption (sys::state &state, dcon::factory_id f, dcon::province_id p, dcon::state_instance_id s, dcon::market_id m, dcon::nation_id n, float mobilization_impact, bool occupied) |
void | update_single_factory_production (sys::state &state, dcon::factory_id f, dcon::market_id m, dcon::nation_id n) |
rgo_workers_breakdown | rgo_relevant_population (sys::state &state, dcon::province_id p, dcon::nation_id n) |
float | rgo_desired_worker_norm_profit (sys::state &state, dcon::province_id p, dcon::market_id m, dcon::nation_id n, float min_wage, float total_relevant_population) |
float | rgo_expected_worker_norm_profit (sys::state &state, dcon::province_id p, dcon::market_id m, dcon::nation_id n, dcon::commodity_id c) |
float | convex_function (float x) |
void | update_province_rgo_employment (sys::state &state, dcon::province_id p, dcon::market_id m, dcon::nation_id n, float mobilization_impact, float expected_min_wage) |
void | update_province_rgo_production (sys::state &state, dcon::province_id p, dcon::market_id m, dcon::nation_id n) |
template<typename T , typename S , typename U > | |
void | update_artisan_consumption (sys::state &state, T markets, S nations, U states, ve::fp_vector expected_min_wage, ve::fp_vector mobilization_impact) |
template<typename T > | |
void | update_market_artisan_production (sys::state &state, T markets) |
float | global_non_factory_construction_time_modifier (sys::state &state) |
float | global_factory_construction_time_modifier (sys::state &state) |
float | estimate_construction_spending_from_budget (sys::state &state, dcon::nation_id n, float current_budget) |
float | estimate_construction_spending (sys::state &state, dcon::nation_id n) |
float | estimate_private_construction_spendings (sys::state &state, dcon::nation_id nid) |
void | populate_private_construction_consumption (sys::state &state) |
float | estimate_stockpile_filling_spending (sys::state &state, dcon::nation_id n) |
float | estimate_overseas_penalty_spending (sys::state &state, dcon::nation_id n) |
float | full_private_investment_cost (sys::state &state, dcon::nation_id n) |
void | update_national_consumption (sys::state &state, dcon::nation_id n, float spending_scale, float private_investment_scale) |
void | update_pop_consumption (sys::state &state, ve::vectorizable_buffer< float, dcon::nation_id > &invention_count) |
void | advance_construction (sys::state &state, dcon::nation_id n) |
profit_distribution | distribute_factory_profit (sys::state const &state, dcon::state_instance_const_fat_id s, float total_profit) |
void | emulate_construction_demand (sys::state &state, dcon::nation_id n) |
std::vector< full_construction_state > | estimate_private_investment_upgrade (sys::state &state, dcon::nation_id nid) |
std::vector< full_construction_state > | estimate_private_investment_construct (sys::state &state, dcon::nation_id nid, bool craved) |
std::vector< full_construction_province > | estimate_private_investment_province (sys::state &state, dcon::nation_id nid) |
void | run_private_investment (sys::state &state) |
void | daily_update (sys::state &state, bool presimulation, float presimulation_stage) |
void | regenerate_unsaved_values (sys::state &state) |
float | government_consumption (sys::state &state, dcon::nation_id n, dcon::commodity_id c) |
float | factory_type_build_cost (sys::state &state, dcon::nation_id n, dcon::market_id m, dcon::factory_type_id factory_type) |
float | factory_type_output_cost (sys::state &state, dcon::nation_id n, dcon::market_id m, dcon::factory_type_id factory_type) |
float | factory_type_input_cost (sys::state &state, dcon::nation_id n, dcon::market_id m, dcon::factory_type_id factory_type) |
float | nation_factory_consumption (sys::state &state, dcon::nation_id n, dcon::commodity_id c) |
float | nation_pop_consumption (sys::state &state, dcon::nation_id n, dcon::commodity_id c) |
float | nation_total_imports (sys::state &state, dcon::nation_id n) |
float | nation_total_exports (sys::state &state, dcon::nation_id n) |
float | pop_income (sys::state &state, dcon::pop_id p) |
trade_and_tariff | explain_trade_route_commodity (sys::state &state, dcon::trade_route_id trade_route, dcon::commodity_id cid) |
std::vector< trade_breakdown_item > | explain_national_tariff (sys::state &state, dcon::nation_id n, bool import_flag, bool export_flag) |
float | estimate_gold_income (sys::state &state, dcon::nation_id n) |
float | estimate_tariff_import_income (sys::state &state, dcon::nation_id n) |
float | estimate_tariff_export_income (sys::state &state, dcon::nation_id n) |
float | estimate_social_spending (sys::state &state, dcon::nation_id n) |
float | estimate_pop_payouts_by_income_type (sys::state &state, dcon::nation_id n, culture::income_type in) |
float | estimate_tax_income_by_strata (sys::state &state, dcon::nation_id n, culture::pop_strata ps) |
float | estimate_subsidy_spending (sys::state &state, dcon::nation_id n) |
float | estimate_war_subsidies_income (sys::state &state, dcon::nation_id n) |
float | estimate_reparations_income (sys::state &state, dcon::nation_id n) |
float | estimate_war_subsidies_spending (sys::state &state, dcon::nation_id n) |
float | estimate_reparations_spending (sys::state &state, dcon::nation_id n) |
float | estimate_diplomatic_balance (sys::state &state, dcon::nation_id n) |
float | estimate_diplomatic_income (sys::state &state, dcon::nation_id n) |
float | estimate_diplomatic_expenses (sys::state &state, dcon::nation_id n) |
float | estimate_domestic_investment (sys::state &state, dcon::nation_id n) |
float | estimate_land_spending (sys::state &state, dcon::nation_id n) |
float | estimate_naval_spending (sys::state &state, dcon::nation_id n) |
float | estimate_war_subsidies (sys::state &state, dcon::nation_fat_id target, dcon::nation_fat_id source) |
float | estimate_subject_payments_paid (sys::state &state, dcon::nation_id n) |
float | estimate_subject_payments_received (sys::state &state, dcon::nation_id o) |
construction_status | province_building_construction (sys::state &state, dcon::province_id p, province_building_type t) |
construction_status | factory_upgrade (sys::state &state, dcon::factory_id f) |
bool | state_contains_constructed_factory (sys::state &state, dcon::state_instance_id s, dcon::factory_type_id ft) |
bool | state_contains_factory (sys::state &state, dcon::state_instance_id s, dcon::factory_type_id ft) |
int32_t | state_factory_count (sys::state &state, dcon::state_instance_id sid, dcon::nation_id n) |
float | unit_construction_progress (sys::state &state, dcon::province_land_construction_id c) |
float | unit_construction_progress (sys::state &state, dcon::province_naval_construction_id c) |
void | add_factory_level_to_state (sys::state &state, dcon::state_instance_id s, dcon::factory_type_id t, bool is_upgrade) |
void | resolve_constructions (sys::state &state) |
float | estimate_daily_income (sys::state &state, dcon::nation_id n) |
void | try_add_factory_to_state (sys::state &state, dcon::state_instance_id s, dcon::factory_type_id t) |
command::budget_settings_data | budget_minimums (sys::state &state, dcon::nation_id n) |
command::budget_settings_data | budget_maximums (sys::state &state, dcon::nation_id n) |
void | bound_budget_settings (sys::state &state, dcon::nation_id n) |
void | prune_factories (sys::state &state) |
dcon::modifier_id | get_province_selector_modifier (sys::state &state) |
dcon::modifier_id | get_province_immigrator_modifier (sys::state &state) |
void | go_bankrupt (sys::state &state, dcon::nation_id n) |
float | estimate_investment_pool_daily_loss (sys::state &state, dcon::nation_id n) |
std::string_view | province_building_type_get_name (economy::province_building_type v) |
std::string_view | province_building_type_get_level_text (economy::province_building_type v) |
template<typename T > | |
auto | desired_needs_spending (sys::state const &state, T pop_indices) |
constexpr dcon::commodity_id | money (0) |
ve::fp_vector | price (sys::state const &state, ve::tagged_vector< dcon::market_id > s, dcon::commodity_id c) |
float | rgo_full_production_quantity (sys::state const &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c) |
ve::fp_vector | base_artisan_profit (sys::state &state, ve::tagged_vector< dcon::market_id > markets, ve::tagged_vector< dcon::nation_id > nations, dcon::commodity_id c) |
template<typename F > | |
void | for_each_new_factory (sys::state &state, dcon::state_instance_id s, F &&func) |
template<typename F > | |
void | for_each_upgraded_factory (sys::state &state, dcon::state_instance_id s, F &&func) |
Enumerator | |
---|---|
primary | |
derivative | |
both |
Definition at line 9 of file economy.hpp.
|
strong |
Enumerator | |
---|---|
pop | |
factory | |
rgo | |
artisan | |
construction | |
nation | |
stockpile | |
overseas_penalty | |
trade |
Definition at line 119 of file economy.cpp.
|
strong |
Enumerator | |
---|---|
railroad | |
fort | |
naval_base | |
bank | |
university | |
last | |
factory | |
province_selector | |
province_immigrator |
Definition at line 578 of file constants.hpp.
|
strong |
Enumerator | |
---|---|
none | |
input | |
output | |
throughput |
Definition at line 108 of file economy.hpp.
void economy::add_factory_level_to_state | ( | sys::state & | state, |
dcon::state_instance_id | s, | ||
dcon::factory_type_id | t, | ||
bool | is_upgrade | ||
) |
Definition at line 8399 of file economy.cpp.
void economy::adjust_artisan_balance | ( | sys::state & | state, |
T | markets, | ||
S | nations | ||
) |
Definition at line 1372 of file economy.cpp.
float economy::adjusted_subsistence_score | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
Definition at line 1852 of file economy.cpp.
void economy::advance_construction | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 4544 of file economy.cpp.
auto economy::artisan_input_multiplier | ( | sys::state & | state, |
T | nations | ||
) |
Definition at line 1205 of file economy.cpp.
auto economy::artisan_output_multiplier | ( | sys::state & | state, |
T | nations | ||
) |
Definition at line 1221 of file economy.cpp.
auto economy::artisan_throughput_multiplier | ( | sys::state & | state, |
T | nations | ||
) |
Definition at line 1237 of file economy.cpp.
float economy::average_capitalists_luxury_cost | ( | sys::state & | state, |
dcon::nation_id | s | ||
) |
float economy::base_artisan_profit | ( | sys::state & | state, |
dcon::market_id | market, | ||
dcon::commodity_id | c | ||
) |
ve::fp_vector economy::base_artisan_profit | ( | sys::state & | state, |
T | markets, | ||
S | nations, | ||
dcon::commodity_id | c | ||
) |
Definition at line 1249 of file economy.cpp.
ve::fp_vector economy::base_artisan_profit | ( | sys::state & | state, |
ve::tagged_vector< dcon::market_id > | markets, | ||
ve::tagged_vector< dcon::nation_id > | nations, | ||
dcon::commodity_id | c | ||
) |
void economy::bound_budget_settings | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8812 of file economy.cpp.
command::budget_settings_data economy::budget_maximums | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8745 of file economy.cpp.
command::budget_settings_data economy::budget_minimums | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8703 of file economy.cpp.
bool economy::can_take_loans | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
float economy::commodity_daily_production_amount | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
Definition at line 867 of file economy.cpp.
std::vector< dcon::factory_type_id > economy::commodity_get_factory_types_as_output | ( | sys::state const & | state, |
dcon::commodity_id | output_good | ||
) |
float economy::consumption | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
Definition at line 348 of file economy.cpp.
float economy::consumption | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
float economy::consumption | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 332 of file economy.cpp.
void economy::convert_commodities_into_ingredients | ( | sys::state & | state, |
std::vector< float > & | buffer_commodities, | ||
std::vector< float > & | buffer_ingredients, | ||
std::vector< float > & | buffer_weights | ||
) |
Definition at line 1065 of file economy.cpp.
float economy::convex_function | ( | float | x | ) |
Definition at line 2780 of file economy.cpp.
void economy::daily_update | ( | sys::state & | state, |
bool | presimulation, | ||
float | presimulation_stage | ||
) |
Definition at line 5363 of file economy.cpp.
float economy::demand | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
Definition at line 305 of file economy.cpp.
float economy::demand | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
float economy::demand | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 290 of file economy.cpp.
float economy::demand_satisfaction | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
float economy::demand_satisfaction | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 395 of file economy.cpp.
float economy::demand_satisfaction | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
auto economy::desired_needs_spending | ( | sys::state const & | state, |
T | pop_indices | ||
) |
profit_distribution economy::distribute_factory_profit | ( | sys::state const & | state, |
dcon::state_instance_const_fat_id | s, | ||
float | total_profit | ||
) |
Definition at line 4747 of file economy.cpp.
float economy::domestic_trade_volume | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 230 of file economy.cpp.
float economy::effective_tariff_export_rate | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1742 of file economy.cpp.
float economy::effective_tariff_import_rate | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1737 of file economy.cpp.
void economy::emulate_construction_demand | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 4805 of file economy.cpp.
float economy::estimate_construction_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 3692 of file economy.cpp.
float economy::estimate_construction_spending_from_budget | ( | sys::state & | state, |
dcon::nation_id | n, | ||
float | current_budget | ||
) |
Definition at line 3433 of file economy.cpp.
float economy::estimate_daily_income | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8660 of file economy.cpp.
float economy::estimate_diplomatic_balance | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8126 of file economy.cpp.
float economy::estimate_diplomatic_expenses | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8138 of file economy.cpp.
float economy::estimate_diplomatic_income | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8132 of file economy.cpp.
float economy::estimate_domestic_investment | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8147 of file economy.cpp.
float economy::estimate_gold_income | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 7942 of file economy.cpp.
float economy::estimate_investment_pool_daily_loss | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8970 of file economy.cpp.
float economy::estimate_land_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8177 of file economy.cpp.
float economy::estimate_naval_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8194 of file economy.cpp.
float economy::estimate_overseas_penalty_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 4041 of file economy.cpp.
float economy::estimate_pop_payouts_by_income_type | ( | sys::state & | state, |
dcon::nation_id | n, | ||
culture::income_type | in | ||
) |
Definition at line 8023 of file economy.cpp.
float economy::estimate_private_construction_spendings | ( | sys::state & | state, |
dcon::nation_id | nid | ||
) |
Definition at line 3701 of file economy.cpp.
std::vector< full_construction_state > economy::estimate_private_investment_construct | ( | sys::state & | state, |
dcon::nation_id | nid, | ||
bool | craved | ||
) |
Definition at line 5051 of file economy.cpp.
std::vector< full_construction_province > economy::estimate_private_investment_province | ( | sys::state & | state, |
dcon::nation_id | nid | ||
) |
Definition at line 5205 of file economy.cpp.
std::vector< full_construction_state > economy::estimate_private_investment_upgrade | ( | sys::state & | state, |
dcon::nation_id | nid | ||
) |
Definition at line 4943 of file economy.cpp.
float economy::estimate_reparations_income | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8081 of file economy.cpp.
float economy::estimate_reparations_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8109 of file economy.cpp.
float economy::estimate_social_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 7990 of file economy.cpp.
float economy::estimate_stockpile_filling_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 4016 of file economy.cpp.
float economy::estimate_subject_payments_paid | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8218 of file economy.cpp.
float economy::estimate_subject_payments_received | ( | sys::state & | state, |
dcon::nation_id | o | ||
) |
Definition at line 8242 of file economy.cpp.
float economy::estimate_subsidy_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8067 of file economy.cpp.
float economy::estimate_tariff_export_income | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 7974 of file economy.cpp.
float economy::estimate_tariff_import_income | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 7958 of file economy.cpp.
float economy::estimate_tax_income_by_strata | ( | sys::state & | state, |
dcon::nation_id | n, | ||
culture::pop_strata | ps | ||
) |
Definition at line 8054 of file economy.cpp.
float economy::estimate_war_subsidies | ( | sys::state & | state, |
dcon::nation_fat_id | target, | ||
dcon::nation_fat_id | source | ||
) |
Definition at line 8210 of file economy.cpp.
float economy::estimate_war_subsidies_income | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8071 of file economy.cpp.
float economy::estimate_war_subsidies_spending | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8097 of file economy.cpp.
float economy::expected_savings_per_capita | ( | sys::state & | state | ) |
std::vector< trade_breakdown_item > economy::explain_national_tariff | ( | sys::state & | state, |
dcon::nation_id | n, | ||
bool | import_flag, | ||
bool | export_flag | ||
) |
Definition at line 7883 of file economy.cpp.
trade_and_tariff economy::explain_trade_route_commodity | ( | sys::state & | state, |
dcon::trade_route_id | trade_route, | ||
dcon::commodity_id | cid | ||
) |
Definition at line 7765 of file economy.cpp.
float economy::export_volume | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 470 of file economy.cpp.
float economy::export_volume | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 477 of file economy.cpp.
trade_volume_data_detailed economy::export_volume_detailed | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
float economy::factory_desired_raw_profit | ( | dcon::factory_id | fac, |
float | spendings | ||
) |
Definition at line 2408 of file economy.cpp.
float economy::factory_e_input_total_cost | ( | sys::state const & | state, |
dcon::market_id | m, | ||
dcon::factory_type_id | fac_type | ||
) |
Definition at line 2294 of file economy.cpp.
float economy::factory_input_multiplier | ( | sys::state const & | state, |
dcon::factory_id | fac, | ||
dcon::nation_id | n, | ||
dcon::province_id | p, | ||
dcon::state_instance_id | s | ||
) |
Definition at line 2329 of file economy.cpp.
float economy::factory_input_total_cost | ( | sys::state const & | state, |
dcon::market_id | m, | ||
dcon::factory_type_id | fac_type | ||
) |
Definition at line 2263 of file economy.cpp.
bool economy::factory_is_profitable | ( | sys::state const & | state, |
dcon::factory_id | f | ||
) |
Definition at line 1892 of file economy.cpp.
float economy::factory_max_employment | ( | sys::state const & | state, |
dcon::factory_id | f | ||
) |
Definition at line 2007 of file economy.cpp.
float economy::factory_max_production_scale | ( | sys::state const & | state, |
dcon::factory_id | fac, | ||
float | mobilization_impact, | ||
bool | occupied | ||
) |
Definition at line 2400 of file economy.cpp.
float economy::factory_max_production_scale_non_modified | ( | sys::state const & | state, |
dcon::factory_fat_id | fac | ||
) |
Definition at line 2395 of file economy.cpp.
float economy::factory_min_e_input_available | ( | sys::state const & | state, |
dcon::market_id | m, | ||
dcon::factory_type_id | fac_type | ||
) |
Definition at line 2276 of file economy.cpp.
float economy::factory_min_input_available | ( | sys::state const & | state, |
dcon::market_id | m, | ||
dcon::factory_type_id | fac_type | ||
) |
Definition at line 2242 of file economy.cpp.
float economy::factory_output_multiplier | ( | sys::state const & | state, |
dcon::factory_id | fac, | ||
dcon::nation_id | n, | ||
dcon::market_id | m, | ||
dcon::province_id | p | ||
) |
Definition at line 2386 of file economy.cpp.
float economy::factory_output_multiplier_no_secondary_workers | ( | sys::state const & | state, |
dcon::factory_id | fac, | ||
dcon::nation_id | n, | ||
dcon::province_id | p | ||
) |
Definition at line 2376 of file economy.cpp.
float economy::factory_primary_employment | ( | sys::state const & | state, |
dcon::factory_id | f | ||
) |
Definition at line 2011 of file economy.cpp.
int32_t economy::factory_priority | ( | sys::state const & | state, |
dcon::factory_id | f | ||
) |
float economy::factory_secondary_employment | ( | sys::state const & | state, |
dcon::factory_id | f | ||
) |
Definition at line 2020 of file economy.cpp.
float economy::factory_throughput_multiplier | ( | sys::state const & | state, |
dcon::factory_type_id | fac_type, | ||
dcon::nation_id | n, | ||
dcon::province_id | p, | ||
dcon::state_instance_id | s | ||
) |
Definition at line 2362 of file economy.cpp.
float economy::factory_total_employment | ( | sys::state const & | state, |
dcon::factory_id | f | ||
) |
Definition at line 2029 of file economy.cpp.
float economy::factory_type_build_cost | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::market_id | m, | ||
dcon::factory_type_id | factory_type | ||
) |
Definition at line 7559 of file economy.cpp.
float economy::factory_type_input_cost | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::market_id | m, | ||
dcon::factory_type_id | factory_type | ||
) |
Definition at line 7591 of file economy.cpp.
float economy::factory_type_output_cost | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::market_id | m, | ||
dcon::factory_type_id | factory_type | ||
) |
Definition at line 7578 of file economy.cpp.
construction_status economy::factory_upgrade | ( | sys::state & | state, |
dcon::factory_id | f | ||
) |
Definition at line 8286 of file economy.cpp.
float economy::farmer_min_wage | ( | sys::state & | state, |
dcon::market_id | m, | ||
float | min_wage_factor | ||
) |
void economy::for_each_new_factory | ( | sys::state & | state, |
dcon::state_instance_id | s, | ||
F && | func | ||
) |
template void economy::for_each_new_factory< std::function< void(new_factory)> > | ( | sys::state & | , |
dcon::state_instance_id | , | ||
std::function< void(new_factory)> && | |||
) |
void economy::for_each_upgraded_factory | ( | sys::state & | state, |
dcon::state_instance_id | s, | ||
F && | func | ||
) |
Definition at line 30 of file economy_templates.hpp.
template void economy::for_each_upgraded_factory< std::function< void(upgraded_factory)> > | ( | sys::state & | , |
dcon::state_instance_id | , | ||
std::function< void(upgraded_factory)> && | |||
) |
float economy::full_private_investment_cost | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 4067 of file economy.cpp.
float economy::full_spending_cost | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 3832 of file economy.cpp.
float economy::gdp_adjusted | ( | sys::state & | state, |
dcon::market_id | n | ||
) |
Definition at line 846 of file economy.cpp.
float economy::gdp_adjusted | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
dcon::modifier_id economy::get_province_immigrator_modifier | ( | sys::state & | state | ) |
Definition at line 8919 of file economy.cpp.
dcon::modifier_id economy::get_province_selector_modifier | ( | sys::state & | state | ) |
Definition at line 8915 of file economy.cpp.
float economy::global_factory_construction_time_modifier | ( | sys::state & | state | ) |
Definition at line 3183 of file economy.cpp.
float economy::global_market_commodity_daily_increase | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
Definition at line 877 of file economy.cpp.
float economy::global_non_factory_construction_time_modifier | ( | sys::state & | state | ) |
Definition at line 3164 of file economy.cpp.
void economy::go_bankrupt | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 8923 of file economy.cpp.
float economy::government_consumption | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
Definition at line 7524 of file economy.cpp.
bool economy::has_building | ( | sys::state const & | state, |
dcon::state_instance_id | si, | ||
dcon::factory_type_id | fac | ||
) |
Definition at line 1166 of file economy.cpp.
bool economy::has_factory | ( | sys::state const & | state, |
dcon::state_instance_id | si | ||
) |
float economy::ideal_pound_conversion_rate | ( | sys::state & | state, |
dcon::market_id | n | ||
) |
float economy::import_volume | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
float economy::import_volume | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 585 of file economy.cpp.
trade_volume_data_detailed economy::import_volume_detailed | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
void economy::initialize | ( | sys::state & | state | ) |
Definition at line 1483 of file economy.cpp.
void economy::initialize_artisan_distribution | ( | sys::state & | state | ) |
void economy::initialize_needs_weights | ( | sys::state & | state, |
dcon::market_id | n | ||
) |
Definition at line 972 of file economy.cpp.
float economy::interest_payment | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
bool economy::is_bankrupt_debtor_to | ( | sys::state & | state, |
dcon::nation_id | debt_holder, | ||
dcon::nation_id | debtor | ||
) |
Definition at line 1180 of file economy.cpp.
float economy::laborer_min_wage | ( | sys::state & | state, |
dcon::market_id | m, | ||
float | min_wage_factor | ||
) |
float economy::market_pool | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
Definition at line 383 of file economy.cpp.
float economy::market_pool | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
float economy::market_pool | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 367 of file economy.cpp.
float economy::max_loan | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
|
inlineconstexpr |
int32_t economy::most_recent_gdp_record_index | ( | sys::state & | state | ) |
int32_t economy::most_recent_price_record_index | ( | sys::state & | state | ) |
float economy::nation_factory_consumption | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
Definition at line 7608 of file economy.cpp.
float economy::nation_factory_input_multiplier | ( | sys::state const & | state, |
dcon::factory_type_id | fac_type, | ||
dcon::nation_id | n | ||
) |
Definition at line 2313 of file economy.cpp.
float economy::nation_factory_output_multiplier | ( | sys::state const & | state, |
dcon::factory_type_id | fac_type, | ||
dcon::nation_id | n | ||
) |
Definition at line 2322 of file economy.cpp.
bool economy::nation_has_closed_factories | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1190 of file economy.cpp.
bool economy::nation_is_constructing_factories | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1186 of file economy.cpp.
float economy::nation_pop_consumption | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
Definition at line 7688 of file economy.cpp.
float economy::nation_total_exports | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 7729 of file economy.cpp.
float economy::nation_total_imports | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 7712 of file economy.cpp.
float economy::need_weight | ( | sys::state & | state, |
dcon::market_id | n, | ||
dcon::commodity_id | c | ||
) |
Definition at line 1001 of file economy.cpp.
float economy::pop_income | ( | sys::state & | state, |
dcon::pop_id | p | ||
) |
Definition at line 7746 of file economy.cpp.
float economy::pop_min_wage_factor | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
void economy::populate_army_consumption | ( | sys::state & | state | ) |
Definition at line 3042 of file economy.cpp.
void economy::populate_construction_consumption | ( | sys::state & | state | ) |
Definition at line 3190 of file economy.cpp.
void economy::populate_navy_consumption | ( | sys::state & | state | ) |
Definition at line 3099 of file economy.cpp.
void economy::populate_private_construction_consumption | ( | sys::state & | state | ) |
Definition at line 3767 of file economy.cpp.
void economy::presimulate | ( | sys::state & | state | ) |
Definition at line 1151 of file economy.cpp.
int32_t economy::previous_gdp_record_index | ( | sys::state & | state | ) |
Definition at line 836 of file economy.cpp.
int32_t economy::previous_price_record_index | ( | sys::state & | state | ) |
Definition at line 828 of file economy.cpp.
float economy::price | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
float economy::price | ( | sys::state const & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 202 of file economy.cpp.
float economy::price | ( | sys::state const & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
float economy::price | ( | sys::state const & | state, |
dcon::state_instance_id | s, | ||
dcon::commodity_id | c | ||
) |
ve::fp_vector economy::price | ( | sys::state const & | state, |
ve::tagged_vector< dcon::market_id > | s, | ||
dcon::commodity_id | c | ||
) |
float economy::priority_multiplier | ( | sys::state const & | state, |
dcon::factory_type_id | fac_type, | ||
dcon::nation_id | n | ||
) |
Definition at line 2308 of file economy.cpp.
construction_status economy::province_building_construction | ( | sys::state & | state, |
dcon::province_id | p, | ||
province_building_type | t | ||
) |
Definition at line 8268 of file economy.cpp.
|
inline |
|
inline |
void economy::prune_factories | ( | sys::state & | state | ) |
Definition at line 8876 of file economy.cpp.
float economy::pseudo_exp_for_negative | ( | float | f | ) |
Definition at line 1327 of file economy.cpp.
void economy::rebalance_needs_weights | ( | sys::state & | state, |
dcon::market_id | n | ||
) |
void economy::regenerate_unsaved_values | ( | sys::state & | state | ) |
Definition at line 7485 of file economy.cpp.
void economy::register_construction_demand | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | commodity_type, | ||
float | amount | ||
) |
void economy::register_demand | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | commodity_type, | ||
float | amount, | ||
economy_reason | reason | ||
) |
void economy::register_demand | ( | sys::state & | state, |
T | s, | ||
dcon::commodity_id | commodity_type, | ||
ve::fp_vector | amount, | ||
economy_reason | reason | ||
) |
void economy::register_domestic_supply | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | commodity_type, | ||
float | amount, | ||
economy_reason | reason | ||
) |
Definition at line 750 of file economy.cpp.
void economy::register_domestic_supply | ( | sys::state & | state, |
T | s, | ||
dcon::commodity_id | commodity_type, | ||
ve::fp_vector | amount, | ||
economy_reason | reason | ||
) |
void economy::register_foreign_supply | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | commodity_type, | ||
float | amount, | ||
economy_reason | reason | ||
) |
Definition at line 761 of file economy.cpp.
void economy::register_intermediate_demand | ( | sys::state & | state, |
T | s, | ||
dcon::commodity_id | c, | ||
ve::fp_vector | amount, | ||
economy_reason | reason | ||
) |
Definition at line 725 of file economy.cpp.
void economy::resolve_constructions | ( | sys::state & | state | ) |
Definition at line 8426 of file economy.cpp.
float economy::rgo_desired_worker_norm_profit | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::market_id | m, | ||
dcon::nation_id | n, | ||
float | min_wage, | ||
float | total_relevant_population | ||
) |
Definition at line 2698 of file economy.cpp.
float economy::rgo_effective_size | ( | sys::state const & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p, | ||
dcon::commodity_id | c | ||
) |
Definition at line 1780 of file economy.cpp.
float economy::rgo_efficiency | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p, | ||
dcon::commodity_id | c | ||
) |
Definition at line 2187 of file economy.cpp.
float economy::rgo_expected_worker_norm_profit | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::market_id | m, | ||
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
Definition at line 2764 of file economy.cpp.
float economy::rgo_full_production_quantity | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p, | ||
dcon::commodity_id | c | ||
) |
Definition at line 2228 of file economy.cpp.
float economy::rgo_full_production_quantity | ( | sys::state const & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p, | ||
dcon::commodity_id | c | ||
) |
float economy::rgo_max_employment | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p, | ||
dcon::commodity_id | c | ||
) |
Definition at line 1822 of file economy.cpp.
rgo_workers_breakdown economy::rgo_relevant_population | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::nation_id | n | ||
) |
Definition at line 2682 of file economy.cpp.
float economy::rgo_total_effective_size | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p | ||
) |
Definition at line 1802 of file economy.cpp.
float economy::rgo_total_employment | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p | ||
) |
Definition at line 1814 of file economy.cpp.
float economy::rgo_total_max_employment | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p | ||
) |
Definition at line 1826 of file economy.cpp.
void economy::run_private_investment | ( | sys::state & | state | ) |
Definition at line 5286 of file economy.cpp.
void economy::sanity_check | ( | sys::state & | state | ) |
void economy::set_factory_priority | ( | sys::state & | state, |
dcon::factory_id | f, | ||
int32_t | priority | ||
) |
Definition at line 1888 of file economy.cpp.
float economy::skilled_labor_supply_multiplier | ( | sys::state & | state, |
dcon::market_id | markets | ||
) |
Definition at line 53 of file economy.cpp.
ve::fp_vector economy::skilled_labor_supply_multiplier | ( | sys::state & | state, |
T | markets | ||
) |
Definition at line 42 of file economy.cpp.
float economy::sphere_leader_share_factor | ( | sys::state & | state, |
dcon::nation_id | sphere_leader, | ||
dcon::nation_id | sphere_member | ||
) |
Definition at line 1714 of file economy.cpp.
bool economy::state_contains_constructed_factory | ( | sys::state & | state, |
dcon::state_instance_id | s, | ||
dcon::factory_type_id | ft | ||
) |
Definition at line 8315 of file economy.cpp.
bool economy::state_contains_factory | ( | sys::state & | state, |
dcon::state_instance_id | s, | ||
dcon::factory_type_id | ft | ||
) |
Definition at line 8328 of file economy.cpp.
int32_t economy::state_factory_count | ( | sys::state & | state, |
dcon::state_instance_id | sid, | ||
dcon::nation_id | n | ||
) |
Definition at line 8347 of file economy.cpp.
float economy::stockpile_commodity_daily_increase | ( | sys::state & | state, |
dcon::commodity_id | c, | ||
dcon::nation_id | n | ||
) |
Definition at line 872 of file economy.cpp.
float economy::subsistence_max_pseudoemployment | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p | ||
) |
Definition at line 1810 of file economy.cpp.
float economy::subsistence_size | ( | sys::state const & | state, |
dcon::province_id | p | ||
) |
Definition at line 1775 of file economy.cpp.
float economy::supply | ( | sys::state & | state, |
dcon::commodity_id | c | ||
) |
Definition at line 271 of file economy.cpp.
float economy::supply | ( | sys::state & | state, |
dcon::market_id | s, | ||
dcon::commodity_id | c | ||
) |
float economy::supply | ( | sys::state & | state, |
dcon::nation_id | s, | ||
dcon::commodity_id | c | ||
) |
Definition at line 213 of file economy.cpp.
void economy::try_add_factory_to_state | ( | sys::state & | state, |
dcon::state_instance_id | s, | ||
dcon::factory_type_id | t | ||
) |
Definition at line 8669 of file economy.cpp.
float economy::unit_construction_progress | ( | sys::state & | state, |
dcon::province_land_construction_id | c | ||
) |
Definition at line 8362 of file economy.cpp.
float economy::unit_construction_progress | ( | sys::state & | state, |
dcon::province_naval_construction_id | c | ||
) |
float economy::unskilled_labor_supply_multiplier | ( | sys::state & | state, |
dcon::market_id | markets | ||
) |
Definition at line 48 of file economy.cpp.
ve::fp_vector economy::unskilled_labor_supply_multiplier | ( | sys::state & | state, |
T | markets | ||
) |
Definition at line 36 of file economy.cpp.
void economy::update_artisan_consumption | ( | sys::state & | state, |
T | markets, | ||
S | nations, | ||
U | states, | ||
ve::fp_vector | expected_min_wage, | ||
ve::fp_vector | mobilization_impact | ||
) |
Definition at line 2914 of file economy.cpp.
void economy::update_factory_employment | ( | sys::state & | state | ) |
Definition at line 2044 of file economy.cpp.
void economy::update_factory_triggered_modifiers | ( | sys::state & | state | ) |
Definition at line 1748 of file economy.cpp.
void economy::update_land_ownership | ( | sys::state & | state | ) |
Definition at line 1868 of file economy.cpp.
void economy::update_local_subsistence_factor | ( | sys::state & | state | ) |
Definition at line 1834 of file economy.cpp.
void economy::update_market_artisan_production | ( | sys::state & | state, |
T | markets | ||
) |
Definition at line 3033 of file economy.cpp.
void economy::update_national_consumption | ( | sys::state & | state, |
dcon::nation_id | n, | ||
float | spending_scale, | ||
float | private_investment_scale | ||
) |
Definition at line 4083 of file economy.cpp.
void economy::update_pop_consumption | ( | sys::state & | state, |
ve::vectorizable_buffer< float, dcon::nation_id > & | invention_count | ||
) |
Definition at line 4188 of file economy.cpp.
void economy::update_province_rgo_employment | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::market_id | m, | ||
dcon::nation_id | n, | ||
float | mobilization_impact, | ||
float | expected_min_wage | ||
) |
Definition at line 2785 of file economy.cpp.
void economy::update_province_rgo_production | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::market_id | m, | ||
dcon::nation_id | n | ||
) |
Definition at line 2873 of file economy.cpp.
void economy::update_rgo_employment | ( | sys::state & | state | ) |
Definition at line 1901 of file economy.cpp.
void economy::update_single_factory_consumption | ( | sys::state & | state, |
dcon::factory_id | f, | ||
dcon::province_id | p, | ||
dcon::state_instance_id | s, | ||
dcon::market_id | m, | ||
dcon::nation_id | n, | ||
float | mobilization_impact, | ||
bool | occupied | ||
) |
Definition at line 2412 of file economy.cpp.
void economy::update_single_factory_production | ( | sys::state & | state, |
dcon::factory_id | f, | ||
dcon::market_id | m, | ||
dcon::nation_id | n | ||
) |
Definition at line 2640 of file economy.cpp.
bool economy::valid_artisan_good | ( | sys::state & | state, |
dcon::nation_id | nations, | ||
dcon::commodity_id | cid | ||
) |
Definition at line 1312 of file economy.cpp.
bool economy::valid_everyday_need | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
bool economy::valid_life_need | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
bool economy::valid_luxury_need | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
bool economy::valid_need | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::commodity_id | c | ||
) |
ve::mask_vector economy::valid_need | ( | sys::state & | state, |
T | n, | ||
dcon::commodity_id | c | ||
) |
Definition at line 944 of file economy.cpp.
ve::fp_vector economy::ve_adjusted_subsistence_score | ( | sys::state & | state, |
T | p | ||
) |
Definition at line 1859 of file economy.cpp.
ve::fp_vector economy::ve_artisan_min_wage | ( | sys::state & | state, |
T | markets | ||
) |
ve::fp_vector economy::ve_farmer_min_wage | ( | sys::state & | state, |
T | markets, | ||
ve::fp_vector | min_wage_factor | ||
) |
Definition at line 30 of file economy.cpp.
ve::fp_vector economy::ve_laborer_min_wage | ( | sys::state & | state, |
T | markets, | ||
ve::fp_vector | min_wage_factor | ||
) |
Definition at line 60 of file economy.cpp.
ve::fp_vector economy::ve_pop_min_wage_factor | ( | sys::state & | state, |
T | n | ||
) |
ve::fp_vector economy::ve_price | ( | sys::state const & | state, |
T | s, | ||
dcon::commodity_id | c | ||
) |
ve::fp_vector economy::ve_pseudo_exp_for_negative | ( | ve::fp_vector | f | ) |
Definition at line 1346 of file economy.cpp.
ve::mask_vector economy::ve_valid_artisan_good | ( | sys::state & | state, |
T | nations, | ||
dcon::commodity_id | cid | ||
) |
Definition at line 1300 of file economy.cpp.
|
inlineconstexpr |
Definition at line 149 of file economy.hpp.
|
inlineconstexpr |
Definition at line 150 of file economy.hpp.
|
inline |
Definition at line 4939 of file economy.cpp.
|
inlineconstexpr |
Definition at line 92 of file economy.cpp.
|
inlineconstexpr |
Definition at line 77 of file economy.cpp.
|
inlineconstexpr |
Definition at line 106 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3171 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3155 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3173 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3157 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3172 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3156 of file economy.cpp.
|
inline |
Definition at line 4940 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3175 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3159 of file economy.cpp.
|
inlineconstexpr |
Definition at line 125 of file economy.hpp.
|
inlineconstexpr |
Definition at line 145 of file economy.hpp.
|
inlineconstexpr |
Definition at line 147 of file economy.hpp.
|
inlineconstexpr |
Definition at line 146 of file economy.hpp.
|
inlineconstexpr |
Definition at line 148 of file economy.hpp.
|
inlineconstexpr |
Definition at line 127 of file economy.hpp.
|
inlineconstexpr |
Definition at line 1324 of file economy.cpp.
|
inlineconstexpr |
Definition at line 101 of file economy.cpp.
|
inlineconstexpr |
Definition at line 86 of file economy.cpp.
|
inlineconstexpr |
Definition at line 115 of file economy.cpp.
|
inlineconstexpr |
Definition at line 579 of file constants.hpp.
|
inlineconstexpr |
Definition at line 139 of file economy.hpp.
|
inlineconstexpr |
Definition at line 138 of file economy.hpp.
|
inlineconstexpr |
Definition at line 98 of file economy.cpp.
|
inlineconstexpr |
Definition at line 83 of file economy.cpp.
|
inlineconstexpr |
Definition at line 112 of file economy.cpp.
|
inlineconstexpr |
Definition at line 119 of file economy.hpp.
|
inlineconstexpr |
Definition at line 126 of file economy.hpp.
|
inlineconstexpr |
Definition at line 129 of file economy.hpp.
|
inlineconstexpr |
Definition at line 128 of file economy.hpp.
|
inlineconstexpr |
Definition at line 151 of file economy.hpp.
|
inlineconstexpr |
Definition at line 124 of file economy.hpp.
|
inlineconstexpr |
Definition at line 130 of file economy.hpp.
|
inlineconstexpr |
Definition at line 144 of file economy.hpp.
|
inlineconstexpr |
Definition at line 122 of file economy.hpp.
|
inlineconstexpr |
Definition at line 152 of file economy.hpp.
|
inlineconstexpr |
Definition at line 3176 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3160 of file economy.cpp.
|
inlineconstexpr |
Definition at line 95 of file economy.cpp.
|
inlineconstexpr |
Definition at line 80 of file economy.cpp.
|
inlineconstexpr |
Definition at line 109 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3177 of file economy.cpp.
|
inlineconstexpr |
Definition at line 3161 of file economy.cpp.
|
inlineconstexpr |
Definition at line 135 of file economy.hpp.
|
inlineconstexpr |
Definition at line 134 of file economy.hpp.
|
inlineconstexpr |
Definition at line 133 of file economy.hpp.
|
inlineconstexpr |
Definition at line 91 of file economy.hpp.
|
inlineconstexpr |
Definition at line 93 of file economy.hpp.
|
inlineconstexpr |
Definition at line 92 of file economy.hpp.
|
inlineconstexpr |
Definition at line 94 of file economy.hpp.
|
inlineconstexpr |
Definition at line 91 of file economy.cpp.
|
inlineconstexpr |
Definition at line 76 of file economy.cpp.
|
inlineconstexpr |
Definition at line 105 of file economy.cpp.