Project Alice
|
Namespaces | |
namespace | cb_flag |
Classes | |
struct | available_cb |
struct | global_military_state |
struct | land_battle_report |
struct | leader_counts |
struct | mobilization_order |
struct | naval_battle_report |
struct | participation |
struct | reserve_regiment |
struct | ship_in_battle |
struct | unit_definition |
struct | wg_summary |
Enumerations | |
enum class | unit_type : uint8_t { support , big_ship , cavalry , transport , light_ship , special , infantry } |
enum class | battle_result { indecisive , attacker_won , defender_won } |
enum class | war_role { none , attacker , defender } |
enum class | war_result { draw , attacker_won , defender_won } |
enum class | crossing_type { none , river , sea } |
Functions | |
std::string | get_war_name (sys::state &, dcon::war_id) |
template auto | province_is_blockaded< ve::tagged_vector< dcon::province_id > > (sys::state const &, ve::tagged_vector< dcon::province_id >) |
template auto | province_is_under_siege< ve::tagged_vector< dcon::province_id > > (sys::state const &, ve::tagged_vector< dcon::province_id >) |
template auto | battle_is_ongoing_in_province< ve::tagged_vector< dcon::province_id > > (sys::state const &, ve::tagged_vector< dcon::province_id >) |
int32_t | total_regiments (sys::state &state, dcon::nation_id n) |
int32_t | total_ships (sys::state &state, dcon::nation_id n) |
bool | is_infantry_better (sys::state &state, dcon::nation_id n, dcon::unit_type_id best, dcon::unit_type_id given) |
bool | is_artillery_better (sys::state &state, dcon::nation_id n, dcon::unit_type_id best, dcon::unit_type_id given) |
bool | is_cavalry_better (sys::state &state, dcon::nation_id n, dcon::unit_type_id best, dcon::unit_type_id given) |
dcon::unit_type_id | get_best_infantry (sys::state &state, dcon::nation_id n, bool primary_culture) |
dcon::unit_type_id | get_best_artillery (sys::state &state, dcon::nation_id n, bool primary_culture) |
dcon::unit_type_id | get_best_cavalry (sys::state &state, dcon::nation_id n, bool primary_culture) |
void | reset_unit_stats (sys::state &state) |
void | apply_base_unit_stat_modifiers (sys::state &state) |
void | invalidate_unowned_wargoals (sys::state &state) |
void | restore_unsaved_values (sys::state &state) |
bool | can_use_cb_against (sys::state &state, dcon::nation_id from, dcon::nation_id target) |
bool | can_add_always_cb_to_war (sys::state &state, dcon::nation_id actor, dcon::nation_id target, dcon::cb_type_id cb, dcon::war_id w) |
bool | cb_conditions_satisfied (sys::state &state, dcon::nation_id actor, dcon::nation_id target, dcon::cb_type_id cb) |
bool | cb_instance_conditions_satisfied (sys::state &state, dcon::nation_id actor, dcon::nation_id target, dcon::cb_type_id cb, dcon::state_definition_id st, dcon::national_identity_id tag, dcon::nation_id secondary) |
bool | province_is_blockaded (sys::state const &state, dcon::province_id ids) |
bool | compute_blockade_status (sys::state &state, dcon::province_id p) |
void | update_blockade_status (sys::state &state) |
bool | province_is_under_siege (sys::state const &state, dcon::province_id ids) |
float | recruited_pop_fraction (sys::state const &state, dcon::nation_id n) |
bool | state_has_naval_base (sys::state const &state, dcon::state_instance_id si) |
uint32_t | state_naval_base_level (sys::state const &state, dcon::state_instance_id si) |
uint32_t | state_railroad_level (sys::state const &state, dcon::state_instance_id si) |
bool | are_at_war (sys::state const &state, dcon::nation_id a, dcon::nation_id b) |
bool | are_allied_in_war (sys::state const &state, dcon::nation_id a, dcon::nation_id b) |
bool | are_in_common_war (sys::state const &state, dcon::nation_id a, dcon::nation_id b) |
void | remove_from_common_allied_wars (sys::state &state, dcon::nation_id a, dcon::nation_id b) |
participation | internal_find_war_between (sys::state const &state, dcon::nation_id a, dcon::nation_id b) |
dcon::war_id | find_war_between (sys::state const &state, dcon::nation_id a, dcon::nation_id b) |
bool | joining_war_does_not_violate_constraints (sys::state const &state, dcon::nation_id a, dcon::war_id w, bool as_attacker) |
bool | is_civil_war (sys::state const &state, dcon::war_id w) |
bool | is_defender_wargoal (sys::state const &state, dcon::war_id w, dcon::wargoal_id wg) |
bool | defenders_have_non_status_quo_wargoal (sys::state const &state, dcon::war_id w) |
bool | defenders_have_status_quo_wargoal (sys::state const &state, dcon::war_id w) |
bool | attackers_have_status_quo_wargoal (sys::state const &state, dcon::war_id w) |
bool | joining_as_attacker_would_break_truce (sys::state &state, dcon::nation_id a, dcon::war_id w) |
int32_t | supply_limit_in_province (sys::state &state, dcon::nation_id n, dcon::province_id p) |
int32_t | regiments_created_from_province (sys::state &state, dcon::province_id p) |
int32_t | mobilized_regiments_created_from_province (sys::state &state, dcon::province_id p) |
int32_t | regiments_possible_from_pop (sys::state &state, dcon::pop_id p) |
int32_t | regiments_max_possible_from_province (sys::state &state, dcon::province_id p) |
int32_t | main_culture_regiments_created_from_province (sys::state &state, dcon::province_id p) |
int32_t | main_culture_regiments_max_possible_from_province (sys::state &state, dcon::province_id p) |
int32_t | regiments_under_construction_in_province (sys::state &state, dcon::province_id p) |
int32_t | main_culture_regiments_under_construction_in_province (sys::state &state, dcon::province_id p) |
dcon::pop_id | find_available_soldier (sys::state &state, dcon::province_id p, dcon::culture_id pop_culture) |
dcon::pop_id | find_available_soldier (sys::state &state, dcon::province_id p, bool require_accepted) |
int32_t | mobilized_regiments_possible_from_province (sys::state &state, dcon::province_id p) |
int32_t | mobilized_regiments_pop_limit (sys::state &state, dcon::nation_id n) |
void | update_recruitable_regiments (sys::state &state, dcon::nation_id n) |
void | update_all_recruitable_regiments (sys::state &state) |
void | regenerate_total_regiment_counts (sys::state &state) |
void | regenerate_land_unit_average (sys::state &state) |
void | regenerate_ship_scores (sys::state &state) |
int32_t | naval_supply_points (sys::state &state, dcon::nation_id n) |
int32_t | naval_supply_points_used (sys::state &state, dcon::nation_id n) |
uint32_t | naval_supply_from_naval_base (sys::state &state, dcon::province_id prov, dcon::nation_id nation) |
void | update_naval_supply_points (sys::state &state) |
float | mobilization_size (sys::state const &state, dcon::nation_id n) |
ve::fp_vector | ve_mobilization_size (sys::state const &state, ve::tagged_vector< dcon::nation_id > nations) |
float | mobilization_impact (sys::state const &state, dcon::nation_id n) |
ve::fp_vector | ve_mobilization_impact (sys::state const &state, ve::tagged_vector< dcon::nation_id > nations) |
void | update_cbs (sys::state &state) |
void | add_cb (sys::state &state, dcon::nation_id n, dcon::cb_type_id cb, dcon::nation_id target, dcon::state_definition_id target_state=dcon::state_definition_id{}) |
float | cb_infamy_country_modifier (sys::state &state, dcon::nation_id target) |
float | cb_infamy_state_modifier (sys::state &state, dcon::nation_id target, dcon::state_definition_id cb_state) |
float | cb_infamy (sys::state &state, dcon::cb_type_id t, dcon::nation_id target, dcon::state_definition_id cb_state) |
float | truce_break_cb_prestige_cost (sys::state &state, dcon::cb_type_id t) |
float | truce_break_cb_militancy (sys::state &state, dcon::cb_type_id t) |
float | truce_break_cb_infamy (sys::state &state, dcon::cb_type_id t, dcon::nation_id target, dcon::state_definition_id cb_state) |
int32_t | province_point_cost (sys::state &state, dcon::province_id p, dcon::nation_id n) |
int32_t | peace_cost (sys::state &state, dcon::war_id war, dcon::cb_type_id wargoal, dcon::nation_id from, dcon::nation_id target, dcon::nation_id secondary_nation, dcon::state_definition_id wargoal_state, dcon::national_identity_id wargoal_tag) |
int32_t | cost_of_peace_offer (sys::state &state, dcon::peace_offer_id offer) |
int32_t | peace_offer_truce_months (sys::state &state, dcon::peace_offer_id offer) |
int32_t | attacker_peace_cost (sys::state &state, dcon::war_id war) |
int32_t | defender_peace_cost (sys::state &state, dcon::war_id war) |
float | successful_cb_prestige (sys::state &state, dcon::cb_type_id t, dcon::nation_id actor) |
float | crisis_cb_addition_infamy_cost (sys::state &state, dcon::cb_type_id type, dcon::nation_id from, dcon::nation_id target, dcon::state_definition_id cb_state) |
float | cb_addition_infamy_cost (sys::state &state, dcon::war_id war, dcon::cb_type_id type, dcon::nation_id from, dcon::nation_id target, dcon::state_definition_id cb_state) |
bool | cb_requires_selection_of_a_valid_nation (sys::state const &state, dcon::cb_type_id t) |
bool | cb_requires_selection_of_a_liberatable_tag (sys::state const &state, dcon::cb_type_id t) |
bool | cb_requires_selection_of_a_state (sys::state const &state, dcon::cb_type_id t) |
void | execute_cb_discovery (sys::state &state, dcon::nation_id n) |
bool | leader_is_in_combat (sys::state &state, dcon::leader_id l) |
dcon::leader_id | make_new_leader (sys::state &state, dcon::nation_id n, bool is_general) |
void | kill_leader (sys::state &state, dcon::leader_id l) |
leader_counts | count_leaders (sys::state &state, dcon::nation_id n) |
int32_t | count_armies (sys::state &state, dcon::nation_id n) |
int32_t | count_navies (sys::state &state, dcon::nation_id n) |
void | monthly_leaders_update (sys::state &state) |
void | daily_leaders_update (sys::state &state) |
bool | has_truce_with (sys::state &state, dcon::nation_id attacker, dcon::nation_id target) |
dcon::regiment_id | create_new_regiment (sys::state &state, dcon::nation_id n, dcon::unit_type_id t) |
dcon::ship_id | create_new_ship (sys::state &state, dcon::nation_id n, dcon::unit_type_id t) |
void | give_military_access (sys::state &state, dcon::nation_id accessing_nation, dcon::nation_id target) |
void | remove_military_access (sys::state &state, dcon::nation_id accessing_nation, dcon::nation_id target) |
void | end_wars_between (sys::state &state, dcon::nation_id a, dcon::nation_id b) |
void | populate_war_text_subsitutions (sys::state &state, dcon::war_id w, text::substitution_map &sub) |
void | add_to_war (sys::state &state, dcon::war_id w, dcon::nation_id n, bool as_attacker, bool on_war_creation) |
bool | is_attacker (sys::state &state, dcon::war_id w, dcon::nation_id n) |
war_role | get_role (sys::state const &state, dcon::war_id w, dcon::nation_id n) |
dcon::war_id | create_war (sys::state &state, dcon::nation_id primary_attacker, dcon::nation_id primary_defender, dcon::cb_type_id primary_wargoal, dcon::state_definition_id primary_wargoal_state, dcon::national_identity_id primary_wargoal_tag, dcon::nation_id primary_wargoal_secondary) |
bool | standard_war_joining_is_possible (sys::state &state, dcon::war_id wfor, dcon::nation_id n, bool as_attacker) |
void | call_defender_allies (sys::state &state, dcon::war_id wfor) |
void | call_attacker_allies (sys::state &state, dcon::war_id wfor) |
void | add_wargoal (sys::state &state, dcon::war_id wfor, dcon::nation_id added_by, dcon::nation_id target, dcon::cb_type_id type, dcon::state_definition_id sd, dcon::national_identity_id tag, dcon::nation_id secondary_nation) |
void | remove_from_war (sys::state &state, dcon::war_id w, dcon::nation_id n, bool as_loss) |
void | cleanup_war (sys::state &state, dcon::war_id w, war_result result) |
void | set_initial_leaders (sys::state &state) |
void | take_from_sphere (sys::state &state, dcon::nation_id member, dcon::nation_id new_gp) |
void | implement_war_goal (sys::state &state, dcon::war_id war, dcon::cb_type_id wargoal, dcon::nation_id from, dcon::nation_id target, dcon::nation_id secondary_nation, dcon::state_definition_id wargoal_state, dcon::national_identity_id wargoal_t) |
void | run_gc (sys::state &state) |
void | add_truce_between_sides (sys::state &state, dcon::war_id w, int32_t months) |
void | add_truce_from_nation (sys::state &state, dcon::war_id w, dcon::nation_id n, int32_t months) |
void | add_truce (sys::state &state, dcon::nation_id a, dcon::nation_id b, int32_t days) |
void | implement_peace_offer (sys::state &state, dcon::peace_offer_id offer) |
void | reject_peace_offer (sys::state &state, dcon::peace_offer_id offer) |
void | update_ticking_war_score (sys::state &state) |
float | primary_warscore_from_blockades (sys::state &state, dcon::war_id w) |
float | primary_warscore (sys::state &state, dcon::war_id w) |
float | primary_warscore_from_occupation (sys::state &state, dcon::war_id w) |
float | primary_warscore_from_battles (sys::state &state, dcon::war_id w) |
float | primary_warscore_from_war_goals (sys::state &state, dcon::war_id w) |
float | directed_warscore (sys::state &state, dcon::war_id w, dcon::nation_id primary, dcon::nation_id secondary) |
bool | can_embark_onto_sea_tile (sys::state &state, dcon::nation_id from, dcon::province_id p, dcon::army_id a) |
dcon::navy_id | find_embark_target (sys::state &state, dcon::nation_id from, dcon::province_id p, dcon::army_id a) |
float | effective_army_speed (sys::state &state, dcon::army_id a) |
float | effective_navy_speed (sys::state &state, dcon::navy_id n) |
int32_t | movement_time_from_to (sys::state &state, dcon::army_id a, dcon::province_id from, dcon::province_id to) |
int32_t | movement_time_from_to (sys::state &state, dcon::navy_id n, dcon::province_id from, dcon::province_id to) |
sys::date | arrival_time_to (sys::state &state, dcon::army_id a, dcon::province_id p) |
sys::date | arrival_time_to (sys::state &state, dcon::navy_id n, dcon::province_id p) |
void | add_army_to_battle (sys::state &state, dcon::army_id a, dcon::land_battle_id b, war_role r) |
void | army_arrives_in_province (sys::state &state, dcon::army_id a, dcon::province_id p, crossing_type crossing, dcon::land_battle_id from) |
void | add_navy_to_battle (sys::state &state, dcon::navy_id n, dcon::naval_battle_id b, war_role r) |
bool | retreat (sys::state &state, dcon::navy_id n) |
bool | retreat (sys::state &state, dcon::army_id n) |
dcon::nation_id | get_naval_battle_lead_attacker (sys::state &state, dcon::naval_battle_id b) |
dcon::nation_id | get_naval_battle_lead_defender (sys::state &state, dcon::naval_battle_id b) |
dcon::nation_id | get_land_battle_lead_attacker (sys::state &state, dcon::land_battle_id b) |
dcon::nation_id | get_land_battle_lead_defender (sys::state &state, dcon::land_battle_id b) |
float | get_leader_select_score (sys::state &state, dcon::leader_id l) |
void | update_battle_leaders (sys::state &state, dcon::land_battle_id b) |
void | update_battle_leaders (sys::state &state, dcon::naval_battle_id b) |
void | cleanup_army (sys::state &state, dcon::army_id n) |
void | cleanup_navy (sys::state &state, dcon::navy_id n) |
void | adjust_leader_prestige (sys::state &state, dcon::leader_id l, float value) |
void | adjust_regiment_experience (sys::state &state, dcon::nation_id n, dcon::regiment_id l, float value) |
void | adjust_ship_experience (sys::state &state, dcon::nation_id n, dcon::ship_id r, float value) |
void | end_battle (sys::state &state, dcon::land_battle_id b, battle_result result) |
void | end_battle (sys::state &state, dcon::naval_battle_id b, battle_result result) |
dcon::nation_id | tech_nation_for_regiment (sys::state &state, dcon::regiment_id r) |
bool | will_recieve_attrition (sys::state &state, dcon::navy_id a) |
float | peacetime_attrition_limit (sys::state &state, dcon::nation_id n, dcon::province_id prov) |
bool | will_recieve_attrition (sys::state &state, dcon::army_id a) |
float | relative_attrition_amount (sys::state &state, dcon::navy_id a, dcon::province_id prov) |
float | local_army_weight (sys::state &state, dcon::province_id prov) |
float | local_army_weight_max (sys::state &state, dcon::province_id prov) |
float | local_enemy_army_weight_max (sys::state &state, dcon::province_id prov, dcon::nation_id nation) |
float | relative_attrition_amount (sys::state &state, dcon::army_id a, dcon::province_id prov) |
float | attrition_amount (sys::state &state, dcon::navy_id a) |
float | attrition_amount (sys::state &state, dcon::army_id a) |
void | apply_attrition (sys::state &state) |
void | apply_regiment_damage (sys::state &state) |
void | update_land_battles (sys::state &state) |
void | update_naval_battles (sys::state &state) |
uint8_t | make_dice_rolls (sys::state &state, uint32_t seed) |
void | navy_arrives_in_province (sys::state &state, dcon::navy_id n, dcon::province_id p, dcon::naval_battle_id from) |
void | update_movement (sys::state &state) |
float | fractional_distance_covered (sys::state &state, dcon::army_id a) |
float | fractional_distance_covered (sys::state &state, dcon::navy_id a) |
int32_t | transport_capacity (sys::state &state, dcon::navy_id n) |
int32_t | free_transport_capacity (sys::state &state, dcon::navy_id n) |
void | send_rebel_hunter_to_next_province (sys::state &state, dcon::army_id ar, dcon::province_id prov) |
bool | siege_potential (sys::state &state, dcon::nation_id army_controller, dcon::nation_id province_controller) |
void | update_siege_progress (sys::state &state) |
void | update_blackflag_status (sys::state &state, dcon::province_id p) |
void | eject_ships (sys::state &state, dcon::province_id p) |
void | increase_dig_in (sys::state &state) |
economy::commodity_set | get_required_supply (sys::state &state, dcon::nation_id owner, dcon::army_id army) |
economy::commodity_set | get_required_supply (sys::state &state, dcon::nation_id owner, dcon::navy_id navy) |
void | recover_org (sys::state &state) |
float | unit_get_strength (sys::state &state, dcon::regiment_id regiment_id) |
float | unit_get_strength (sys::state &state, dcon::ship_id ship_id) |
float | calculate_army_combined_reinforce (sys::state &state, dcon::army_id a) |
float | regiment_calculate_reinforcement (sys::state &state, dcon::regiment_fat_id reg, float combined) |
float | unit_calculate_reinforcement (sys::state &state, dcon::regiment_id reg_id) |
void | reinforce_regiments (sys::state &state) |
float | calculate_navy_combined_reinforce (sys::state &state, dcon::navy_id navy_id) |
float | unit_calculate_reinforcement (sys::state &state, dcon::ship_id ship_id) |
float | ship_calculate_reinforcement (sys::state &state, dcon::ship_id ship_id, float combined) |
void | repair_ships (sys::state &state) |
void | start_mobilization (sys::state &state, dcon::nation_id n) |
void | end_mobilization (sys::state &state, dcon::nation_id n) |
void | advance_mobilizations (sys::state &state) |
bool | can_retreat_from_battle (sys::state &state, dcon::naval_battle_id battle) |
bool | can_retreat_from_battle (sys::state &state, dcon::land_battle_id battle) |
bool | state_claimed_in_war (sys::state &state, dcon::war_id w, dcon::nation_id from, dcon::nation_id target, dcon::state_definition_id cb_state) |
bool | war_goal_would_be_duplicate (sys::state &state, dcon::nation_id source, dcon::war_id w, dcon::nation_id target, dcon::cb_type_id cb_type, dcon::state_definition_id cb_state, dcon::national_identity_id cb_tag, dcon::nation_id cb_secondary_nation) |
void | update_blackflag_status (sys::state &state) |
bool | rebel_army_in_province (sys::state &state, dcon::province_id p) |
dcon::province_id | find_land_rally_pt (sys::state &state, dcon::nation_id by, dcon::province_id start) |
dcon::province_id | find_naval_rally_pt (sys::state &state, dcon::nation_id by, dcon::province_id start) |
void | move_land_to_merge (sys::state &state, dcon::nation_id by, dcon::army_id a, dcon::province_id start, dcon::province_id dest) |
void | move_navy_to_merge (sys::state &state, dcon::nation_id by, dcon::navy_id a, dcon::province_id start, dcon::province_id dest) |
bool | pop_eligible_for_mobilization (sys::state &state, dcon::pop_id p) |
void | disband_regiment_w_pop_death (sys::state &state, dcon::regiment_id reg_id) |
template<typename T > | |
auto | province_is_blockaded (sys::state const &state, T ids) |
template<typename T > | |
auto | province_is_under_siege (sys::state const &state, T ids) |
template<typename T > | |
auto | battle_is_ongoing_in_province (sys::state const &state, T ids) |
Variables | |
constexpr float | org_dam_mul = 0.18f |
constexpr float | str_dam_mul = 0.14f |
constexpr float | combat_modifier_table [] |
constexpr float | siege_speed_mul = 1.0f / 50.0f |
constexpr uint8_t | defender_bonus_crossing_mask = 0xC0 |
constexpr uint8_t | defender_bonus_crossing_none = 0x00 |
constexpr uint8_t | defender_bonus_crossing_river = 0x40 |
constexpr uint8_t | defender_bonus_crossing_sea = 0x80 |
constexpr uint8_t | defender_bonus_dig_in_mask = 0x3F |
constexpr int32_t | days_before_retreat = 11 |
|
strong |
Enumerator | |
---|---|
indecisive | |
attacker_won | |
defender_won |
Definition at line 256 of file military.hpp.
|
strong |
Enumerator | |
---|---|
none | |
river | |
sea |
Definition at line 457 of file military.hpp.
|
strong |
Enumerator | |
---|---|
support | |
big_ship | |
cavalry | |
transport | |
light_ship | |
special | |
infantry |
Definition at line 93 of file military.hpp.
|
strong |
Enumerator | |
---|---|
draw | |
attacker_won | |
defender_won |
Definition at line 411 of file military.hpp.
|
strong |
Enumerator | |
---|---|
none | |
attacker | |
defender |
Definition at line 314 of file military.hpp.
void military::add_army_to_battle | ( | sys::state & | state, |
dcon::army_id | a, | ||
dcon::land_battle_id | b, | ||
war_role | r | ||
) |
Definition at line 4312 of file military.cpp.
void military::add_cb | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::cb_type_id | cb, | ||
dcon::nation_id | target, | ||
dcon::state_definition_id | target_state = dcon::state_definition_id{} |
||
) |
Definition at line 1456 of file military.cpp.
void military::add_navy_to_battle | ( | sys::state & | state, |
dcon::navy_id | n, | ||
dcon::naval_battle_id | b, | ||
war_role | r | ||
) |
Definition at line 4516 of file military.cpp.
void military::add_to_war | ( | sys::state & | state, |
dcon::war_id | w, | ||
dcon::nation_id | n, | ||
bool | as_attacker, | ||
bool | on_war_creation | ||
) |
Definition at line 2368 of file military.cpp.
void military::add_truce | ( | sys::state & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b, | ||
int32_t | days | ||
) |
Definition at line 3493 of file military.cpp.
void military::add_truce_between_sides | ( | sys::state & | state, |
dcon::war_id | w, | ||
int32_t | months | ||
) |
Definition at line 3443 of file military.cpp.
void military::add_truce_from_nation | ( | sys::state & | state, |
dcon::war_id | w, | ||
dcon::nation_id | n, | ||
int32_t | months | ||
) |
Definition at line 3473 of file military.cpp.
void military::add_wargoal | ( | sys::state & | state, |
dcon::war_id | wfor, | ||
dcon::nation_id | added_by, | ||
dcon::nation_id | target, | ||
dcon::cb_type_id | type, | ||
dcon::state_definition_id | sd, | ||
dcon::national_identity_id | tag, | ||
dcon::nation_id | secondary_nation | ||
) |
Definition at line 2668 of file military.cpp.
void military::adjust_leader_prestige | ( | sys::state & | state, |
dcon::leader_id | l, | ||
float | value | ||
) |
Definition at line 4895 of file military.cpp.
void military::adjust_regiment_experience | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::regiment_id | l, | ||
float | value | ||
) |
Definition at line 4900 of file military.cpp.
void military::adjust_ship_experience | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::ship_id | r, | ||
float | value | ||
) |
Definition at line 4909 of file military.cpp.
void military::advance_mobilizations | ( | sys::state & | state | ) |
void military::apply_attrition | ( | sys::state & | state | ) |
void military::apply_base_unit_stat_modifiers | ( | sys::state & | state | ) |
void military::apply_regiment_damage | ( | sys::state & | state | ) |
bool military::are_allied_in_war | ( | sys::state const & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b | ||
) |
Definition at line 662 of file military.cpp.
bool military::are_at_war | ( | sys::state const & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b | ||
) |
bool military::are_in_common_war | ( | sys::state const & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b | ||
) |
void military::army_arrives_in_province | ( | sys::state & | state, |
dcon::army_id | a, | ||
dcon::province_id | p, | ||
crossing_type | crossing, | ||
dcon::land_battle_id | from | ||
) |
sys::date military::arrival_time_to | ( | sys::state & | state, |
dcon::army_id | a, | ||
dcon::province_id | p | ||
) |
sys::date military::arrival_time_to | ( | sys::state & | state, |
dcon::navy_id | n, | ||
dcon::province_id | p | ||
) |
Definition at line 4298 of file military.cpp.
int32_t military::attacker_peace_cost | ( | sys::state & | state, |
dcon::war_id | war | ||
) |
Definition at line 1941 of file military.cpp.
bool military::attackers_have_status_quo_wargoal | ( | sys::state const & | state, |
dcon::war_id | w | ||
) |
Definition at line 775 of file military.cpp.
float military::attrition_amount | ( | sys::state & | state, |
dcon::army_id | a | ||
) |
float military::attrition_amount | ( | sys::state & | state, |
dcon::navy_id | a | ||
) |
auto military::battle_is_ongoing_in_province | ( | sys::state const & | state, |
T | ids | ||
) |
template auto military::battle_is_ongoing_in_province< ve::tagged_vector< dcon::province_id > > | ( | sys::state const & | , |
ve::tagged_vector< dcon::province_id > | |||
) |
float military::calculate_army_combined_reinforce | ( | sys::state & | state, |
dcon::army_id | a | ||
) |
Definition at line 7343 of file military.cpp.
float military::calculate_navy_combined_reinforce | ( | sys::state & | state, |
dcon::navy_id | navy_id | ||
) |
Definition at line 7416 of file military.cpp.
void military::call_attacker_allies | ( | sys::state & | state, |
dcon::war_id | wfor | ||
) |
Definition at line 2648 of file military.cpp.
void military::call_defender_allies | ( | sys::state & | state, |
dcon::war_id | wfor | ||
) |
Definition at line 2617 of file military.cpp.
bool military::can_add_always_cb_to_war | ( | sys::state & | state, |
dcon::nation_id | actor, | ||
dcon::nation_id | target, | ||
dcon::cb_type_id | cb, | ||
dcon::war_id | w | ||
) |
Definition at line 260 of file military.cpp.
bool military::can_embark_onto_sea_tile | ( | sys::state & | state, |
dcon::nation_id | from, | ||
dcon::province_id | p, | ||
dcon::army_id | a | ||
) |
bool military::can_retreat_from_battle | ( | sys::state & | state, |
dcon::land_battle_id | battle | ||
) |
Definition at line 7648 of file military.cpp.
bool military::can_retreat_from_battle | ( | sys::state & | state, |
dcon::naval_battle_id | battle | ||
) |
bool military::can_use_cb_against | ( | sys::state & | state, |
dcon::nation_id | from, | ||
dcon::nation_id | target | ||
) |
Definition at line 245 of file military.cpp.
float military::cb_addition_infamy_cost | ( | sys::state & | state, |
dcon::war_id | war, | ||
dcon::cb_type_id | type, | ||
dcon::nation_id | from, | ||
dcon::nation_id | target, | ||
dcon::state_definition_id | cb_state | ||
) |
Definition at line 2038 of file military.cpp.
bool military::cb_conditions_satisfied | ( | sys::state & | state, |
dcon::nation_id | actor, | ||
dcon::nation_id | target, | ||
dcon::cb_type_id | cb | ||
) |
Definition at line 404 of file military.cpp.
float military::cb_infamy | ( | sys::state & | state, |
dcon::cb_type_id | t, | ||
dcon::nation_id | target, | ||
dcon::state_definition_id | cb_state | ||
) |
Definition at line 1519 of file military.cpp.
float military::cb_infamy_country_modifier | ( | sys::state & | state, |
dcon::nation_id | target | ||
) |
Definition at line 1461 of file military.cpp.
float military::cb_infamy_state_modifier | ( | sys::state & | state, |
dcon::nation_id | target, | ||
dcon::state_definition_id | cb_state | ||
) |
Definition at line 1485 of file military.cpp.
bool military::cb_instance_conditions_satisfied | ( | sys::state & | state, |
dcon::nation_id | actor, | ||
dcon::nation_id | target, | ||
dcon::cb_type_id | cb, | ||
dcon::state_definition_id | st, | ||
dcon::national_identity_id | tag, | ||
dcon::nation_id | secondary | ||
) |
Definition at line 471 of file military.cpp.
bool military::cb_requires_selection_of_a_liberatable_tag | ( | sys::state const & | state, |
dcon::cb_type_id | t | ||
) |
Definition at line 2061 of file military.cpp.
bool military::cb_requires_selection_of_a_state | ( | sys::state const & | state, |
dcon::cb_type_id | t | ||
) |
Definition at line 2065 of file military.cpp.
bool military::cb_requires_selection_of_a_valid_nation | ( | sys::state const & | state, |
dcon::cb_type_id | t | ||
) |
Definition at line 2057 of file military.cpp.
void military::cleanup_army | ( | sys::state & | state, |
dcon::army_id | n | ||
) |
void military::cleanup_navy | ( | sys::state & | state, |
dcon::navy_id | n | ||
) |
void military::cleanup_war | ( | sys::state & | state, |
dcon::war_id | w, | ||
war_result | result | ||
) |
Definition at line 2848 of file military.cpp.
bool military::compute_blockade_status | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
Definition at line 576 of file military.cpp.
int32_t military::cost_of_peace_offer | ( | sys::state & | state, |
dcon::peace_offer_id | offer | ||
) |
Definition at line 1924 of file military.cpp.
int32_t military::count_armies | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 2195 of file military.cpp.
leader_counts military::count_leaders | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 2185 of file military.cpp.
int32_t military::count_navies | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 2199 of file military.cpp.
dcon::regiment_id military::create_new_regiment | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::unit_type_id | t | ||
) |
Definition at line 2306 of file military.cpp.
dcon::ship_id military::create_new_ship | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::unit_type_id | t | ||
) |
Definition at line 2317 of file military.cpp.
dcon::war_id military::create_war | ( | sys::state & | state, |
dcon::nation_id | primary_attacker, | ||
dcon::nation_id | primary_defender, | ||
dcon::cb_type_id | primary_wargoal, | ||
dcon::state_definition_id | primary_wargoal_state, | ||
dcon::national_identity_id | primary_wargoal_tag, | ||
dcon::nation_id | primary_wargoal_secondary | ||
) |
Definition at line 2509 of file military.cpp.
float military::crisis_cb_addition_infamy_cost | ( | sys::state & | state, |
dcon::cb_type_id | type, | ||
dcon::nation_id | from, | ||
dcon::nation_id | target, | ||
dcon::state_definition_id | cb_state | ||
) |
Definition at line 2030 of file military.cpp.
void military::daily_leaders_update | ( | sys::state & | state | ) |
Definition at line 2258 of file military.cpp.
int32_t military::defender_peace_cost | ( | sys::state & | state, |
dcon::war_id | war | ||
) |
Definition at line 1952 of file military.cpp.
bool military::defenders_have_non_status_quo_wargoal | ( | sys::state const & | state, |
dcon::war_id | w | ||
) |
Definition at line 760 of file military.cpp.
bool military::defenders_have_status_quo_wargoal | ( | sys::state const & | state, |
dcon::war_id | w | ||
) |
Definition at line 768 of file military.cpp.
float military::directed_warscore | ( | sys::state & | state, |
dcon::war_id | w, | ||
dcon::nation_id | primary, | ||
dcon::nation_id | secondary | ||
) |
void military::disband_regiment_w_pop_death | ( | sys::state & | state, |
dcon::regiment_id | reg_id | ||
) |
Definition at line 7900 of file military.cpp.
float military::effective_army_speed | ( | sys::state & | state, |
dcon::army_id | a | ||
) |
float military::effective_navy_speed | ( | sys::state & | state, |
dcon::navy_id | n | ||
) |
void military::eject_ships | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
void military::end_battle | ( | sys::state & | state, |
dcon::land_battle_id | b, | ||
battle_result | result | ||
) |
void military::end_battle | ( | sys::state & | state, |
dcon::naval_battle_id | b, | ||
battle_result | result | ||
) |
Definition at line 5120 of file military.cpp.
void military::end_mobilization | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
void military::end_wars_between | ( | sys::state & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b | ||
) |
Definition at line 2343 of file military.cpp.
void military::execute_cb_discovery | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 2071 of file military.cpp.
dcon::pop_id military::find_available_soldier | ( | sys::state & | state, |
dcon::province_id | p, | ||
bool | require_accepted | ||
) |
Definition at line 1067 of file military.cpp.
dcon::pop_id military::find_available_soldier | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::culture_id | pop_culture | ||
) |
dcon::navy_id military::find_embark_target | ( | sys::state & | state, |
dcon::nation_id | from, | ||
dcon::province_id | p, | ||
dcon::army_id | a | ||
) |
dcon::province_id military::find_land_rally_pt | ( | sys::state & | state, |
dcon::nation_id | by, | ||
dcon::province_id | start | ||
) |
Definition at line 7782 of file military.cpp.
dcon::province_id military::find_naval_rally_pt | ( | sys::state & | state, |
dcon::nation_id | by, | ||
dcon::province_id | start | ||
) |
Definition at line 7802 of file military.cpp.
dcon::war_id military::find_war_between | ( | sys::state const & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b | ||
) |
Definition at line 718 of file military.cpp.
float military::fractional_distance_covered | ( | sys::state & | state, |
dcon::army_id | a | ||
) |
float military::fractional_distance_covered | ( | sys::state & | state, |
dcon::navy_id | a | ||
) |
Definition at line 6821 of file military.cpp.
int32_t military::free_transport_capacity | ( | sys::state & | state, |
dcon::navy_id | n | ||
) |
dcon::unit_type_id military::get_best_artillery | ( | sys::state & | state, |
dcon::nation_id | n, | ||
bool | primary_culture | ||
) |
Definition at line 130 of file military.cpp.
dcon::unit_type_id military::get_best_cavalry | ( | sys::state & | state, |
dcon::nation_id | n, | ||
bool | primary_culture | ||
) |
Definition at line 158 of file military.cpp.
dcon::unit_type_id military::get_best_infantry | ( | sys::state & | state, |
dcon::nation_id | n, | ||
bool | primary_culture | ||
) |
Definition at line 96 of file military.cpp.
dcon::nation_id military::get_land_battle_lead_attacker | ( | sys::state & | state, |
dcon::land_battle_id | b | ||
) |
dcon::nation_id military::get_land_battle_lead_defender | ( | sys::state & | state, |
dcon::land_battle_id | b | ||
) |
float military::get_leader_select_score | ( | sys::state & | state, |
dcon::leader_id | l | ||
) |
Definition at line 4736 of file military.cpp.
dcon::nation_id military::get_naval_battle_lead_attacker | ( | sys::state & | state, |
dcon::naval_battle_id | b | ||
) |
dcon::nation_id military::get_naval_battle_lead_defender | ( | sys::state & | state, |
dcon::naval_battle_id | b | ||
) |
economy::commodity_set military::get_required_supply | ( | sys::state & | state, |
dcon::nation_id | owner, | ||
dcon::army_id | army | ||
) |
economy::commodity_set military::get_required_supply | ( | sys::state & | state, |
dcon::nation_id | owner, | ||
dcon::navy_id | navy | ||
) |
Definition at line 7245 of file military.cpp.
war_role military::get_role | ( | sys::state const & | state, |
dcon::war_id | w, | ||
dcon::nation_id | n | ||
) |
Definition at line 2501 of file military.cpp.
std::string military::get_war_name | ( | sys::state & | , |
dcon::war_id | |||
) |
Definition at line 2575 of file military.cpp.
void military::give_military_access | ( | sys::state & | state, |
dcon::nation_id | accessing_nation, | ||
dcon::nation_id | target | ||
) |
bool military::has_truce_with | ( | sys::state & | state, |
dcon::nation_id | attacker, | ||
dcon::nation_id | target | ||
) |
Definition at line 2296 of file military.cpp.
void military::implement_peace_offer | ( | sys::state & | state, |
dcon::peace_offer_id | offer | ||
) |
Definition at line 3505 of file military.cpp.
void military::implement_war_goal | ( | sys::state & | state, |
dcon::war_id | war, | ||
dcon::cb_type_id | wargoal, | ||
dcon::nation_id | from, | ||
dcon::nation_id | target, | ||
dcon::nation_id | secondary_nation, | ||
dcon::state_definition_id | wargoal_state, | ||
dcon::national_identity_id | wargoal_t | ||
) |
Definition at line 2937 of file military.cpp.
void military::increase_dig_in | ( | sys::state & | state | ) |
participation military::internal_find_war_between | ( | sys::state const & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b | ||
) |
Definition at line 703 of file military.cpp.
void military::invalidate_unowned_wargoals | ( | sys::state & | state | ) |
bool military::is_artillery_better | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::unit_type_id | best, | ||
dcon::unit_type_id | given | ||
) |
bool military::is_attacker | ( | sys::state & | state, |
dcon::war_id | w, | ||
dcon::nation_id | n | ||
) |
Definition at line 2493 of file military.cpp.
bool military::is_cavalry_better | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::unit_type_id | best, | ||
dcon::unit_type_id | given | ||
) |
bool military::is_civil_war | ( | sys::state const & | state, |
dcon::war_id | w | ||
) |
bool military::is_defender_wargoal | ( | sys::state const & | state, |
dcon::war_id | w, | ||
dcon::wargoal_id | wg | ||
) |
bool military::is_infantry_better | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::unit_type_id | best, | ||
dcon::unit_type_id | given | ||
) |
bool military::joining_as_attacker_would_break_truce | ( | sys::state & | state, |
dcon::nation_id | a, | ||
dcon::war_id | w | ||
) |
Definition at line 783 of file military.cpp.
bool military::joining_war_does_not_violate_constraints | ( | sys::state const & | state, |
dcon::nation_id | a, | ||
dcon::war_id | w, | ||
bool | as_attacker | ||
) |
void military::kill_leader | ( | sys::state & | state, |
dcon::leader_id | l | ||
) |
Definition at line 2150 of file military.cpp.
bool military::leader_is_in_combat | ( | sys::state & | state, |
dcon::leader_id | l | ||
) |
Definition at line 2106 of file military.cpp.
float military::local_army_weight | ( | sys::state & | state, |
dcon::province_id | prov | ||
) |
Definition at line 5393 of file military.cpp.
float military::local_army_weight_max | ( | sys::state & | state, |
dcon::province_id | prov | ||
) |
float military::local_enemy_army_weight_max | ( | sys::state & | state, |
dcon::province_id | prov, | ||
dcon::nation_id | nation | ||
) |
int32_t military::main_culture_regiments_created_from_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
Definition at line 929 of file military.cpp.
int32_t military::main_culture_regiments_max_possible_from_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
Definition at line 939 of file military.cpp.
int32_t military::main_culture_regiments_under_construction_in_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
Definition at line 996 of file military.cpp.
uint8_t military::make_dice_rolls | ( | sys::state & | state, |
uint32_t | seed | ||
) |
Definition at line 6508 of file military.cpp.
dcon::leader_id military::make_new_leader | ( | sys::state & | state, |
dcon::nation_id | n, | ||
bool | is_general | ||
) |
Definition at line 2116 of file military.cpp.
float military::mobilization_impact | ( | sys::state const & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1344 of file military.cpp.
float military::mobilization_size | ( | sys::state const & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1334 of file military.cpp.
int32_t military::mobilized_regiments_created_from_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
int32_t military::mobilized_regiments_pop_limit | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1166 of file military.cpp.
int32_t military::mobilized_regiments_possible_from_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
Definition at line 1137 of file military.cpp.
void military::monthly_leaders_update | ( | sys::state & | state | ) |
Definition at line 2204 of file military.cpp.
void military::move_land_to_merge | ( | sys::state & | state, |
dcon::nation_id | by, | ||
dcon::army_id | a, | ||
dcon::province_id | start, | ||
dcon::province_id | dest | ||
) |
void military::move_navy_to_merge | ( | sys::state & | state, |
dcon::nation_id | by, | ||
dcon::navy_id | a, | ||
dcon::province_id | start, | ||
dcon::province_id | dest | ||
) |
Definition at line 7856 of file military.cpp.
int32_t military::movement_time_from_to | ( | sys::state & | state, |
dcon::army_id | a, | ||
dcon::province_id | from, | ||
dcon::province_id | to | ||
) |
int32_t military::movement_time_from_to | ( | sys::state & | state, |
dcon::navy_id | n, | ||
dcon::province_id | from, | ||
dcon::province_id | to | ||
) |
Definition at line 4271 of file military.cpp.
uint32_t military::naval_supply_from_naval_base | ( | sys::state & | state, |
dcon::province_id | prov, | ||
dcon::nation_id | nation | ||
) |
Definition at line 1256 of file military.cpp.
int32_t military::naval_supply_points | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1249 of file military.cpp.
int32_t military::naval_supply_points_used | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 1252 of file military.cpp.
void military::navy_arrives_in_province | ( | sys::state & | state, |
dcon::navy_id | n, | ||
dcon::province_id | p, | ||
dcon::naval_battle_id | from | ||
) |
int32_t military::peace_cost | ( | sys::state & | state, |
dcon::war_id | war, | ||
dcon::cb_type_id | wargoal, | ||
dcon::nation_id | from, | ||
dcon::nation_id | target, | ||
dcon::nation_id | secondary_nation, | ||
dcon::state_definition_id | wargoal_state, | ||
dcon::national_identity_id | wargoal_tag | ||
) |
Definition at line 1799 of file military.cpp.
int32_t military::peace_offer_truce_months | ( | sys::state & | state, |
dcon::peace_offer_id | offer | ||
) |
Definition at line 1934 of file military.cpp.
float military::peacetime_attrition_limit | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | prov | ||
) |
bool military::pop_eligible_for_mobilization | ( | sys::state & | state, |
dcon::pop_id | p | ||
) |
void military::populate_war_text_subsitutions | ( | sys::state & | state, |
dcon::war_id | w, | ||
text::substitution_map & | sub | ||
) |
Definition at line 2352 of file military.cpp.
float military::primary_warscore | ( | sys::state & | state, |
dcon::war_id | w | ||
) |
float military::primary_warscore_from_battles | ( | sys::state & | state, |
dcon::war_id | w | ||
) |
float military::primary_warscore_from_blockades | ( | sys::state & | state, |
dcon::war_id | w | ||
) |
float military::primary_warscore_from_occupation | ( | sys::state & | state, |
dcon::war_id | w | ||
) |
float military::primary_warscore_from_war_goals | ( | sys::state & | state, |
dcon::war_id | w | ||
) |
bool military::province_is_blockaded | ( | sys::state const & | state, |
dcon::province_id | ids | ||
) |
auto military::province_is_blockaded | ( | sys::state const & | state, |
T | ids | ||
) |
Definition at line 7 of file military_templates.hpp.
template auto military::province_is_blockaded< ve::tagged_vector< dcon::province_id > > | ( | sys::state const & | , |
ve::tagged_vector< dcon::province_id > | |||
) |
bool military::province_is_under_siege | ( | sys::state const & | state, |
dcon::province_id | ids | ||
) |
auto military::province_is_under_siege | ( | sys::state const & | state, |
T | ids | ||
) |
Definition at line 12 of file military_templates.hpp.
template auto military::province_is_under_siege< ve::tagged_vector< dcon::province_id > > | ( | sys::state const & | , |
ve::tagged_vector< dcon::province_id > | |||
) |
int32_t military::province_point_cost | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::nation_id | n | ||
) |
Definition at line 1771 of file military.cpp.
bool military::rebel_army_in_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
void military::recover_org | ( | sys::state & | state | ) |
float military::recruited_pop_fraction | ( | sys::state const & | state, |
dcon::nation_id | n | ||
) |
void military::regenerate_land_unit_average | ( | sys::state & | state | ) |
void military::regenerate_ship_scores | ( | sys::state & | state | ) |
void military::regenerate_total_regiment_counts | ( | sys::state & | state | ) |
float military::regiment_calculate_reinforcement | ( | sys::state & | state, |
dcon::regiment_fat_id | reg, | ||
float | combined | ||
) |
Definition at line 7371 of file military.cpp.
int32_t military::regiments_created_from_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
int32_t military::regiments_max_possible_from_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
int32_t military::regiments_possible_from_pop | ( | sys::state & | state, |
dcon::pop_id | p | ||
) |
Definition at line 851 of file military.cpp.
int32_t military::regiments_under_construction_in_province | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
void military::reinforce_regiments | ( | sys::state & | state | ) |
void military::reject_peace_offer | ( | sys::state & | state, |
dcon::peace_offer_id | offer | ||
) |
Definition at line 3802 of file military.cpp.
float military::relative_attrition_amount | ( | sys::state & | state, |
dcon::army_id | a, | ||
dcon::province_id | prov | ||
) |
Definition at line 5434 of file military.cpp.
float military::relative_attrition_amount | ( | sys::state & | state, |
dcon::navy_id | a, | ||
dcon::province_id | prov | ||
) |
void military::remove_from_common_allied_wars | ( | sys::state & | state, |
dcon::nation_id | a, | ||
dcon::nation_id | b | ||
) |
Definition at line 683 of file military.cpp.
void military::remove_from_war | ( | sys::state & | state, |
dcon::war_id | w, | ||
dcon::nation_id | n, | ||
bool | as_loss | ||
) |
Definition at line 2759 of file military.cpp.
void military::remove_military_access | ( | sys::state & | state, |
dcon::nation_id | accessing_nation, | ||
dcon::nation_id | target | ||
) |
Definition at line 2336 of file military.cpp.
void military::repair_ships | ( | sys::state & | state | ) |
void military::reset_unit_stats | ( | sys::state & | state | ) |
void military::restore_unsaved_values | ( | sys::state & | state | ) |
Definition at line 233 of file military.cpp.
bool military::retreat | ( | sys::state & | state, |
dcon::army_id | n | ||
) |
Definition at line 4613 of file military.cpp.
bool military::retreat | ( | sys::state & | state, |
dcon::navy_id | n | ||
) |
Definition at line 4589 of file military.cpp.
void military::run_gc | ( | sys::state & | state | ) |
Definition at line 3314 of file military.cpp.
void military::send_rebel_hunter_to_next_province | ( | sys::state & | state, |
dcon::army_id | ar, | ||
dcon::province_id | prov | ||
) |
Definition at line 6862 of file military.cpp.
void military::set_initial_leaders | ( | sys::state & | state | ) |
Definition at line 2877 of file military.cpp.
float military::ship_calculate_reinforcement | ( | sys::state & | state, |
dcon::ship_id | ship_id, | ||
float | combined | ||
) |
Definition at line 7443 of file military.cpp.
bool military::siege_potential | ( | sys::state & | state, |
dcon::nation_id | army_controller, | ||
dcon::nation_id | province_controller | ||
) |
bool military::standard_war_joining_is_possible | ( | sys::state & | state, |
dcon::war_id | wfor, | ||
dcon::nation_id | n, | ||
bool | as_attacker | ||
) |
Definition at line 2603 of file military.cpp.
void military::start_mobilization | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 7472 of file military.cpp.
bool military::state_claimed_in_war | ( | sys::state & | state, |
dcon::war_id | w, | ||
dcon::nation_id | from, | ||
dcon::nation_id | target, | ||
dcon::state_definition_id | cb_state | ||
) |
Definition at line 7652 of file military.cpp.
bool military::state_has_naval_base | ( | sys::state const & | state, |
dcon::state_instance_id | si | ||
) |
uint32_t military::state_naval_base_level | ( | sys::state const & | state, |
dcon::state_instance_id | si | ||
) |
uint32_t military::state_railroad_level | ( | sys::state const & | state, |
dcon::state_instance_id | si | ||
) |
float military::successful_cb_prestige | ( | sys::state & | state, |
dcon::cb_type_id | t, | ||
dcon::nation_id | actor | ||
) |
Definition at line 1964 of file military.cpp.
int32_t military::supply_limit_in_province | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::province_id | p | ||
) |
void military::take_from_sphere | ( | sys::state & | state, |
dcon::nation_id | member, | ||
dcon::nation_id | new_gp | ||
) |
Definition at line 2902 of file military.cpp.
dcon::nation_id military::tech_nation_for_regiment | ( | sys::state & | state, |
dcon::regiment_id | r | ||
) |
Definition at line 5328 of file military.cpp.
int32_t military::total_regiments | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
int32_t military::total_ships | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
int32_t military::transport_capacity | ( | sys::state & | state, |
dcon::navy_id | n | ||
) |
float military::truce_break_cb_infamy | ( | sys::state & | state, |
dcon::cb_type_id | t, | ||
dcon::nation_id | target, | ||
dcon::state_definition_id | cb_state | ||
) |
Definition at line 1709 of file military.cpp.
float military::truce_break_cb_militancy | ( | sys::state & | state, |
dcon::cb_type_id | t | ||
) |
Definition at line 1648 of file military.cpp.
float military::truce_break_cb_prestige_cost | ( | sys::state & | state, |
dcon::cb_type_id | t | ||
) |
Definition at line 1587 of file military.cpp.
float military::unit_calculate_reinforcement | ( | sys::state & | state, |
dcon::regiment_id | reg_id | ||
) |
Definition at line 7382 of file military.cpp.
float military::unit_calculate_reinforcement | ( | sys::state & | state, |
dcon::ship_id | ship_id | ||
) |
Definition at line 7434 of file military.cpp.
float military::unit_get_strength | ( | sys::state & | state, |
dcon::regiment_id | regiment_id | ||
) |
Definition at line 7334 of file military.cpp.
float military::unit_get_strength | ( | sys::state & | state, |
dcon::ship_id | ship_id | ||
) |
Definition at line 7338 of file military.cpp.
void military::update_all_recruitable_regiments | ( | sys::state & | state | ) |
Definition at line 1181 of file military.cpp.
void military::update_battle_leaders | ( | sys::state & | state, |
dcon::land_battle_id | b | ||
) |
void military::update_battle_leaders | ( | sys::state & | state, |
dcon::naval_battle_id | b | ||
) |
Definition at line 4784 of file military.cpp.
void military::update_blackflag_status | ( | sys::state & | state | ) |
void military::update_blackflag_status | ( | sys::state & | state, |
dcon::province_id | p | ||
) |
void military::update_blockade_status | ( | sys::state & | state | ) |
Definition at line 597 of file military.cpp.
void military::update_cbs | ( | sys::state & | state | ) |
Definition at line 1361 of file military.cpp.
void military::update_land_battles | ( | sys::state & | state | ) |
void military::update_movement | ( | sys::state & | state | ) |
void military::update_naval_battles | ( | sys::state & | state | ) |
void military::update_naval_supply_points | ( | sys::state & | state | ) |
Definition at line 1274 of file military.cpp.
void military::update_recruitable_regiments | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
void military::update_siege_progress | ( | sys::state & | state | ) |
void military::update_ticking_war_score | ( | sys::state & | state | ) |
Definition at line 3842 of file military.cpp.
ve::fp_vector military::ve_mobilization_impact | ( | sys::state const & | state, |
ve::tagged_vector< dcon::nation_id > | nations | ||
) |
Definition at line 1355 of file military.cpp.
ve::fp_vector military::ve_mobilization_size | ( | sys::state const & | state, |
ve::tagged_vector< dcon::nation_id > | nations | ||
) |
Definition at line 1339 of file military.cpp.
bool military::war_goal_would_be_duplicate | ( | sys::state & | state, |
dcon::nation_id | source, | ||
dcon::war_id | w, | ||
dcon::nation_id | target, | ||
dcon::cb_type_id | cb_type, | ||
dcon::state_definition_id | cb_state, | ||
dcon::national_identity_id | cb_tag, | ||
dcon::nation_id | cb_secondary_nation | ||
) |
bool military::will_recieve_attrition | ( | sys::state & | state, |
dcon::army_id | a | ||
) |
Definition at line 5352 of file military.cpp.
bool military::will_recieve_attrition | ( | sys::state & | state, |
dcon::navy_id | a | ||
) |
|
inlineconstexpr |
Definition at line 5325 of file military.cpp.
|
inlineconstexpr |
Definition at line 254 of file military.hpp.
|
inlineconstexpr |
Definition at line 87 of file military.hpp.
|
inlineconstexpr |
Definition at line 88 of file military.hpp.
|
inlineconstexpr |
Definition at line 89 of file military.hpp.
|
inlineconstexpr |
Definition at line 90 of file military.hpp.
|
inlineconstexpr |
Definition at line 91 of file military.hpp.
|
inlineconstexpr |
Definition at line 22 of file military.cpp.
|
inlineconstexpr |
Definition at line 6860 of file military.cpp.
|
inlineconstexpr |
Definition at line 23 of file military.cpp.