TrinityCore
Loading...
Searching...
No Matches
ItemTemplate Struct Reference

#include <ItemTemplate.h>

Public Member Functions

bool CanChangeEquipStateInCombat () const
 
bool IsCurrencyToken () const
 
uint32 GetMaxStackSize () const
 
float getDPS () const
 
int32 getFeralBonus (int32 extraDPS=0) const
 
int32 GetTotalAPBonus () const
 
float GetItemLevelIncludingQuality () const
 
uint32 GetSkill () const
 
bool IsPotion () const
 
bool IsWeaponVellum () const
 
bool IsArmorVellum () const
 
bool IsConjuredConsumable () const
 
bool HasSignature () const
 
bool HasFlag (ItemFlags flag) const
 
bool HasFlag (ItemFlags2 flag) const
 
bool HasFlag (ItemFlagsCustom customFlag) const
 
void InitializeQueryData ()
 
WorldPacket BuildQueryData (LocaleConstant loc) const
 

Public Attributes

uint32 ItemId
 
uint32 Class
 
uint32 SubClass
 
int32 SoundOverrideSubclass
 
std::string Name1
 
uint32 DisplayInfoID
 
uint32 Quality
 
uint32 Flags
 
uint32 Flags2
 
uint32 BuyCount
 
int32 BuyPrice
 
uint32 SellPrice
 
uint32 InventoryType
 
uint32 AllowableClass
 
uint32 AllowableRace
 
uint32 ItemLevel
 
uint32 RequiredLevel
 
uint32 RequiredSkill
 
uint32 RequiredSkillRank
 
uint32 RequiredSpell
 
uint32 RequiredHonorRank
 
uint32 RequiredCityRank
 
uint32 RequiredReputationFaction
 
uint32 RequiredReputationRank
 
int32 MaxCount
 
int32 Stackable
 
uint32 ContainerSlots
 
uint32 StatsCount
 
std::array< _ItemStat, MAX_ITEM_PROTO_STATSItemStat
 
uint32 ScalingStatDistribution
 
uint32 ScalingStatValue
 
std::array< _Damage, MAX_ITEM_PROTO_DAMAGESDamage
 
uint32 Armor
 
uint32 HolyRes
 
uint32 FireRes
 
uint32 NatureRes
 
uint32 FrostRes
 
uint32 ShadowRes
 
uint32 ArcaneRes
 
uint32 Delay
 
uint32 AmmoType
 
float RangedModRange
 
std::array< ItemEffect, MAX_ITEM_PROTO_SPELLSEffects
 
uint32 Bonding
 
std::string Description
 
uint32 PageText
 
uint32 LanguageID
 
uint32 PageMaterial
 
uint32 StartQuest
 
uint32 LockID
 
int32 Material
 
uint32 Sheath
 
int32 RandomProperty
 
int32 RandomSuffix
 
uint32 Block
 
uint32 ItemSet
 
uint32 MaxDurability
 
uint32 Area
 
uint32 Map
 
uint32 BagFamily
 
uint32 TotemCategory
 
std::array< _Socket, MAX_ITEM_PROTO_SOCKETSSocket
 
uint32 socketBonus
 
uint32 GemProperties
 
uint32 RequiredDisenchantSkill
 
float ArmorDamageModifier
 
uint32 Duration
 
uint32 ItemLimitCategory
 
uint32 HolidayId
 
uint32 ScriptId
 
uint32 DisenchantID
 
uint32 FoodType
 
uint32 MinMoneyLoot
 
uint32 MaxMoneyLoot
 
uint32 FlagsCu
 
std::array< WorldPacket, TOTAL_LOCALESQueryData
 

Private Member Functions

void _LoadTotalAP ()
 

Private Attributes

int32 _totalAP
 

Friends

class ObjectMgr
 

Detailed Description

Definition at line 602 of file ItemTemplate.h.

Member Function Documentation

◆ _LoadTotalAP()

void ItemTemplate::_LoadTotalAP ( )
private

Definition at line 142 of file ItemTemplate.cpp.

+ Here is the caller graph for this function:

◆ BuildQueryData()

WorldPacket ItemTemplate::BuildQueryData ( LocaleConstant  loc) const

Definition at line 166 of file ItemTemplate.cpp.

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

