TrinityCore
ItemTemplate Struct Reference

#include <ItemTemplate.h>

Public Member Functions

uint32 GetId () const
 
uint32 GetClass () const
 
uint32 GetSubClass () const
 
uint32 GetQuality () const
 
uint32 GetOtherFactionItemId () const
 
float GetPriceRandomValue () const
 
float GetPriceVariance () const
 
uint32 GetBuyCount () const
 
uint32 GetBuyPrice () const
 
uint32 GetSellPrice () const
 
InventoryType GetInventoryType () const
 
int32 GetAllowableClass () const
 
Trinity::RaceMask< int64GetAllowableRace () const
 
uint32 GetBaseItemLevel () const
 
int32 GetBaseRequiredLevel () const
 
uint32 GetRequiredSkill () const
 
uint32 GetRequiredSkillRank () const
 
uint32 GetRequiredSpell () const
 
uint32 GetRequiredReputationFaction () const
 
uint32 GetRequiredReputationRank () const
 
uint32 GetMaxCount () const
 
uint32 GetContainerSlots () const
 
int32 GetStatModifierBonusStat (uint32 index) const
 
int32 GetStatPercentEditor (uint32 index) const
 
float GetStatPercentageOfSocket (uint32 index) const
 
uint32 GetScalingStatContentTuning () const
 
uint32 GetPlayerLevelToItemLevelCurveId () const
 
uint32 GetDamageType () const
 
uint32 GetDelay () const
 
float GetRangedModRange () const
 
ItemBondingType GetBonding () const
 
char const * GetName (LocaleConstant locale) const
 
uint32 GetPageText () const
 
uint32 GetStartQuest () const
 
uint32 GetLockID () const
 
uint32 GetItemSet () const
 
uint32 GetArea (uint32 index) const
 
uint32 GetMap () const
 
uint32 GetBagFamily () const
 
uint32 GetTotemCategory () const
 
SocketColor GetSocketColor (uint32 index) const
 
uint32 GetSocketBonus () const
 
uint32 GetGemProperties () const
 
float GetQualityModifier () const
 
uint32 GetDuration () const
 
uint32 GetItemLimitCategory () const
 
HolidayIds GetHolidayID () const
 
float GetDmgVariance () const
 
uint8 GetArtifactID () const
 
uint8 GetRequiredExpansion () const
 
bool CanChangeEquipStateInCombat () const
 
bool IsCurrencyToken () const
 
uint32 GetMaxStackSize () const
 
uint32 GetSkill () const
 
bool IsPotion () const
 
bool IsVellum () const
 
bool IsConjuredConsumable () const
 
bool IsCraftingReagent () const
 
bool HasSignature () const
 
bool IsWeapon () const
 
bool IsArmor () const
 
bool IsRangedWeapon () const
 
bool HasFlag (ItemFlags flag) const
 
bool HasFlag (ItemFlags2 flag) const
 
bool HasFlag (ItemFlags3 flag) const
 
bool HasFlag (ItemFlags4 flag) const
 
bool HasFlag (ItemFlagsCustom customFlag) const
 
char const * GetDefaultLocaleName () const
 
uint32 GetArmor (uint32 itemLevel) const
 
float GetDPS (uint32 itemLevel) const
 
void GetDamage (uint32 itemLevel, float &minDamage, float &maxDamage) const
 
bool IsUsableByLootSpecialization (Player const *player, bool alwaysAllowBoundToAccount) const
 

Static Public Member Functions

static std::size_t CalculateItemSpecBit (ChrSpecializationEntry const *spec)
 

Public Attributes

ItemEntry const * BasicData
 
ItemSparseEntry const * ExtendedData
 
uint32 MaxDurability
 
std::vector< ItemEffectEntry const * > Effects
 
uint32 ScriptId
 
uint32 FoodType
 
uint32 MinMoneyLoot
 
uint32 MaxMoneyLoot
 
uint32 FlagsCu
 
float SpellPPMRate
 
uint32 RandomBonusListTemplateId
 
