Project Alice
Loading...
Searching...
No Matches
rebel Namespace Reference

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
 

Function Documentation

◆ add_pop_to_movement()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_pop_to_rebel_faction()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ allow_in_area()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ daily_update_rebel_organization()

void rebel::daily_update_rebel_organization ( sys::state state)

Definition at line 736 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete_faction()

void rebel::delete_faction ( sys::state state,
dcon::rebel_faction_id  reb 
)

Definition at line 711 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute_province_defections()

void rebel::execute_province_defections ( sys::state state)

Definition at line 1049 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute_rebel_victories()

void rebel::execute_rebel_victories ( sys::state state)

Definition at line 1182 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_faction_brigades_active()

int32_t rebel::get_faction_brigades_active ( sys::state state,
dcon::rebel_faction_id  r 
)

Definition at line 1016 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_faction_brigades_ready()

int32_t rebel::get_faction_brigades_ready ( sys::state state,
dcon::rebel_faction_id  r 
)

Definition at line 1012 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_faction_by_type()

dcon::rebel_faction_id rebel::get_faction_by_type ( sys::state state,
dcon::nation_id  n,
dcon::rebel_type_id  r 
)

Definition at line 29 of file rebels.cpp.

Here is the caller graph for this function:

◆ get_faction_organization()

float rebel::get_faction_organization ( sys::state state,
dcon::rebel_faction_id  r 
)

Definition at line 1025 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_faction_revolt_risk()

float rebel::get_faction_revolt_risk ( sys::state state,
dcon::rebel_faction_id  r 
)

Definition at line 1029 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_hunting_targets()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_movement_by_independence()

dcon::movement_id rebel::get_movement_by_independence ( sys::state state,
dcon::nation_id  n,
dcon::national_identity_id  i 
)

Definition at line 21 of file rebels.cpp.

Here is the caller graph for this function:

◆ get_movement_by_position()

dcon::movement_id rebel::get_movement_by_position ( sys::state state,
dcon::nation_id  n,
dcon::issue_option_id  o 
)

Definition at line 14 of file rebels.cpp.

Here is the caller graph for this function:

◆ get_suppression_point_cost()

float rebel::get_suppression_point_cost ( sys::state state,
dcon::movement_id  m 
)

Definition at line 1168 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ issue_is_valid_for_movement()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ movement_is_valid()

bool rebel::movement_is_valid ( sys::state state,
dcon::movement_id  m 
)

Definition at line 174 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pop_is_compatible_with_rebel_faction()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pop_is_compatible_with_rebel_type()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebel_faction_is_valid()

bool rebel::rebel_faction_is_valid ( sys::state state,
dcon::rebel_faction_id  m 
)

Definition at line 354 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebel_hunting_check()

void rebel::rebel_hunting_check ( sys::state state)

Definition at line 808 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebel_name()

std::string rebel::rebel_name ( sys::state state,
dcon::rebel_faction_id  reb 
)

Definition at line 1274 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebel_risings_check()

void rebel::rebel_risings_check ( sys::state state)

Definition at line 905 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_pop_from_movement()

void rebel::remove_pop_from_movement ( sys::state state,
dcon::pop_id  p 
)

Definition at line 120 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_pop_from_rebel_faction()

void rebel::remove_pop_from_rebel_faction ( sys::state state,
dcon::pop_id  p 
)

Definition at line 339 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sort_hunting_targets()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sphere_member_has_ongoing_revolt()

bool rebel::sphere_member_has_ongoing_revolt ( sys::state state,
dcon::nation_id  n 
)

Definition at line 998 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ suppress_movement()

void rebel::suppress_movement ( sys::state state,
dcon::nation_id  n,
dcon::movement_id  m 
)

Definition at line 129 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trigger_revolt()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ turn_movement_into_rebels()

void rebel::turn_movement_into_rebels ( sys::state state,
dcon::movement_id  m 
)

Definition at line 143 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_armies()

void rebel::update_armies ( sys::state state)

Definition at line 1331 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_factions()

void rebel::update_factions ( sys::state state)

Definition at line 720 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_movement_values()

void rebel::update_movement_values ( sys::state state)

Definition at line 37 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_movements()

void rebel::update_movements ( sys::state state)

Definition at line 318 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_pop_movement_membership()

void rebel::update_pop_movement_membership ( sys::state state)

Definition at line 194 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_pop_rebel_membership()

void rebel::update_pop_rebel_membership ( sys::state state)

Definition at line 444 of file rebels.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ org_gain_factor

constexpr float rebel::org_gain_factor = 0.4f
inlineconstexpr

Definition at line 734 of file rebels.cpp.

◆ rebel_size_reduction

constexpr float rebel::rebel_size_reduction = 0.20f
inlineconstexpr

Definition at line 903 of file rebels.cpp.