Project Alice
Loading...
Searching...
No Matches
fif_common.hpp File Reference
#include "fif.hpp"
#include "politics.hpp"
Include dependency graph for fif_common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fif::f_true_accumulator< F >
 

Namespaces

namespace  fif
 
namespace  fif_trigger
 

Functions

constexpr sys::year_month_day fif::civil_from_days (int64_t z) noexcept
 
int32_t fif::f_date_to_year (int64_t v)
 
int32_t fif::f_date_to_month (int64_t v)
 
int32_t * fif::f_date_to_year_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * fif::f_date_to_month_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_empty_adjacent_province (sys::state *state, int32_t p_index)
 
int32_t * fif::f_empty_adjacent_province_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_empty_adjacent_state (sys::state *state, int32_t p_index)
 
int32_t * fif::f_empty_adjacent_state_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
template<typename F >
auto fif::f_make_true_accumulator (F &&f) -> f_true_accumulator< F >
 
bool fif::f_unowned_core (sys::state *state, int32_t n_index)
 
int32_t * fif::f_unowned_core_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_core_in_nation (sys::state *state, int32_t n_index, int32_t t_index)
 
int32_t * fif::f_core_in_nation_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_core_in_province (sys::state *state, int32_t p_index, int32_t t_index)
 
int32_t * fif::f_core_in_province_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_core_in_state (sys::state *state, int32_t s_index, int32_t t_index)
 
int32_t * fif::f_core_in_state_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_core_fully_state (sys::state *state, int32_t s_index, int32_t t_index)
 
int32_t * fif::f_core_fully_state_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_cb_against (sys::state *state, int32_t targ_index, int32_t source_index)
 
int32_t * fif::f_has_cb_against_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_access_with (sys::state *state, int32_t targ_index, int32_t source_index)
 
int32_t * fif::f_has_access_with_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_any_factory (sys::state *state, int32_t s_index)
 
int32_t * fif::f_has_any_factory_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_factory (sys::state *state, int32_t findex, int32_t s_index)
 
int32_t * fif::f_has_factory_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_nmod (sys::state *state, int32_t m_index, int32_t n_index)
 
int32_t * fif::f_has_nmod_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_pmod (sys::state *state, int32_t m_index, int32_t p_index)
 
int32_t * fif::f_has_pmod_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_in_region (sys::state *state, int32_t rindex, int32_t p_index)
 
int32_t * fif::f_in_region_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_owns_region (sys::state *state, int32_t rindex, int32_t n_index)
 
int32_t * fif::f_owns_region_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_owns_state (sys::state *state, int32_t rindex, int32_t n_index)
 
int32_t * fif::f_owns_state_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_nation_a (sys::state *state, int32_t aindex, int32_t bindex)
 
int32_t * fif::f_nation_a_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_units_in_state (sys::state *state, int32_t sindex, int32_t nindex)
 
int32_t * fif::f_units_in_state_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_units_in_province (sys::state *state, int32_t sindex, int32_t nindex)
 
int32_t * fif::f_units_in_province_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t fif::f_count_p_units (sys::state *state, int32_t sindex)
 
int32_t * fif::f_count_p_units_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_are_at_war (sys::state *state, int32_t sindex, int32_t nindex)
 
int32_t * fif::f_are_at_war_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_general_in_p (sys::state *state, int32_t sindex)
 
int32_t * fif::f_general_in_p_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t fif::f_count_ships (sys::state *state, int32_t sindex)
 
int32_t * fif::f_count_ships_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_coastal_s (sys::state *state, int32_t sindex)
 
int32_t * fif::f_coastal_s_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_state_produces (sys::state *state, int32_t cindex, int32_t sindex)
 
int32_t * fif::f_state_produces_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_culture_core (sys::state *state, int32_t cindex, int32_t sindex)
 
int32_t * fif::f_has_culture_core_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_canal_enabled (sys::state *state, int32_t sindex)
 
int32_t * fif::f_canal_enabled_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_truce_with (sys::state *state, int32_t tindex, int32_t sindex)
 
int32_t * fif::f_truce_with_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_named_leader (sys::state *state, int32_t name, int32_t nindex)
 
int32_t * fif::f_has_named_leader_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_can_release (sys::state *state, int32_t tindex, int32_t nindex)
 
int32_t * fif::f_can_release_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_are_allied (sys::state *state, int32_t tindex, int32_t sindex)
 
int32_t * fif::f_are_allied_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_nation_has_any_factory (sys::state *state, int32_t s_index)
 
int32_t * fif::f_nation_has_any_factory_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_is_bankrupt_debtor_to (sys::state *state, int32_t tindex, int32_t sindex)
 
int32_t * fif::f_is_bankrupt_debtor_to_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_global_flag_set (sys::state *state, int32_t s_index)
 
int32_t * fif::f_global_flag_set_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_can_nationalize (sys::state *state, int32_t s_index)
 
int32_t * fif::f_can_nationalize_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
float fif::f_movement_str (sys::state *state, bool is_social, int32_t s_index)
 
int32_t * fif::f_movement_str_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
float fif::f_influence_on (sys::state *state, int32_t t_index, int32_t n_index)
 
int32_t * fif::f_influence_on_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
float fif::f_relations (sys::state *state, int32_t t_index, int32_t n_index)
 
int32_t * fif::f_relations_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_has_union_sphere (sys::state *state, int32_t s_index)
 
int32_t * fif::f_has_union_sphere_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_state_rgo (sys::state *state, int32_t cindex, int32_t sindex)
 
int32_t * fif::f_state_rgo_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_in_crisis (sys::state *state, int32_t nindex)
 
int32_t * fif::f_in_crisis_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_can_build_naval_base (sys::state *state, int32_t cindex, int32_t sindex)
 
int32_t * fif::f_can_build_naval_base_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
void * fif::f_ranked_nations (sys::state *state)
 
int32_t * fif::f_ranked_nations_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
std::string fif::state_to_owner ()
 
std::string fif::province_to_owner ()
 
std::string fif::province_to_controller ()
 
std::string fif::pop_to_location ()
 
std::string fif::pop_to_owner ()
 
std::string fif::nation_to_tag ()
 
std::string fif::tag_to_nation ()
 
bool fif::f_party_name (sys::state *state, int32_t s_index, int32_t ideoindex, int32_t nameindex)
 
int32_t * fif::f_party_name_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
bool fif::f_party_pos (sys::state *state, int32_t s_index, int32_t ideoindex, int32_t optid)
 
int32_t * fif::f_party_pos_b (fif::state_stack &s, int32_t *p, fif::environment *e)
 
void fif::common_fif_environment (sys::state &state, fif::environment &env)
 
std::string fif_trigger::multiplicative_modifier (sys::state &state, dcon::value_modifier_key modifier)
 
std::string fif_trigger::additive_modifier (sys::state &state, dcon::value_modifier_key modifier)
 
std::string fif_trigger::evaluate (sys::state &state, dcon::trigger_key key)