◆ CanChangeEquipStateInCombat()

bool ItemTemplate::CanChangeEquipStateInCombat ( ) const

Definition at line 35 of file ItemTemplate.cpp.

+ Here is the caller graph for this function:

◆ getDPS()

float ItemTemplate::getDPS ( ) const

Definition at line 55 of file ItemTemplate.cpp.

+ Here is the caller graph for this function:

◆ getFeralBonus()

int32 ItemTemplate::getFeralBonus ( int32  extraDPS = 0) const

Definition at line 67 of file ItemTemplate.cpp.

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

◆ GetItemLevelIncludingQuality()

float ItemTemplate::GetItemLevelIncludingQuality ( ) const

Definition at line 83 of file ItemTemplate.cpp.

+ Here is the caller graph for this function:

◆ GetMaxStackSize()

uint32 ItemTemplate::GetMaxStackSize ( ) const
inline

Definition at line 688 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ GetSkill()

uint32 ItemTemplate::GetSkill ( ) const

Definition at line 107 of file ItemTemplate.cpp.

+ Here is the caller graph for this function:

◆ GetTotalAPBonus()

int32 ItemTemplate::GetTotalAPBonus ( ) const
inline

Definition at line 696 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ HasFlag() [1/3]

bool ItemTemplate::HasFlag ( ItemFlags  flag) const
inline

Definition at line 708 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ HasFlag() [2/3]

bool ItemTemplate::HasFlag ( ItemFlags2  flag) const
inline

Definition at line 709 of file ItemTemplate.h.

◆ HasFlag() [3/3]

bool ItemTemplate::HasFlag ( ItemFlagsCustom  customFlag) const
inline

Definition at line 710 of file ItemTemplate.h.

◆ HasSignature()

bool ItemTemplate::HasSignature ( ) const

Definition at line 26 of file ItemTemplate.cpp.

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

◆ InitializeQueryData()

void ItemTemplate::InitializeQueryData ( )

Definition at line 160 of file ItemTemplate.cpp.

+ Here is the call graph for this function:

◆ IsArmorVellum()

bool ItemTemplate::IsArmorVellum ( ) const
inline

Definition at line 704 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsConjuredConsumable()

bool ItemTemplate::IsConjuredConsumable ( ) const
inline

Definition at line 705 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsCurrencyToken()

bool ItemTemplate::IsCurrencyToken ( ) const
inline

Definition at line 686 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsPotion()

bool ItemTemplate::IsPotion ( ) const
inline

Definition at line 702 of file ItemTemplate.h.

+ Here is the caller graph for this function:

◆ IsWeaponVellum()

bool ItemTemplate::IsWeaponVellum ( ) const
inline

Definition at line 703 of file ItemTemplate.h.

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ ObjectMgr

friend class ObjectMgr
friend

Definition at line 604 of file ItemTemplate.h.

Member Data Documentation

◆ _totalAP

int32 ItemTemplate::_totalAP
private

Definition at line 717 of file ItemTemplate.h.

◆ AllowableClass

uint32 ItemTemplate::AllowableClass

Definition at line 619 of file ItemTemplate.h.

◆ AllowableRace

uint32 ItemTemplate::AllowableRace

Definition at line 620 of file ItemTemplate.h.

◆ AmmoType

uint32 ItemTemplate::AmmoType

Definition at line 646 of file ItemTemplate.h.

◆ ArcaneRes

uint32 ItemTemplate::ArcaneRes

Definition at line 644 of file ItemTemplate.h.

◆ Area

uint32 ItemTemplate::Area

Definition at line 663 of file ItemTemplate.h.

◆ Armor

uint32 ItemTemplate::Armor

Definition at line 638 of file ItemTemplate.h.

◆ ArmorDamageModifier

float ItemTemplate::ArmorDamageModifier

Definition at line 671 of file ItemTemplate.h.

◆ BagFamily

uint32 ItemTemplate::BagFamily

Definition at line 665 of file ItemTemplate.h.

◆ Block

uint32 ItemTemplate::Block

Definition at line 660 of file ItemTemplate.h.

◆ Bonding

uint32 ItemTemplate::Bonding

Definition at line 649 of file ItemTemplate.h.

