SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
stats_t Struct Reference
Inheritance diagram for stats_t:
noncopyable

Classes

struct  stats_results_t
 
struct  stats_scaling_t
 

Public Member Functions

 stats_t (util::string_view name, player_t *)
 
void add_child (stats_t *child)
 
void consume_resource (resource_e resource_type, double resource_amount)
 
full_result_e translate_result (result_e result, block_result_e block_result)
 
void add_result (double act_amount, double tot_amount, result_amount_type dmg_type, result_e result, block_result_e block_result, player_t *target)
 
void add_execute (timespan_t time, player_t *target)
 
void add_tick (timespan_t time, player_t *target)
 
void add_refresh (player_t *target)
 
void datacollection_begin ()
 
void datacollection_end ()
 
void reset ()
 
void analyze ()
 
void merge (const stats_t &other)
 
const std::string & name () const
 
unsigned mask () const
 
bool has_direct_amount_results () const
 
bool has_tick_amount_results () const
 

Public Attributes

const std::string name_str
 
player_tplayer
 
stats_tparent
 
school_e school
 
stats_e type
 
std::vector< action_t * > action_list
 
gain_t resource_gain
 
bool analyzed
 
bool quiet
 
bool background
 
simple_sample_data_t num_executes
 
simple_sample_data_t num_ticks
 
simple_sample_data_t num_refreshes
 
simple_sample_data_t num_direct_results
 
simple_sample_data_t num_tick_results
 
unsigned int iteration_num_executes
 
unsigned int iteration_num_ticks
 
unsigned int iteration_num_refreshes
 
simple_sample_data_t total_execute_time
 
simple_sample_data_t total_tick_time
 
timespan_t iteration_total_execute_time
 
timespan_t iteration_total_tick_time
 
double portion_amount
 
simple_sample_data_t total_intervals
 
timespan_t last_execute
 
extended_sample_data_t actual_amount
 
extended_sample_data_t total_amount
 
extended_sample_data_t portion_aps
 
extended_sample_data_t portion_apse
 
std::vector< stats_t * > children
 
std::array< stats_results_t, FULLTYPE_MAX > direct_results
 
std::array< stats_results_t, RESULT_MAX > tick_results
 
std::array< double, RESOURCE_MAX > resource_portion
 
std::array< double, RESOURCE_MAX > apr
 
std::array< double, RESOURCE_MAX > rpe
 
double rpe_sum
 
double compound_amount
 
double overkill_pct
 
double aps
 
double ape
 
double apet
 
double etpe
 
double ttpt
 
timespan_t total_time
 
std::string aps_distribution_chart
 
std::string timeline_aps_chart
 
std::unique_ptr< stats_scaling_tscaling
 
std::unique_ptr< sc_timeline_ttimeline_amount