SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
event_manager_t Struct Reference

Public Member Functions

 event_manager_t (sim_t *)
 
void * allocate_event (std::size_t size)
 
void recycle_event (event_t *)
 
void add_event (event_t *, timespan_t delta_time)
 
void reschedule_event (event_t *)
 
event_tnext_event ()
 
bool execute ()
 
void cancel ()
 
void flush ()
 
void init ()
 
void reset ()
 
void merge (event_manager_t &other)
 
void cancel_stuck ()
 

Public Attributes

sim_tsim
 
timespan_t current_time
 
uint64_t events_remaining
 
uint64_t events_processed
 
uint64_t total_events_processed
 
uint64_t max_events_remaining
 
unsigned timing_slice
 
unsigned global_event_id
 
std::vector< event_t * > timing_wheel
 
event_trecycled_event_list
 
int wheel_seconds
 
int wheel_size
 
int wheel_mask
 
int wheel_shift
 
double wheel_granularity
 
timespan_t wheel_time
 
std::vector< event_t * > allocated_events
 
stopwatch_t< chrono::thread_clockevent_stopwatch
 
bool monitor_cpu
 
bool canceled