Project Alice
Loading...
Searching...
No Matches
events.hpp File Reference
#include "dcon_generated.hpp"
#include "script_constants.hpp"
#include "container_types.hpp"
Include dependency graph for events.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  event::pending_human_n_event
 
struct  event::pending_human_f_n_event
 
struct  event::pending_human_p_event
 
struct  event::pending_human_f_p_event
 

Namespaces

namespace  event
 

Enumerations

enum class  event::slot_type : uint8_t {
  event::none , event::nation , event::state , event::province ,
  event::pop
}
 

Functions

bool event::is_valid_option (sys::event_option const &opt)
 
void event::trigger_national_event (sys::state &state, dcon::national_event_id e, dcon::nation_id n, uint32_t r_hi, uint32_t r_lo, int32_t from_slot, slot_type ft)
 
void event::trigger_national_event (sys::state &state, dcon::national_event_id e, dcon::nation_id n, uint32_t r_lo, uint32_t r_hi, int32_t primary_slot, slot_type pt, int32_t from_slot, slot_type ft)
 
void event::trigger_national_event (sys::state &state, dcon::free_national_event_id e, dcon::nation_id n, uint32_t r_lo, uint32_t r_hi)
 
void event::trigger_provincial_event (sys::state &state, dcon::provincial_event_id e, dcon::province_id p, uint32_t r_hi, uint32_t r_lo, int32_t from_slot, slot_type ft)
 
void event::trigger_provincial_event (sys::state &state, dcon::free_provincial_event_id e, dcon::province_id p, uint32_t r_hi, uint32_t r_lo)
 
void event::fire_fixed_event (sys::state &state, std::vector< nations::fixed_event > const &v, int32_t primary_slot, slot_type pt, dcon::nation_id this_slot, int32_t from_slot, slot_type ft)
 
void event::fire_fixed_event (sys::state &state, std::vector< nations::fixed_election_event > const &v, int32_t primary_slot, slot_type pt, dcon::nation_id this_slot, int32_t from_slot, slot_type ft)
 
void event::fire_fixed_event (sys::state &state, std::vector< nations::fixed_province_event > const &v, dcon::province_id prov, int32_t from_slot, slot_type ft)
 
void event::take_option (sys::state &state, pending_human_n_event const &e, uint8_t opt)
 
void event::take_option (sys::state &state, pending_human_f_n_event const &e, uint8_t opt)
 
void event::take_option (sys::state &state, pending_human_p_event const &e, uint8_t opt)
 
void event::take_option (sys::state &state, pending_human_f_p_event const &e, uint8_t opt)
 
bool event::would_be_duplicate_instance (sys::state &state, dcon::national_event_id e, dcon::nation_id n, sys::date date)
 
void event::update_future_events (sys::state &state)
 
void event::update_events (sys::state &state)
 
dcon::issue_id event::get_election_event_issue (sys::state &state, dcon::national_event_id e)
 

Variables

constexpr int32_t event::expiration_in_days = 30