◆ BuyCount

uint32 ItemTemplate::BuyCount

Definition at line 615 of file ItemTemplate.h.

◆ BuyPrice

int32 ItemTemplate::BuyPrice

Definition at line 616 of file ItemTemplate.h.

◆ Class

uint32 ItemTemplate::Class

Definition at line 607 of file ItemTemplate.h.

◆ ContainerSlots

uint32 ItemTemplate::ContainerSlots

Definition at line 632 of file ItemTemplate.h.

◆ Damage

std::array<_Damage, MAX_ITEM_PROTO_DAMAGES> ItemTemplate::Damage

Definition at line 637 of file ItemTemplate.h.

◆ Delay

uint32 ItemTemplate::Delay

Definition at line 645 of file ItemTemplate.h.

◆ Description

std::string ItemTemplate::Description

Definition at line 650 of file ItemTemplate.h.

◆ DisenchantID

uint32 ItemTemplate::DisenchantID

Definition at line 676 of file ItemTemplate.h.

◆ DisplayInfoID

uint32 ItemTemplate::DisplayInfoID

Definition at line 611 of file ItemTemplate.h.

◆ Duration

uint32 ItemTemplate::Duration

Definition at line 672 of file ItemTemplate.h.

◆ Effects

std::array<ItemEffect, MAX_ITEM_PROTO_SPELLS> ItemTemplate::Effects

Definition at line 648 of file ItemTemplate.h.

◆ FireRes

uint32 ItemTemplate::FireRes

Definition at line 640 of file ItemTemplate.h.

◆ Flags

uint32 ItemTemplate::Flags

Definition at line 613 of file ItemTemplate.h.

◆ Flags2

uint32 ItemTemplate::Flags2

Definition at line 614 of file ItemTemplate.h.

◆ FlagsCu

uint32 ItemTemplate::FlagsCu

Definition at line 680 of file ItemTemplate.h.

◆ FoodType

uint32 ItemTemplate::FoodType

Definition at line 677 of file ItemTemplate.h.

◆ FrostRes

uint32 ItemTemplate::FrostRes

Definition at line 642 of file ItemTemplate.h.

◆ GemProperties

uint32 ItemTemplate::GemProperties

Definition at line 669 of file ItemTemplate.h.

◆ HolidayId

uint32 ItemTemplate::HolidayId

Definition at line 674 of file ItemTemplate.h.

◆ HolyRes

uint32 ItemTemplate::HolyRes

Definition at line 639 of file ItemTemplate.h.

◆ InventoryType

uint32 ItemTemplate::InventoryType

Definition at line 618 of file ItemTemplate.h.

◆ ItemId

uint32 ItemTemplate::ItemId

Definition at line 606 of file ItemTemplate.h.

◆ ItemLevel

uint32 ItemTemplate::ItemLevel

Definition at line 621 of file ItemTemplate.h.

◆ ItemLimitCategory

uint32 ItemTemplate::ItemLimitCategory

Definition at line 673 of file ItemTemplate.h.

◆ ItemSet

uint32 ItemTemplate::ItemSet

Definition at line 661 of file ItemTemplate.h.

◆ ItemStat

std::array<_ItemStat, MAX_ITEM_PROTO_STATS> ItemTemplate::ItemStat

Definition at line 634 of file ItemTemplate.h.

◆ LanguageID

uint32 ItemTemplate::LanguageID

Definition at line 652 of file ItemTemplate.h.

◆ LockID

uint32 ItemTemplate::LockID

Definition at line 655 of file ItemTemplate.h.

◆ Map

uint32 ItemTemplate::Map

Definition at line 664 of file ItemTemplate.h.

◆ Material

int32 ItemTemplate::Material

Definition at line 656 of file ItemTemplate.h.

◆ MaxCount

int32 ItemTemplate::MaxCount

Definition at line 630 of file ItemTemplate.h.

◆ MaxDurability

uint32 ItemTemplate::MaxDurability

Definition at line 662 of file ItemTemplate.h.

◆ MaxMoneyLoot

uint32 ItemTemplate::MaxMoneyLoot

Definition at line 679 of file ItemTemplate.h.

◆ MinMoneyLoot

uint32 ItemTemplate::MinMoneyLoot

