Project Alice
|
Namespaces | |
namespace | impl |
Functions | |
dcon::movement_id | get_movement_by_position (sys::state &state, dcon::nation_id n, dcon::issue_option_id o) |
dcon::movement_id | get_movement_by_independence (sys::state &state, dcon::nation_id n, dcon::national_identity_id i) |
dcon::rebel_faction_id | get_faction_by_type (sys::state &state, dcon::nation_id n, dcon::rebel_type_id r) |
void | update_movement_values (sys::state &state) |
void | add_pop_to_movement (sys::state &state, dcon::pop_id p, dcon::movement_id m) |
void | remove_pop_from_movement (sys::state &state, dcon::pop_id p) |
void | suppress_movement (sys::state &state, dcon::nation_id n, dcon::movement_id m) |
void | turn_movement_into_rebels (sys::state &state, dcon::movement_id m) |
bool | issue_is_valid_for_movement (sys::state &state, dcon::nation_id nation_within, dcon::issue_option_id i) |
bool | movement_is_valid (sys::state &state, dcon::movement_id m) |
void | update_pop_movement_membership (sys::state &state) |
void | update_movements (sys::state &state) |
void | remove_pop_from_rebel_faction (sys::state &state, dcon::pop_id p) |
void | add_pop_to_rebel_faction (sys::state &state, dcon::pop_id p, dcon::rebel_faction_id m) |
bool | rebel_faction_is_valid (sys::state &state, dcon::rebel_faction_id m) |
bool | pop_is_compatible_with_rebel_faction (sys::state &state, dcon::pop_id p, dcon::rebel_faction_id t) |
bool | pop_is_compatible_with_rebel_type (sys::state &state, dcon::pop_id p, dcon::rebel_type_id t) |
void | update_pop_rebel_membership (sys::state &state) |
void | delete_faction (sys::state &state, dcon::rebel_faction_id reb) |
void | update_factions (sys::state &state) |
void | daily_update_rebel_organization (sys::state &state) |
void | get_hunting_targets (sys::state &state, dcon::nation_id n, std::vector< impl::prov_str > &rebel_provs) |
void | sort_hunting_targets (sys::state &state, impl::arm_str const &ar, std::vector< impl::prov_str > &rebel_provs) |
void | rebel_hunting_check (sys::state &state) |
void | rebel_risings_check (sys::state &state) |
bool | sphere_member_has_ongoing_revolt (sys::state &state, dcon::nation_id n) |
int32_t | get_faction_brigades_ready (sys::state &state, dcon::rebel_faction_id r) |
int32_t | get_faction_brigades_active (sys::state &state, dcon::rebel_faction_id r) |
float | get_faction_organization (sys::state &state, dcon::rebel_faction_id r) |
float | get_faction_revolt_risk (sys::state &state, dcon::rebel_faction_id r) |
void | execute_province_defections (sys::state &state) |
float | get_suppression_point_cost (sys::state &state, dcon::movement_id m) |
void | execute_rebel_victories (sys::state &state) |
void | trigger_revolt (sys::state &state, dcon::nation_id n, dcon::rebel_type_id t, dcon::ideology_id i, dcon::culture_id c, dcon::religion_id r) |
std::string | rebel_name (sys::state &state, dcon::rebel_faction_id reb) |
bool | allow_in_area (sys::state &state, dcon::province_id p, dcon::rebel_faction_id reb) |
void | update_armies (sys::state &state) |
Variables | |
constexpr float | org_gain_factor = 0.4f |
constexpr float | rebel_size_reduction = 0.20f |
void rebel::add_pop_to_movement | ( | sys::state & | state, |
dcon::pop_id | p, | ||
dcon::movement_id | m | ||
) |
Definition at line 114 of file rebels.cpp.
void rebel::add_pop_to_rebel_faction | ( | sys::state & | state, |
dcon::pop_id | p, | ||
dcon::rebel_faction_id | m | ||
) |
Definition at line 347 of file rebels.cpp.
bool rebel::allow_in_area | ( | sys::state & | state, |
dcon::province_id | p, | ||
dcon::rebel_faction_id | reb | ||
) |
Definition at line 1307 of file rebels.cpp.
void rebel::daily_update_rebel_organization | ( | sys::state & | state | ) |
Definition at line 736 of file rebels.cpp.
void rebel::delete_faction | ( | sys::state & | state, |
dcon::rebel_faction_id | reb | ||
) |
Definition at line 711 of file rebels.cpp.
void rebel::execute_province_defections | ( | sys::state & | state | ) |
Definition at line 1049 of file rebels.cpp.
void rebel::execute_rebel_victories | ( | sys::state & | state | ) |
Definition at line 1182 of file rebels.cpp.
int32_t rebel::get_faction_brigades_active | ( | sys::state & | state, |
dcon::rebel_faction_id | r | ||
) |
Definition at line 1016 of file rebels.cpp.
int32_t rebel::get_faction_brigades_ready | ( | sys::state & | state, |
dcon::rebel_faction_id | r | ||
) |
Definition at line 1012 of file rebels.cpp.
dcon::rebel_faction_id rebel::get_faction_by_type | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::rebel_type_id | r | ||
) |
float rebel::get_faction_organization | ( | sys::state & | state, |
dcon::rebel_faction_id | r | ||
) |
Definition at line 1025 of file rebels.cpp.
float rebel::get_faction_revolt_risk | ( | sys::state & | state, |
dcon::rebel_faction_id | r | ||
) |
Definition at line 1029 of file rebels.cpp.
void rebel::get_hunting_targets | ( | sys::state & | state, |
dcon::nation_id | n, | ||
std::vector< impl::prov_str > & | rebel_provs | ||
) |
Definition at line 783 of file rebels.cpp.
dcon::movement_id rebel::get_movement_by_independence | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::national_identity_id | i | ||
) |
dcon::movement_id rebel::get_movement_by_position | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::issue_option_id | o | ||
) |
float rebel::get_suppression_point_cost | ( | sys::state & | state, |
dcon::movement_id | m | ||
) |
Definition at line 1168 of file rebels.cpp.
bool rebel::issue_is_valid_for_movement | ( | sys::state & | state, |
dcon::nation_id | nation_within, | ||
dcon::issue_option_id | i | ||
) |
Definition at line 158 of file rebels.cpp.
bool rebel::movement_is_valid | ( | sys::state & | state, |
dcon::movement_id | m | ||
) |
Definition at line 174 of file rebels.cpp.
bool rebel::pop_is_compatible_with_rebel_faction | ( | sys::state & | state, |
dcon::pop_id | p, | ||
dcon::rebel_faction_id | t | ||
) |
Definition at line 376 of file rebels.cpp.
bool rebel::pop_is_compatible_with_rebel_type | ( | sys::state & | state, |
dcon::pop_id | p, | ||
dcon::rebel_type_id | t | ||
) |
Definition at line 413 of file rebels.cpp.
bool rebel::rebel_faction_is_valid | ( | sys::state & | state, |
dcon::rebel_faction_id | m | ||
) |
Definition at line 354 of file rebels.cpp.
void rebel::rebel_hunting_check | ( | sys::state & | state | ) |
Definition at line 808 of file rebels.cpp.
std::string rebel::rebel_name | ( | sys::state & | state, |
dcon::rebel_faction_id | reb | ||
) |
Definition at line 1274 of file rebels.cpp.
void rebel::rebel_risings_check | ( | sys::state & | state | ) |
Definition at line 905 of file rebels.cpp.
void rebel::remove_pop_from_movement | ( | sys::state & | state, |
dcon::pop_id | p | ||
) |
Definition at line 120 of file rebels.cpp.
void rebel::remove_pop_from_rebel_faction | ( | sys::state & | state, |
dcon::pop_id | p | ||
) |
Definition at line 339 of file rebels.cpp.
void rebel::sort_hunting_targets | ( | sys::state & | state, |
impl::arm_str const & | ar, | ||
std::vector< impl::prov_str > & | rebel_provs | ||
) |
Definition at line 793 of file rebels.cpp.
bool rebel::sphere_member_has_ongoing_revolt | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 998 of file rebels.cpp.
void rebel::suppress_movement | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::movement_id | m | ||
) |
Definition at line 129 of file rebels.cpp.
void rebel::trigger_revolt | ( | sys::state & | state, |
dcon::nation_id | n, | ||
dcon::rebel_type_id | t, | ||
dcon::ideology_id | i, | ||
dcon::culture_id | c, | ||
dcon::religion_id | r | ||
) |
Definition at line 1269 of file rebels.cpp.
void rebel::turn_movement_into_rebels | ( | sys::state & | state, |
dcon::movement_id | m | ||
) |
Definition at line 143 of file rebels.cpp.
void rebel::update_armies | ( | sys::state & | state | ) |
Definition at line 1331 of file rebels.cpp.
void rebel::update_factions | ( | sys::state & | state | ) |
Definition at line 720 of file rebels.cpp.
void rebel::update_movement_values | ( | sys::state & | state | ) |
Definition at line 37 of file rebels.cpp.
void rebel::update_movements | ( | sys::state & | state | ) |
Definition at line 318 of file rebels.cpp.
void rebel::update_pop_movement_membership | ( | sys::state & | state | ) |
Definition at line 194 of file rebels.cpp.
void rebel::update_pop_rebel_membership | ( | sys::state & | state | ) |
Definition at line 444 of file rebels.cpp.
|
inlineconstexpr |
Definition at line 734 of file rebels.cpp.
|
inlineconstexpr |
Definition at line 903 of file rebels.cpp.