std::bitset< MAX_CLASSES *MAX_SPECIALIZATIONSSpecializations [3]
 
uint32 ItemSpecClassMask
 
int32 QuestLogItemId
 

Detailed Description

Definition at line 812 of file ItemTemplate.h.

Member Function Documentation

◆ CalculateItemSpecBit()

std::size_t ItemTemplate::CalculateItemSpecBit ( ChrSpecializationEntry const *  spec)
static

Definition at line 291 of file ItemTemplate.cpp.

+ Here is the caller graph for this function:

◆ CanChangeEquipStateInCombat()

bool ItemTemplate::CanChangeEquipStateInCombat ( ) const

Definition at line 70 of file ItemTemplate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAllowableClass()

int32 ItemTemplate::GetAllowableClass ( ) const
inline

Definition at line 828 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetAllowableRace()

Trinity::RaceMask< int64 > ItemTemplate::GetAllowableRace ( ) const
inline

Definition at line 829 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetArea()

uint32 ItemTemplate::GetArea ( uint32  index) const
inline

Definition at line 853 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetArmor()

uint32 ItemTemplate::GetArmor ( uint32  itemLevel) const

Definition at line 142 of file ItemTemplate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetArtifactID()

uint8 ItemTemplate::GetArtifactID ( ) const
inline

Definition at line 865 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetBagFamily()

uint32 ItemTemplate::GetBagFamily ( ) const
inline

Definition at line 855 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetBaseItemLevel()

uint32 ItemTemplate::GetBaseItemLevel ( ) const
inline

Definition at line 830 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetBaseRequiredLevel()

int32 ItemTemplate::GetBaseRequiredLevel ( ) const
inline

Definition at line 831 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetBonding()

ItemBondingType ItemTemplate::GetBonding ( ) const
inline

Definition at line 847 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetBuyCount()

uint32 ItemTemplate::GetBuyCount ( ) const
inline

Definition at line 824 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetBuyPrice()

uint32 ItemTemplate::GetBuyPrice ( ) const
inline

Definition at line 825 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetClass()

uint32 ItemTemplate::GetClass ( ) const
inline

Definition at line 818 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetContainerSlots()

uint32 ItemTemplate::GetContainerSlots ( ) const
inline

Definition at line 838 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetDamage()

void ItemTemplate::GetDamage ( uint32  itemLevel,
float &  minDamage,
float &  maxDamage 
) const

Definition at line 255 of file ItemTemplate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDamageType()

uint32 ItemTemplate::GetDamageType ( ) const
inline

Definition at line 844 of file ItemTemplate.h.

◆ GetDefaultLocaleName()

char const * ItemTemplate::GetDefaultLocaleName ( ) const

Definition at line 137 of file ItemTemplate.cpp.

+ Here is the caller graph for this function:

◆ GetDelay()

uint32 ItemTemplate::GetDelay ( ) const
inline

Definition at line 845 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetDmgVariance()

float ItemTemplate::GetDmgVariance ( ) const
inline

Definition at line 864 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetDPS()

float ItemTemplate::GetDPS ( uint32  itemLevel) const

Definition at line 202 of file ItemTemplate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDuration()

uint32 ItemTemplate::GetDuration ( ) const
inline

Definition at line 861 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetGemProperties()

uint32 ItemTemplate::GetGemProperties ( ) const
inline

Definition at line 859 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetHolidayID()

HolidayIds ItemTemplate::GetHolidayID ( ) const
inline

Definition at line 863 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetId()

uint32 ItemTemplate::GetId ( ) const
inline

Definition at line 817 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetInventoryType()

InventoryType ItemTemplate::GetInventoryType ( ) const
inline

Definition at line 827 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetItemLimitCategory()

uint32 ItemTemplate::GetItemLimitCategory ( ) const
inline

Definition at line 862 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetItemSet()

uint32 ItemTemplate::GetItemSet ( ) const
inline

Definition at line 852 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetLockID()

uint32 ItemTemplate::GetLockID ( ) const
inline