Definition at line 678 of file ItemTemplate.h.

◆ Name1

std::string ItemTemplate::Name1

Definition at line 610 of file ItemTemplate.h.

◆ NatureRes

uint32 ItemTemplate::NatureRes

Definition at line 641 of file ItemTemplate.h.

◆ PageMaterial

uint32 ItemTemplate::PageMaterial

Definition at line 653 of file ItemTemplate.h.

◆ PageText

uint32 ItemTemplate::PageText

Definition at line 651 of file ItemTemplate.h.

◆ Quality

uint32 ItemTemplate::Quality

Definition at line 612 of file ItemTemplate.h.

◆ QueryData

std::array<WorldPacket, TOTAL_LOCALES> ItemTemplate::QueryData

Definition at line 681 of file ItemTemplate.h.

◆ RandomProperty

int32 ItemTemplate::RandomProperty

Definition at line 658 of file ItemTemplate.h.

◆ RandomSuffix

int32 ItemTemplate::RandomSuffix

Definition at line 659 of file ItemTemplate.h.

◆ RangedModRange

float ItemTemplate::RangedModRange

Definition at line 647 of file ItemTemplate.h.

◆ RequiredCityRank

uint32 ItemTemplate::RequiredCityRank

Definition at line 627 of file ItemTemplate.h.

◆ RequiredDisenchantSkill

uint32 ItemTemplate::RequiredDisenchantSkill

Definition at line 670 of file ItemTemplate.h.

◆ RequiredHonorRank

uint32 ItemTemplate::RequiredHonorRank

Definition at line 626 of file ItemTemplate.h.

◆ RequiredLevel

uint32 ItemTemplate::RequiredLevel

Definition at line 622 of file ItemTemplate.h.

◆ RequiredReputationFaction

uint32 ItemTemplate::RequiredReputationFaction

Definition at line 628 of file ItemTemplate.h.

◆ RequiredReputationRank

uint32 ItemTemplate::RequiredReputationRank

Definition at line 629 of file ItemTemplate.h.

◆ RequiredSkill

uint32 ItemTemplate::RequiredSkill

Definition at line 623 of file ItemTemplate.h.

◆ RequiredSkillRank

uint32 ItemTemplate::RequiredSkillRank

Definition at line 624 of file ItemTemplate.h.

◆ RequiredSpell

uint32 ItemTemplate::RequiredSpell

Definition at line 625 of file ItemTemplate.h.

◆ ScalingStatDistribution

uint32 ItemTemplate::ScalingStatDistribution

Definition at line 635 of file ItemTemplate.h.

◆ ScalingStatValue

uint32 ItemTemplate::ScalingStatValue

Definition at line 636 of file ItemTemplate.h.

◆ ScriptId

uint32 ItemTemplate::ScriptId

Definition at line 675 of file ItemTemplate.h.

◆ SellPrice

uint32 ItemTemplate::SellPrice

Definition at line 617 of file ItemTemplate.h.

◆ ShadowRes

uint32 ItemTemplate::ShadowRes

Definition at line 643 of file ItemTemplate.h.

◆ Sheath

uint32 ItemTemplate::Sheath

Definition at line 657 of file ItemTemplate.h.

◆ Socket

std::array<_Socket, MAX_ITEM_PROTO_SOCKETS> ItemTemplate::Socket

Definition at line 667 of file ItemTemplate.h.

◆ socketBonus

uint32 ItemTemplate::socketBonus

Definition at line 668 of file ItemTemplate.h.

◆ SoundOverrideSubclass

int32 ItemTemplate::SoundOverrideSubclass

Definition at line 609 of file ItemTemplate.h.

◆ Stackable

int32 ItemTemplate::Stackable

Definition at line 631 of file ItemTemplate.h.

◆ StartQuest

uint32 ItemTemplate::StartQuest

Definition at line 654 of file ItemTemplate.h.

◆ StatsCount

uint32 ItemTemplate::StatsCount

Definition at line 633 of file ItemTemplate.h.

◆ SubClass

uint32 ItemTemplate::SubClass

Definition at line 608 of file ItemTemplate.h.

◆ TotemCategory

uint32 ItemTemplate::TotemCategory

Definition at line 666 of file ItemTemplate.h.


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