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

Classes

struct  parsed_input_t
 

Public Member Functions

 item_t (player_t *, util::string_view options_str)
 
bool active () const
 
const char * name () const
 
std::string full_name () const
 
const char * slot_name () const
 
weapon_tweapon () const
 
void init ()
 
void parse_options ()
 
bool initialize_data ()
 
inventory_type inv_type () const
 
bool is_matching_type () const
 
bool is_valid_type () const
 
bool socket_color_match () const
 
unsigned item_level () const
 
stat_e stat (size_t idx) const
 
int stat_value (size_t idx) const
 
gear_stats_t total_stats () const
 
bool has_item_stat (stat_e stat) const
 
std::string encoded_item () const
 
std::string encoded_comment ()
 
std::string encoded_stats () const
 
std::string encoded_weapon () const
 
std::string encoded_gems () const
 
std::string encoded_enchant () const
 
std::string encoded_addon () const
 
void decode_stats ()
 
void decode_gems ()
 
void decode_enchant ()
 
void decode_addon ()
 
void decode_weapon ()
 
void decode_warforged ()
 
void decode_lfr ()
 
void decode_heroic ()
 
void decode_mythic ()
 
void decode_armor_type ()
 
void decode_ilevel ()
 
void decode_quality ()
 
void decode_data_source ()
 
void decode_equip_effect ()
 
void decode_use_effect ()
 
bool verify_slot ()
 
void init_special_effects ()
 
std::string item_stats_str () const
 
std::string weapon_stats_str () const
 
std::string gem_stats_str () const
 
std::string socket_bonus_stats_str () const
 
std::string enchant_stats_str () const
 
bool has_stats () const
 
bool has_special_effect (special_effect_source_e source=SPECIAL_EFFECT_SOURCE_NONE, special_effect_e type=SPECIAL_EFFECT_NONE) const
 
bool has_use_special_effect () const
 
bool has_scaling_stat_bonus_id () const
 
const special_effect_tspecial_effect (special_effect_source_e source=SPECIAL_EFFECT_SOURCE_NONE, special_effect_e type=SPECIAL_EFFECT_NONE) const
 
const special_effect_tspecial_effect_with_name (util::string_view name, special_effect_source_e source=SPECIAL_EFFECT_SOURCE_NONE, special_effect_e type=SPECIAL_EFFECT_NONE) const
 

Static Public Member Functions

static bool download_item (item_t &)
 
static std::vector< stat_pair_tstr_to_stat_pair (const std::string &stat_str)
 
static std::string stat_pairs_to_str (const std::vector< stat_pair_t > &stat_pairs)
 

Public Attributes

sim_tsim
 
player_tplayer
 
slot_e slot
 
slot_e parent_slot
 
bool unique
 
bool unique_addon
 
bool is_ptr
 
struct item_t::parsed_input_t parsed
 
std::string name_str
 
std::string icon_str
 
std::string source_str
 
std::string options_str
 
std::string option_name_str
 
std::string option_stats_str
 
std::string option_gems_str
 
std::string option_enchant_str
 
std::string option_addon_str
 
std::string option_equip_str
 
std::string option_use_str
 
std::string option_weapon_str
 
std::string option_lfr_str
 
std::string option_warforged_str
 
std::string option_heroic_str
 
std::string option_mythic_str
 
std::string option_armor_type_str
 
std::string option_ilevel_str
 
std::string option_quality_str
 
std::string option_data_source_str
 
std::string option_enchant_id_str
 
std::string option_addon_id_str
 
std::string option_gem_id_str
 
std::string option_gem_bonus_id_str
 
std::string option_gem_ilevel_str
 
std::string option_bonus_id_str
 
std::string option_initial_cd_str
 
std::string option_drop_level_str
 
std::string option_azerite_powers_str
 
std::string option_azerite_level_str
 
std::string option_crafted_stat_str
 
double option_initial_cd
 
gear_stats_t base_stats
 
gear_stats_t stats
 

Friends

void sc_format_to (const item_t &, fmt::format_context::iterator)