Definition at line 851 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetMap()

uint32 ItemTemplate::GetMap ( ) const
inline

Definition at line 854 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetMaxCount()

uint32 ItemTemplate::GetMaxCount ( ) const
inline

Definition at line 837 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetMaxStackSize()

uint32 ItemTemplate::GetMaxStackSize ( ) const
inline

Definition at line 888 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetName()

char const * ItemTemplate::GetName ( LocaleConstant  locale) const

Definition at line 53 of file ItemTemplate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetOtherFactionItemId()

uint32 ItemTemplate::GetOtherFactionItemId ( ) const
inline

Definition at line 821 of file ItemTemplate.h.

◆ GetPageText()

uint32 ItemTemplate::GetPageText ( ) const
inline

Definition at line 849 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetPlayerLevelToItemLevelCurveId()

uint32 ItemTemplate::GetPlayerLevelToItemLevelCurveId ( ) const
inline

Definition at line 843 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetPriceRandomValue()

float ItemTemplate::GetPriceRandomValue ( ) const
inline

Definition at line 822 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetPriceVariance()

float ItemTemplate::GetPriceVariance ( ) const
inline

Definition at line 823 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetQuality()

uint32 ItemTemplate::GetQuality ( ) const
inline

Definition at line 820 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetQualityModifier()

float ItemTemplate::GetQualityModifier ( ) const
inline

Definition at line 860 of file ItemTemplate.h.

◆ GetRangedModRange()

float ItemTemplate::GetRangedModRange ( ) const
inline

Definition at line 846 of file ItemTemplate.h.

◆ GetRequiredExpansion()

uint8 ItemTemplate::GetRequiredExpansion ( ) const
inline

Definition at line 866 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetRequiredReputationFaction()

uint32 ItemTemplate::GetRequiredReputationFaction ( ) const
inline

Definition at line 835 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetRequiredReputationRank()

uint32 ItemTemplate::GetRequiredReputationRank ( ) const
inline

Definition at line 836 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetRequiredSkill()

uint32 ItemTemplate::GetRequiredSkill ( ) const
inline

Definition at line 832 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetRequiredSkillRank()

uint32 ItemTemplate::GetRequiredSkillRank ( ) const
inline

Definition at line 833 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetRequiredSpell()

uint32 ItemTemplate::GetRequiredSpell ( ) const
inline

Definition at line 834 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetScalingStatContentTuning()

uint32 ItemTemplate::GetScalingStatContentTuning ( ) const
inline

Definition at line 842 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetSellPrice()

uint32 ItemTemplate::GetSellPrice ( ) const
inline

Definition at line 826 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetSkill()

uint32 ItemTemplate::GetSkill ( ) const

Definition at line 92 of file ItemTemplate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSocketBonus()

uint32 ItemTemplate::GetSocketBonus ( ) const
inline

Definition at line 858 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetSocketColor()

SocketColor ItemTemplate::GetSocketColor ( uint32  index) const
inline

Definition at line 857 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetStartQuest()

uint32 ItemTemplate::GetStartQuest ( ) const
inline

Definition at line 850 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetStatModifierBonusStat()

int32 ItemTemplate::GetStatModifierBonusStat ( uint32  index) const
inline

Definition at line 839 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetStatPercentageOfSocket()

float ItemTemplate::GetStatPercentageOfSocket ( uint32  index) const
inline

Definition at line 841 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetStatPercentEditor()

int32 ItemTemplate::GetStatPercentEditor ( uint32  index) const
inline

Definition at line 840 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetSubClass()

uint32 ItemTemplate::GetSubClass ( ) const
inline

Definition at line 819 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetTotemCategory()

uint32 ItemTemplate::GetTotemCategory ( ) const
inline

Definition at line 856 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ HasFlag() [1/5]

bool ItemTemplate::HasFlag ( ItemFlags  flag) const
inline

Definition at line 912 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ HasFlag() [2/5]

bool ItemTemplate::HasFlag ( ItemFlags2  flag) const
inline

