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

Public Member Functions

void invalidate_all ()
 Invalidate cache for ALL stats.
 
void invalidate (cache_e)
 Invalidate cache for a specific cache.
 
double get_attribute (attribute_e) const
 Get access attribute cache functions by attribute-enumeration.
 
 player_stat_cache_t (const player_t *p)
 
double strength () const
 
double agility () const
 
double stamina () const
 
double intellect () const
 
double spirit () const
 
double spell_power (school_e s) const
 
double attack_power () const
 
double attack_expertise () const
 
double attack_hit () const
 
double attack_crit_chance () const
 
double attack_haste () const
 
double attack_speed () const
 
double spell_hit () const
 
double spell_crit_chance () const
 
double spell_haste () const
 
double spell_speed () const
 
double dodge () const
 
double parry () const
 
double block () const
 
double crit_block () const
 
double crit_avoidance () const
 
double miss () const
 
double armor () const
 
double mastery () const
 
double mastery_value () const
 
double damage_versatility () const
 
double heal_versatility () const
 
double mitigation_versatility () const
 
double leech () const
 
double run_speed () const
 
double avoidance () const
 
double corruption () const
 
double corruption_resistance () const
 

Public Attributes

const player_tplayer
 
std::array< bool, CACHE_MAX > valid
 
std::array< bool, SCHOOL_MAX+1 > spell_power_valid
 
std::array< bool, SCHOOL_MAX+1 > player_mult_valid
 
std::array< bool, SCHOOL_MAX+1 > player_heal_mult_valid
 
bool active