Project Alice
Loading...
Searching...
No Matches
rebels.cpp File Reference
#include "rebels.hpp"
#include "system_state.hpp"
#include "triggers.hpp"
#include "ai.hpp"
#include "effects.hpp"
#include "demographics.hpp"
#include "gui_event.hpp"
#include "politics.hpp"
#include "province_templates.hpp"
#include "prng.hpp"
Include dependency graph for rebels.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rebel
 

Functions

dcon::movement_id rebel::get_movement_by_position (sys::state &state, dcon::nation_id n, dcon::issue_option_id o)
 
dcon::movement_id rebel::get_movement_by_independence (sys::state &state, dcon::nation_id n, dcon::national_identity_id i)
 
dcon::rebel_faction_id rebel::get_faction_by_type (sys::state &state, dcon::nation_id n, dcon::rebel_type_id r)
 
void rebel::update_movement_values (sys::state &state)
 
void rebel::add_pop_to_movement (sys::state &state, dcon::pop_id p, dcon::movement_id m)
 
void rebel::remove_pop_from_movement (sys::state &state, dcon::pop_id p)
 
void rebel::suppress_movement (sys::state &state, dcon::nation_id n, dcon::movement_id m)
 
void rebel::turn_movement_into_rebels (sys::state &state, dcon::movement_id m)
 
bool rebel::issue_is_valid_for_movement (sys::state &state, dcon::nation_id nation_within, dcon::issue_option_id i)
 
bool rebel::movement_is_valid (sys::state &state, dcon::movement_id m)
 
void rebel::update_pop_movement_membership (sys::state &state)
 
void rebel::update_movements (sys::state &state)
 
void rebel::remove_pop_from_rebel_faction (sys::state &state, dcon::pop_id p)
 
void rebel::add_pop_to_rebel_faction (sys::state &state, dcon::pop_id p, dcon::rebel_faction_id m)
 
bool rebel::rebel_faction_is_valid (sys::state &state, dcon::rebel_faction_id m)
 
bool rebel::pop_is_compatible_with_rebel_faction (sys::state &state, dcon::pop_id p, dcon::rebel_faction_id t)
 
bool rebel::pop_is_compatible_with_rebel_type (sys::state &state, dcon::pop_id p, dcon::rebel_type_id t)
 
void rebel::update_pop_rebel_membership (sys::state &state)
 
void rebel::delete_faction (sys::state &state, dcon::rebel_faction_id reb)
 
void rebel::update_factions (sys::state &state)
 
void rebel::daily_update_rebel_organization (sys::state &state)
 
void rebel::get_hunting_targets (sys::state &state, dcon::nation_id n, std::vector< impl::prov_str > &rebel_provs)
 
void rebel::sort_hunting_targets (sys::state &state, impl::arm_str const &ar, std::vector< impl::prov_str > &rebel_provs)
 
void rebel::rebel_hunting_check (sys::state &state)
 
void rebel::rebel_risings_check (sys::state &state)
 
bool rebel::sphere_member_has_ongoing_revolt (sys::state &state, dcon::nation_id n)
 
int32_t rebel::get_faction_brigades_ready (sys::state &state, dcon::rebel_faction_id r)
 
int32_t rebel::get_faction_brigades_active (sys::state &state, dcon::rebel_faction_id r)
 
float rebel::get_faction_organization (sys::state &state, dcon::rebel_faction_id r)
 
float rebel::get_faction_revolt_risk (sys::state &state, dcon::rebel_faction_id r)
 
void rebel::execute_province_defections (sys::state &state)
 
float rebel::get_suppression_point_cost (sys::state &state, dcon::movement_id m)
 
void rebel::execute_rebel_victories (sys::state &state)
 
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)
 
std::string rebel::rebel_name (sys::state &state, dcon::rebel_faction_id reb)
 
bool rebel::allow_in_area (sys::state &state, dcon::province_id p, dcon::rebel_faction_id reb)
 
void rebel::update_armies (sys::state &state)
 

Variables

constexpr float rebel::org_gain_factor = 0.4f
 
constexpr float rebel::rebel_size_reduction = 0.20f