Definition at line 913 of file ItemTemplate.h.

◆ HasFlag() [3/5]

bool ItemTemplate::HasFlag ( ItemFlags3  flag) const
inline

Definition at line 914 of file ItemTemplate.h.

◆ HasFlag() [4/5]

bool ItemTemplate::HasFlag ( ItemFlags4  flag) const
inline

Definition at line 915 of file ItemTemplate.h.

◆ HasFlag() [5/5]

bool ItemTemplate::HasFlag ( ItemFlagsCustom  customFlag) const
inline

Definition at line 916 of file ItemTemplate.h.

◆ HasSignature()

bool ItemTemplate::HasSignature ( ) const

Definition at line 61 of file ItemTemplate.cpp.

+ Here is the call graph for this function:

◆ IsArmor()

bool ItemTemplate::IsArmor ( ) const
inline

Definition at line 902 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsConjuredConsumable()

bool ItemTemplate::IsConjuredConsumable ( ) const
inline

Definition at line 897 of file ItemTemplate.h.

◆ IsCraftingReagent()

bool ItemTemplate::IsCraftingReagent ( ) const
inline

Definition at line 898 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsCurrencyToken()

bool ItemTemplate::IsCurrencyToken ( ) const
inline

Definition at line 886 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsPotion()

bool ItemTemplate::IsPotion ( ) const
inline

Definition at line 895 of file ItemTemplate.h.

◆ IsRangedWeapon()

bool ItemTemplate::IsRangedWeapon ( ) const
inline

Definition at line 904 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsUsableByLootSpecialization()

bool ItemTemplate::IsUsableByLootSpecialization ( Player const *  player,
bool  alwaysAllowBoundToAccount 
) const

Definition at line 267 of file ItemTemplate.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsVellum()

bool ItemTemplate::IsVellum ( ) const
inline

Definition at line 896 of file ItemTemplate.h.

◆ IsWeapon()

bool ItemTemplate::IsWeapon ( ) const
inline

Definition at line 901 of file ItemTemplate.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ BasicData

ItemEntry const* ItemTemplate::BasicData

Definition at line 814 of file ItemTemplate.h.

◆ Effects

std::vector<ItemEffectEntry const*> ItemTemplate::Effects

Definition at line 869 of file ItemTemplate.h.

◆ ExtendedData

ItemSparseEntry const* ItemTemplate::ExtendedData

Definition at line 815 of file ItemTemplate.h.

◆ FlagsCu

uint32 ItemTemplate::FlagsCu

Definition at line 876 of file ItemTemplate.h.

◆ FoodType

uint32 ItemTemplate::FoodType

Definition at line 873 of file ItemTemplate.h.

◆ ItemSpecClassMask

uint32 ItemTemplate::ItemSpecClassMask

Definition at line 880 of file ItemTemplate.h.

◆ MaxDurability

uint32 ItemTemplate::MaxDurability

Definition at line 868 of file ItemTemplate.h.

◆ MaxMoneyLoot

uint32 ItemTemplate::MaxMoneyLoot

Definition at line 875 of file ItemTemplate.h.

◆ MinMoneyLoot

uint32 ItemTemplate::MinMoneyLoot

Definition at line 874 of file ItemTemplate.h.

◆ QuestLogItemId

int32 ItemTemplate::QuestLogItemId

Definition at line 881 of file ItemTemplate.h.

◆ RandomBonusListTemplateId

uint32 ItemTemplate::RandomBonusListTemplateId

Definition at line 878 of file ItemTemplate.h.

◆ ScriptId

uint32 ItemTemplate::ScriptId

Definition at line 872 of file ItemTemplate.h.

◆ Specializations

std::bitset<MAX_CLASSES * MAX_SPECIALIZATIONS> ItemTemplate::Specializations[3]

Definition at line 879 of file ItemTemplate.h.

◆ SpellPPMRate

float ItemTemplate::SpellPPMRate

Definition at line 877 of file ItemTemplate.h.


The documentation for this struct was generated from the following files: