TrinityCore
Loading...
Searching...
No Matches
Item Class Reference

#include <Item.h>

+ Inheritance diagram for Item:

Classes

struct  ValuesUpdateForPlayerWithMaskSender
 

Public Member Functions

ItemCloneItem (uint32 count, Player const *player=nullptr) const
 
 Item ()
 
 ~Item ()
 
virtual bool Create (ObjectGuid::LowType guidlow, uint32 itemId, ItemContext context, Player const *owner)
 
std::string GetNameForLocaleIdx (LocaleConstant locale) const override
 
ItemTemplate const * GetTemplate () const
 
BonusData const * GetBonus () const
 
ObjectGuid GetOwnerGUID () const
 
void SetOwnerGUID (ObjectGuid guid)
 
ObjectGuid GetContainedIn () const
 
void SetContainedIn (ObjectGuid guid)
 
ObjectGuid GetCreator () const
 
void SetCreator (ObjectGuid guid)
 
ObjectGuid GetGiftCreator () const
 
void SetGiftCreator (ObjectGuid guid)
 
PlayerGetOwner () const
 
void SetExpiration (uint32 expiration)
 
ItemBondingType GetBonding () const
 
void SetBinding (bool val)
 
bool HasItemFlag (ItemFieldFlags flag) const
 
void SetItemFlag (ItemFieldFlags flags)
 
void RemoveItemFlag (ItemFieldFlags flags)
 
void ReplaceAllItemFlags (ItemFieldFlags flags)
 
bool HasItemZoneFlag (ItemZoneFlags flag) const
 
void SetItemZoneFlag (ItemZoneFlags flags)
 
void RemoveItemZoneFlag (ItemZoneFlags flags)
 
void ReplaceAllItemZoneFlags (ItemZoneFlags flags)
 
bool IsSoulBound () const
 
bool IsBoundAccountWide () const
 
bool IsBattlenetAccountBound () const
 
bool IsBindedNotWith (Player const *player) const
 
bool IsBoundByEnchant () const
 
virtual void SaveToDB (CharacterDatabaseTransaction trans)
 
virtual bool LoadFromDB (ObjectGuid::LowType guid, ObjectGuid ownerGuid, Field *fields, uint32 entry)
 
void LoadAdditionalDataFromDB (Player const *owner, ItemAdditionalLoadInfo *addionalData)
 
void LoadArtifactData (Player const *owner, uint64 xp, uint32 artifactAppearanceId, uint32 artifactTier, std::vector< ArtifactPowerData > &powers)
 
void CheckArtifactRelicSlotUnlock (Player const *owner)
 
void AddBonuses (uint32 bonusListID)
 
std::vector< int32 > const & GetBonusListIDs () const
 
void SetBonuses (std::vector< int32 > bonusListIDs)
 
void ClearBonuses ()
 
virtual void DeleteFromDB (CharacterDatabaseTransaction trans)
 
void DeleteFromInventoryDB (CharacterDatabaseTransaction trans)
 
void SaveRefundDataToDB ()
 
void DeleteRefundDataFromDB (CharacterDatabaseTransaction *trans)
 
BagToBag ()
 
Bag const * ToBag () const
 
AzeriteItemToAzeriteItem ()
 
AzeriteItem const * ToAzeriteItem () const
 
AzeriteEmpoweredItemToAzeriteEmpoweredItem ()
 
AzeriteEmpoweredItem const * ToAzeriteEmpoweredItem () const
 
bool IsRefundable () const
 
bool IsBOPTradeable () const
 
bool IsWrapped () const
 
bool IsLocked () const
 
bool IsBag () const
 
bool IsAzeriteItem () const
 
bool IsAzeriteEmpoweredItem () const
 
bool IsCurrencyToken () const
 
bool IsNotEmptyBag () const
 
bool IsBroken () const
 
void SetDurability (uint32 durability)
 
void SetMaxDurability (uint32 maxDurability)
 
bool CanBeTraded (bool mail=false, bool trade=false) const
 
void SetInTrade (bool b=true)
 
bool IsInTrade () const
 
uint64 CalculateDurabilityRepairCost (float discount) const
 
bool HasEnchantRequiredSkill (Player const *player) const
 
uint32 GetEnchantRequiredLevel () const
 
bool IsFitToSpellRequirements (SpellInfo const *spellInfo) const
 
bool IsLimitedToAnotherMapOrZone (uint32 cur_mapId, uint32 cur_zoneId) const
 
bool GemsFitSockets () const
 
uint32 GetCount () const
 
void SetCount (uint32 value)
 
uint32 GetMaxStackCount () const
 
uint8 GetGemCountWithID (uint32 GemID) const
 
uint8 GetGemCountWithLimitCategory (uint32 limitCategory) const
 
InventoryResult CanBeMergedPartlyWith (ItemTemplate const *proto) const
 
uint8 GetSlot () const
 
BagGetContainer ()
 
uint8 GetBagSlot () const
 
void SetSlot (uint8 slot)
 
uint16 GetPos () const
 
void SetContainer (Bag *container)
 
bool IsInBag () const
 
bool IsEquipped () const
 
uint32 GetSkill ()
 
ItemRandomBonusListId GetItemRandomBonusListId () const
 
void SetItemRandomBonusList (ItemRandomBonusListId bonusListId)
 
void SetEnchantment (EnchantmentSlot slot, uint32 id, uint32 duration, uint32 charges, ObjectGuid caster=ObjectGuid::Empty)
 
void SetEnchantmentDuration (EnchantmentSlot slot, uint32 duration, Player *owner)
 
void SetEnchantmentCharges (EnchantmentSlot slot, uint32 charges)
 
void ClearEnchantment (EnchantmentSlot slot)
 
uint32 GetEnchantmentId (EnchantmentSlot slot) const
 
uint32 GetEnchantmentDuration (EnchantmentSlot slot) const
 
uint32 GetEnchantmentCharges (EnchantmentSlot slot) const
 
UF::SocketedGem const * GetGem (uint16 slot) const
 
void SetGem (uint16 slot, ItemDynamicFieldGems const *gem, uint32 gemScalingLevel)
 
std::string const & GetText () const
 
void SetText (std::string const &text)
 
void SendUpdateSockets ()
 
void SendTimeUpdate (Player *owner)
 
void UpdateDuration (Player *owner, uint32 diff)
 
void SetCreatePlayedTime (uint32 createPlayedTime)
 
void SetCreateTime (int64 createTime)
 
int32 GetSpellCharges (ItemEffectEntry const *effect=nullptr) const
 
void SetSpellCharges (ItemEffectEntry const *effect, int32 value)
 
LootGetLootForPlayer (Player const *) const override
 
ItemUpdateState GetState () const
 
void SetState (ItemUpdateState state, Player *forplayer=nullptr)
 
bool IsInUpdateQueue () const
 
uint16 GetQueuePos () const
 
void FSetState (ItemUpdateState state)
 
bool hasQuest (uint32 quest_id) const override
 
bool hasInvolvedQuest (uint32) const override
 
bool IsPotion () const
 
bool IsVellum () const
 
bool IsConjuredConsumable () const
 
uint32 GetQuality () const
 
uint32 GetItemLevel (Player const *owner) const
 
int32 GetRequiredLevel () const
 
int32 GetItemStatType (uint32 index) const
 
float GetItemStatValue (uint32 index, Player const *owner) const
 
uint32 GetSocketColor (uint32 index) const
 
uint32 GetAppearanceModId () const
 
void SetAppearanceModId (uint32 appearanceModId)
 
uint32 GetDisplayId (Player const *owner) const
 
ItemModifiedAppearanceEntry const * GetItemModifiedAppearance () const
 
float GetRepairCostMultiplier () const
 
uint32 GetScalingContentTuningId () const
 
Optional< uint32GetDisenchantLootId () const
 
Optional< uint16GetDisenchantSkillRequired () const
 
void SetFixedLevel (uint8 level)
 
std::span< ItemEffectEntry const *const > GetEffects () const
 
uint32 GetItemLimitCategory () const
 
void SetNotRefundable (Player *owner, bool changestate=true, CharacterDatabaseTransaction *trans=nullptr, bool addToCollection=true)
 
void SetRefundRecipient (ObjectGuid const &guid)
 
void SetPaidMoney (uint64 money)
 
void SetPaidExtendedCost (uint32 iece)
 
ObjectGuid const & GetRefundRecipient () const
 
uint64 GetPaidMoney () const
 
uint32 GetPaidExtendedCost () const
 
uint32 GetPlayedTime () const
 
bool IsRefundExpired () const
 
void SetSoulboundTradeable (GuidSet const &allowedLooters)
 
void ClearSoulboundTradeable (Player *currentOwner)
 
bool CheckSoulboundTradeExpire ()
 
void BuildUpdate (UpdateDataMapType &) override
 
void BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::ItemData::Mask const &requestedItemMask, Player const *target, bool ignoreNestedChangesMask) const
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
uint32 GetScriptId () const
 
bool IsValidTransmogrificationTarget () const
 
uint32 GetBuyPrice (Player const *owner, bool &standardPrice) const
 
uint32 GetSellPrice (Player const *owner) const
 
uint32 GetVisibleEntry (Player const *owner) const
 
uint16 GetVisibleAppearanceModId (Player const *owner) const
 
uint32 GetVisibleModifiedAppearanceId (Player const *owner) const
 
int32 GetVisibleSecondaryModifiedAppearanceId (Player const *owner) const
 
uint32 GetVisibleEnchantmentId (Player const *owner) const
 
uint16 GetVisibleItemVisual (Player const *owner) const
 
uint32 GetModifier (ItemModifier modifier) const
 
void SetModifier (ItemModifier modifier, uint32 value)
 
ObjectGuid GetChildItem () const
 
void SetChildItem (ObjectGuid childItem)
 
bool IsArtifactDisabled () const
 
UF::ArtifactPower const * GetArtifactPower (uint32 artifactPowerId) const
 
void AddArtifactPower (ArtifactPowerData const *artifactPower)
 
void SetArtifactPower (uint16 artifactPowerId, uint8 purchasedRank, uint8 currentRankWithBonus)
 
void InitArtifactPowers (uint8 artifactId, uint8 artifactTier)
 
uint32 GetTotalUnlockedArtifactPowers () const
 
uint32 GetTotalPurchasedArtifactPowers () const
 
void ApplyArtifactPowerEnchantmentBonuses (EnchantmentSlot slot, uint32 enchantId, bool apply, Player *owner)
 
void CopyArtifactDataFromParent (Item *parent)
 
void SetArtifactXP (uint64 xp)
 
void GiveArtifactXp (uint64 amount, Item *sourceItem, uint32 artifactCategoryId)
 
ItemContext GetContext () const
 
void SetContext (ItemContext context)
 
void SetPetitionId (uint32 petitionId)
 
void SetPetitionNumSignatures (uint32 signatures)
 
std::string GetDebugInfo () const override
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
ItemToItem ()
 
Item const * ToItem () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
std::string GetDebugInfo () const override
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const
 
- Public Member Functions inherited from BaseEntity
virtual ~BaseEntity ()
 
bool IsInWorld () const
 
ObjectGuid const & GetGUID () const
 
TypeID GetTypeId () const
 
bool isType (TypeMask mask) const
 
bool IsWorldObject () const
 
bool IsItem () const
 
bool IsUnit () const
 
bool IsCreature () const
 
bool IsPlayer () const
 
bool IsGameObject () const
 
bool IsDynObject () const
 
bool IsCorpse () const
 
bool IsAreaTrigger () const
 
bool IsSceneObject () const
 
bool IsConversation () const
 
bool IsMeshObject () const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player) const
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
virtual void DestroyForPlayer (Player const *target) const
 
void SendOutOfRangeForPlayer (Player const *target) const
 
void ClearUpdateMask (bool remove)
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
void BuildUpdateChangesMask ()
 
void BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &)
 

Static Public Member Functions

static ItemCreateItem (uint32 itemEntry, uint32 count, ItemContext context, Player const *player=nullptr, bool addDefaultBonuses=true)
 
static void DeleteFromDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid)
 
static void DeleteFromInventoryDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid)
 
static uint32 GetItemLevel (ItemTemplate const *itemTemplate, BonusData const &bonusData, uint32 level, uint32 fixedLevel, uint32 minItemLevel, uint32 minItemLevelCutoff, uint32 maxItemLevel, bool pvpBonus, uint32 azeriteLevel)
 
static ItemDisenchantLootEntry const * GetBaseDisenchantLoot (ItemTemplate const *itemTemplate, uint32 quality, uint32 itemLevel)
 
static bool CanTransmogrifyItemWithItem (Item const *item, ItemModifiedAppearanceEntry const *itemModifiedAppearance)
 
static uint32 GetBuyPrice (ItemTemplate const *proto, uint32 quality, uint32 itemLevel, bool &standardPrice)
 
static uint32 GetSellPrice (ItemTemplate const *proto, uint32 quality, uint32 itemLevel)
 
- Static Public Member Functions inherited from Object
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static GameObjectToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static CorpseToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObjectToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
static AreaTriggerToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObjectToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static ConversationToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from BaseEntity
static ObjectGuid GetGUID (BaseEntity const *o)
 

Public Attributes

std::unique_ptr< Lootm_loot
 
bool m_lootGenerated
 
UF::UpdateField< UF::ItemData, uint32(WowCS::EntityFragment::CGObject), TYPEID_ITEMm_itemData
 
- Public Attributes inherited from Object
UF::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECTm_objectData
 
- Public Attributes inherited from BaseEntity
UF::UpdateFieldHolder m_values
 

Protected Member Functions

UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const final
 
void BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void ClearValuesChangesMask () override
 
- Protected Member Functions inherited from Object
 Object ()
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
- Protected Member Functions inherited from BaseEntity
 BaseEntity ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename K , typename V >
void RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key)
 
template<typename T >
void InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

BonusData _bonusData
 
- Protected Attributes inherited from BaseEntity
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES
 
CreateObjectBits m_updateFlag = {}
 
WowCS::EntityFragmentsHolder m_entityFragments
 
bool m_objectUpdated = false
 

Private Member Functions

int32 GetArtifactPowerIndex (uint32 artifactPowerId) const
 

Private Attributes

std::string m_text
 
uint8 m_slot
 
Bagm_container
 
ItemUpdateState uState
 
int16 uQueuePos
 
bool mb_in_trade
 
ObjectGuid m_refundRecipient
 
uint64 m_paidMoney
 
uint32 m_paidExtendedCost
 
GuidSet allowedGUIDs
 
ItemRandomBonusListId m_randomBonusListId
 
ObjectGuid m_childItem
 
std::array< uint32, MAX_ITEM_PROTO_SOCKETSm_gemScalingLevels
 

Friends

void AddItemToUpdateQueueOf (Item *item, Player *player)
 
void RemoveItemFromUpdateQueueOf (Item *item, Player *player)
 

Additional Inherited Members

- Static Protected Member Functions inherited from BaseEntity
static void BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments)
 

Detailed Description

Definition at line 178 of file Item.h.

Constructor & Destructor Documentation

◆ Item()

Item::Item ( )

Definition at line 486 of file Item.cpp.

+ Here is the call graph for this function:

◆ ~Item()

Item::~Item ( )
default

Member Function Documentation

◆ AddArtifactPower()

void Item::AddArtifactPower ( ArtifactPowerData const *  artifactPower)

Definition at line 2643 of file Item.cpp.

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

◆ AddBonuses()

void Item::AddBonuses ( uint32  bonusListID)

Definition at line 2581 of file Item.cpp.

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

◆ AddToObjectUpdate()

bool Item::AddToObjectUpdate ( )
overridevirtual

Implements BaseEntity.

Definition at line 1883 of file Item.cpp.

+ Here is the call graph for this function:

◆ ApplyArtifactPowerEnchantmentBonuses()

void Item::ApplyArtifactPowerEnchantmentBonuses ( EnchantmentSlot  slot,
uint32  enchantId,
bool  apply,
Player owner 
)

Definition at line 2720 of file Item.cpp.

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

◆ BuildUpdate()

void Item::BuildUpdate ( UpdateDataMapType data_map)
overridevirtual

Reimplemented from BaseEntity.

Definition at line 1790 of file Item.cpp.

+ Here is the call graph for this function:

◆ BuildValuesCreate()

void Item::BuildValuesCreate ( UF::UpdateFieldFlag  flags,
ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 1807 of file Item.cpp.

◆ BuildValuesUpdate()

void Item::BuildValuesUpdate ( UF::UpdateFieldFlag  flags,
ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 1813 of file Item.cpp.

+ Here is the call graph for this function:

◆ BuildValuesUpdateForPlayerWithMask()

void Item::BuildValuesUpdateForPlayerWithMask ( UpdateData data,
UF::ObjectData::Mask const &  requestedObjectMask,
UF::ItemData::Mask const &  requestedItemMask,
Player const *  target,
bool  ignoreNestedChangesMask 
) const

Definition at line 1836 of file Item.cpp.

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

◆ BuildValuesUpdateWithFlag()

void Item::BuildValuesUpdateWithFlag ( UF::UpdateFieldFlag  flags,
ByteBuffer data,
Player const *  target 
) const
overridevirtual

Reimplemented from Object.

Definition at line 1824 of file Item.cpp.

+ Here is the call graph for this function:

◆ CalculateDurabilityRepairCost()

uint64 Item::CalculateDurabilityRepairCost ( float  discount) const

Definition at line 1383 of file Item.cpp.

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

◆ CanBeMergedPartlyWith()

InventoryResult Item::CanBeMergedPartlyWith ( ItemTemplate const *  proto) const

Definition at line 1460 of file Item.cpp.

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

◆ CanBeTraded()

bool Item::CanBeTraded ( bool  mail = false,
bool  trade = false 
) const

Definition at line 1342 of file Item.cpp.

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

◆ CanTransmogrifyItemWithItem()

bool Item::CanTransmogrifyItemWithItem ( Item const *  item,
ItemModifiedAppearanceEntry const *  itemModifiedAppearance 
)
static

Definition at line 2053 of file Item.cpp.

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

◆ CheckArtifactRelicSlotUnlock()

void Item::CheckArtifactRelicSlotUnlock ( Player const *  owner)

Definition at line 1164 of file Item.cpp.

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

◆ CheckSoulboundTradeExpire()

bool Item::CheckSoulboundTradeExpire ( )

Definition at line 1983 of file Item.cpp.

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

◆ ClearBonuses()

void Item::ClearBonuses ( )

Definition at line 2609 of file Item.cpp.

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

◆ ClearEnchantment()

void Item::ClearEnchantment ( EnchantmentSlot  slot)

Definition at line 1558 of file Item.cpp.

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

◆ ClearSoulboundTradeable()

void Item::ClearSoulboundTradeable ( Player currentOwner)

Definition at line 1969 of file Item.cpp.

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

◆ ClearValuesChangesMask()

void Item::ClearValuesChangesMask ( )
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 1877 of file Item.cpp.

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

◆ CloneItem()

Item * Item::CloneItem ( uint32  count,
Player const *  player = nullptr 
) const

Definition at line 1751 of file Item.cpp.

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

◆ CopyArtifactDataFromParent()

void Item::CopyArtifactDataFromParent ( Item parent)

Definition at line 2808 of file Item.cpp.

+ Here is the call graph for this function:

◆ Create()

bool Item::Create ( ObjectGuid::LowType  guidlow,
uint32  itemId,
ItemContext  context,
Player const *  owner 
)
virtual

Reimplemented in AzeriteEmpoweredItem, AzeriteItem, and Bag.

Definition at line 510 of file Item.cpp.

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

◆ CreateItem()

Item * Item::CreateItem ( uint32  itemEntry,
uint32  count,
ItemContext  context,
Player const *  player = nullptr,
bool  addDefaultBonuses = true 
)
static

Definition at line 1721 of file Item.cpp.

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

◆ DeleteFromDB() [1/2]

void Item::DeleteFromDB ( CharacterDatabaseTransaction  trans)
virtual

Reimplemented in AzeriteEmpoweredItem, AzeriteItem, and Bag.

Definition at line 1211 of file Item.cpp.

+ Here is the call graph for this function:

◆ DeleteFromDB() [2/2]

void Item::DeleteFromDB ( CharacterDatabaseTransaction  trans,
ObjectGuid::LowType  itemGuid 
)
static

Definition at line 1180 of file Item.cpp.

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

◆ DeleteFromInventoryDB() [1/2]

void Item::DeleteFromInventoryDB ( CharacterDatabaseTransaction  trans)

Definition at line 1228 of file Item.cpp.

+ Here is the call graph for this function:

◆ DeleteFromInventoryDB() [2/2]

void Item::DeleteFromInventoryDB ( CharacterDatabaseTransaction  trans,
ObjectGuid::LowType  itemGuid 
)
static

Definition at line 1221 of file Item.cpp.

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

◆ DeleteRefundDataFromDB()

void Item::DeleteRefundDataFromDB ( CharacterDatabaseTransaction trans)

Definition at line 1918 of file Item.cpp.

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

◆ FSetState()

void Item::FSetState ( ItemUpdateState  state)
inline

Definition at line 337 of file Item.h.

+ Here is the caller graph for this function:

◆ GemsFitSockets()

bool Item::GemsFitSockets ( ) const

Definition at line 1634 of file Item.cpp.

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

◆ GetAppearanceModId()

uint32 Item::GetAppearanceModId ( ) const
inline

Definition at line 355 of file Item.h.

+ Here is the caller graph for this function:

◆ GetArtifactPower()

UF::ArtifactPower const * Item::GetArtifactPower ( uint32  artifactPowerId) const

Definition at line 2634 of file Item.cpp.

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

◆ GetArtifactPowerIndex()

int32 Item::GetArtifactPowerIndex ( uint32  artifactPowerId) const
private

Definition at line 2626 of file Item.cpp.

+ Here is the caller graph for this function:

◆ GetBagSlot()

uint8 Item::GetBagSlot ( ) const

Definition at line 1331 of file Item.cpp.

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

◆ GetBaseDisenchantLoot()

ItemDisenchantLootEntry const * Item::GetBaseDisenchantLoot ( ItemTemplate const *  itemTemplate,
uint32  quality,
uint32  itemLevel 
)
static

Definition at line 2411 of file Item.cpp.

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

◆ GetBonding()

ItemBondingType Item::GetBonding ( ) const
inline

Definition at line 209 of file Item.h.

+ Here is the caller graph for this function:

◆ GetBonus()

BonusData const * Item::GetBonus ( ) const
inline

Definition at line 195 of file Item.h.

+ Here is the caller graph for this function:

◆ GetBonusListIDs()

std::vector< int32 > const & Item::GetBonusListIDs ( ) const
inline

Definition at line 239 of file Item.h.

+ Here is the caller graph for this function:

◆ GetBuyPrice() [1/2]

uint32 Item::GetBuyPrice ( ItemTemplate const *  proto,
uint32  quality,
uint32  itemLevel,
bool &  standardPrice 
)
static

Definition at line 2106 of file Item.cpp.

+ Here is the call graph for this function:

◆ GetBuyPrice() [2/2]

uint32 Item::GetBuyPrice ( Player const *  owner,
bool &  standardPrice 
) const

Definition at line 2101 of file Item.cpp.

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

◆ GetChildItem()

ObjectGuid Item::GetChildItem ( ) const
inline

Definition at line 433 of file Item.h.

+ Here is the caller graph for this function:

◆ GetContainedIn()

ObjectGuid Item::GetContainedIn ( ) const
inline

Definition at line 199 of file Item.h.

◆ GetContainer()

Bag * Item::GetContainer ( )
inline

Definition at line 291 of file Item.h.

+ Here is the caller graph for this function:

◆ GetContext()

ItemContext Item::GetContext ( ) const
inline

Definition at line 451 of file Item.h.

+ Here is the caller graph for this function:

◆ GetCount()

uint32 Item::GetCount ( ) const
inline

Definition at line 283 of file Item.h.

+ Here is the caller graph for this function:

◆ GetCreator()

ObjectGuid Item::GetCreator ( ) const
inline

Definition at line 201 of file Item.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

std::string Item::GetDebugInfo ( ) const
overridevirtual

Reimplemented from BaseEntity.

Definition at line 2876 of file Item.cpp.

+ Here is the call graph for this function:

◆ GetDisenchantLootId()

Optional< uint32 > Item::GetDisenchantLootId ( ) const

Definition at line 2378 of file Item.cpp.

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

◆ GetDisenchantSkillRequired()

Optional< uint16 > Item::GetDisenchantSkillRequired ( ) const

Definition at line 2396 of file Item.cpp.

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

◆ GetDisplayId()

uint32 Item::GetDisplayId ( Player const *  owner) const

Definition at line 2448 of file Item.cpp.

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

◆ GetEffects()

std::span< ItemEffectEntry const *const > Item::GetEffects ( ) const
inline

Definition at line 365 of file Item.h.

+ Here is the caller graph for this function:

◆ GetEnchantmentCharges()

uint32 Item::GetEnchantmentCharges ( EnchantmentSlot  slot) const
inline

Definition at line 310 of file Item.h.

+ Here is the caller graph for this function:

◆ GetEnchantmentDuration()

uint32 Item::GetEnchantmentDuration ( EnchantmentSlot  slot) const
inline

Definition at line 309 of file Item.h.

+ Here is the caller graph for this function:

◆ GetEnchantmentId()

uint32 Item::GetEnchantmentId ( EnchantmentSlot  slot) const
inline

Definition at line 308 of file Item.h.

+ Here is the caller graph for this function:

◆ GetEnchantRequiredLevel()

uint32 Item::GetEnchantRequiredLevel ( ) const

Definition at line 1434 of file Item.cpp.

+ Here is the call graph for this function:

◆ GetGem()

UF::SocketedGem const * Item::GetGem ( uint16  slot) const

Definition at line 1571 of file Item.cpp.

+ Here is the caller graph for this function:

◆ GetGemCountWithID()

uint8 Item::GetGemCountWithID ( uint32  GemID) const

Definition at line 1666 of file Item.cpp.

+ Here is the caller graph for this function:

◆ GetGemCountWithLimitCategory()

uint8 Item::GetGemCountWithLimitCategory ( uint32  limitCategory) const

Definition at line 1674 of file Item.cpp.

+ Here is the caller graph for this function:

◆ GetGiftCreator()

ObjectGuid Item::GetGiftCreator ( ) const
inline

Definition at line 203 of file Item.h.

+ Here is the caller graph for this function:

◆ GetItemLevel() [1/2]

uint32 Item::GetItemLevel ( ItemTemplate const *  itemTemplate,
BonusData const &  bonusData,
uint32  level,
uint32  fixedLevel,
uint32  minItemLevel,
uint32  minItemLevelCutoff,
uint32  maxItemLevel,
bool  pvpBonus,
uint32  azeriteLevel 
)
static

Definition at line 2279 of file Item.cpp.

+ Here is the call graph for this function:

◆ GetItemLevel() [2/2]

uint32 Item::GetItemLevel ( Player const *  owner) const

Definition at line 2265 of file Item.cpp.

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

◆ GetItemLimitCategory()

uint32 Item::GetItemLimitCategory ( ) const
inline

Definition at line 366 of file Item.h.

+ Here is the caller graph for this function:

◆ GetItemModifiedAppearance()

ItemModifiedAppearanceEntry const * Item::GetItemModifiedAppearance ( ) const

Definition at line 2465 of file Item.cpp.

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

◆ GetItemRandomBonusListId()

ItemRandomBonusListId Item::GetItemRandomBonusListId ( ) const
inline

Definition at line 302 of file Item.h.

◆ GetItemStatType()

int32 Item::GetItemStatType ( uint32  index) const
inline

Definition at line 352 of file Item.h.

+ Here is the caller graph for this function:

◆ GetItemStatValue()

float Item::GetItemStatValue ( uint32  index,
Player const *  owner 
) const

Definition at line 2353 of file Item.cpp.

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

◆ GetLootForPlayer()

Loot * Item::GetLootForPlayer ( Player const *  ) const
inlineoverridevirtual

Reimplemented from Object.

Definition at line 330 of file Item.h.

◆ GetMaxStackCount()

uint32 Item::GetMaxStackCount ( ) const
inline

Definition at line 285 of file Item.h.

+ Here is the caller graph for this function:

◆ GetModifier()

uint32 Item::GetModifier ( ItemModifier  modifier) const

Definition at line 2470 of file Item.cpp.

+ Here is the caller graph for this function:

◆ GetNameForLocaleIdx()

std::string Item::GetNameForLocaleIdx ( LocaleConstant  locale) const
overridevirtual

Implements BaseEntity.

Definition at line 565 of file Item.cpp.

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

◆ GetOwner()

Player * Item::GetOwner ( ) const

Definition at line 1238 of file Item.cpp.

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

◆ GetOwnerGUID()

ObjectGuid Item::GetOwnerGUID ( ) const
inline

Definition at line 197 of file Item.h.

+ Here is the caller graph for this function:

◆ GetPaidExtendedCost()

uint32 Item::GetPaidExtendedCost ( ) const
inline

Definition at line 376 of file Item.h.

+ Here is the caller graph for this function:

◆ GetPaidMoney()

uint64 Item::GetPaidMoney ( ) const
inline

Definition at line 375 of file Item.h.

+ Here is the caller graph for this function:

◆ GetPlayedTime()

uint32 Item::GetPlayedTime ( ) const

Definition at line 1953 of file Item.cpp.

+ Here is the caller graph for this function:

◆ GetPos()

uint16 Item::GetPos ( ) const
inline

Definition at line 294 of file Item.h.

+ Here is the caller graph for this function:

◆ GetQuality()

uint32 Item::GetQuality ( ) const
inline

Definition at line 347 of file Item.h.

+ Here is the caller graph for this function:

◆ GetQueuePos()

uint16 Item::GetQueuePos ( ) const
inline

Definition at line 336 of file Item.h.

+ Here is the caller graph for this function:

◆ GetRefundRecipient()

ObjectGuid const & Item::GetRefundRecipient ( ) const
inline

Definition at line 374 of file Item.h.

+ Here is the caller graph for this function:

◆ GetRepairCostMultiplier()

float Item::GetRepairCostMultiplier ( ) const
inline

Definition at line 359 of file Item.h.

+ Here is the caller graph for this function:

◆ GetRequiredLevel()

int32 Item::GetRequiredLevel ( ) const

Definition at line 2864 of file Item.cpp.

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

◆ GetScalingContentTuningId()

uint32 Item::GetScalingContentTuningId ( ) const
inline

Definition at line 360 of file Item.h.

+ Here is the caller graph for this function:

◆ GetScriptId()

uint32 Item::GetScriptId ( ) const
inline

Definition at line 414 of file Item.h.

+ Here is the caller graph for this function:

◆ GetSellPrice() [1/2]

uint32 Item::GetSellPrice ( ItemTemplate const *  proto,
uint32  quality,
uint32  itemLevel 
)
static

Definition at line 2239 of file Item.cpp.

+ Here is the call graph for this function:

◆ GetSellPrice() [2/2]

uint32 Item::GetSellPrice ( Player const *  owner) const

Definition at line 2234 of file Item.cpp.

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

◆ GetSkill()

uint32 Item::GetSkill ( )

Definition at line 1244 of file Item.cpp.

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

◆ GetSlot()

uint8 Item::GetSlot ( ) const
inline

Definition at line 290 of file Item.h.

+ Here is the caller graph for this function:

◆ GetSocketColor()

uint32 Item::GetSocketColor ( uint32  index) const
inline

Definition at line 354 of file Item.h.

+ Here is the caller graph for this function:

◆ GetSpellCharges()

int32 Item::GetSpellCharges ( ItemEffectEntry const *  effect = nullptr) const

Definition at line 623 of file Item.cpp.

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

◆ GetState()

ItemUpdateState Item::GetState ( ) const
inline

Definition at line 333 of file Item.h.

+ Here is the caller graph for this function:

◆ GetTemplate()

ItemTemplate const * Item::GetTemplate ( ) const

Definition at line 1233 of file Item.cpp.

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

◆ GetText()

std::string const & Item::GetText ( ) const
inline

Definition at line 314 of file Item.h.

◆ GetTotalPurchasedArtifactPowers()

uint32 Item::GetTotalPurchasedArtifactPowers ( ) const

Definition at line 2711 of file Item.cpp.

+ Here is the caller graph for this function:

◆ GetTotalUnlockedArtifactPowers()

uint32 Item::GetTotalUnlockedArtifactPowers ( ) const

Definition at line 2688 of file Item.cpp.

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

◆ GetUpdateFieldFlagsFor()

UF::UpdateFieldFlag Item::GetUpdateFieldFlagsFor ( Player const *  target) const
finalprotectedvirtual

Reimplemented from BaseEntity.

Definition at line 1799 of file Item.cpp.

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

◆ GetVisibleAppearanceModId()

uint16 Item::GetVisibleAppearanceModId ( Player const *  owner) const

Definition at line 2527 of file Item.cpp.

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

◆ GetVisibleEnchantmentId()

uint32 Item::GetVisibleEnchantmentId ( Player const *  owner) const

Definition at line 2561 of file Item.cpp.

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

◆ GetVisibleEntry()

uint32 Item::GetVisibleEntry ( Player const *  owner) const

Definition at line 2515 of file Item.cpp.

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

◆ GetVisibleItemVisual()

uint16 Item::GetVisibleItemVisual ( Player const *  owner) const

Definition at line 2573 of file Item.cpp.

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

◆ GetVisibleModifiedAppearanceId()

uint32 Item::GetVisibleModifiedAppearanceId ( Player const *  owner) const

Definition at line 2539 of file Item.cpp.

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

◆ GetVisibleSecondaryModifiedAppearanceId()

int32 Item::GetVisibleSecondaryModifiedAppearanceId ( Player const *  owner) const

Definition at line 2552 of file Item.cpp.

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

◆ GiveArtifactXp()

void Item::GiveArtifactXp ( uint64  amount,
Item sourceItem,
uint32  artifactCategoryId 
)

Definition at line 2815 of file Item.cpp.

+ Here is the call graph for this function:

◆ HasEnchantRequiredSkill()

bool Item::HasEnchantRequiredSkill ( Player const *  player) const

Definition at line 1422 of file Item.cpp.

+ Here is the call graph for this function:

◆ hasInvolvedQuest()

bool Item::hasInvolvedQuest ( uint32  ) const
inlineoverridevirtual

Reimplemented from Object.

Definition at line 343 of file Item.h.

◆ HasItemFlag()

bool Item::HasItemFlag ( ItemFieldFlags  flag) const
inline

Definition at line 217 of file Item.h.

+ Here is the caller graph for this function:

◆ HasItemZoneFlag()

bool Item::HasItemZoneFlag ( ItemZoneFlags  flag) const
inline

Definition at line 222 of file Item.h.

◆ hasQuest()

bool Item::hasQuest ( uint32  quest_id) const
inlineoverridevirtual

Reimplemented from Object.

Definition at line 342 of file Item.h.

◆ InitArtifactPowers()

void Item::InitArtifactPowers ( uint8  artifactId,
uint8  artifactTier 
)

Definition at line 2666 of file Item.cpp.

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

◆ IsArtifactDisabled()

bool Item::IsArtifactDisabled ( ) const

Definition at line 2618 of file Item.cpp.

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

◆ IsAzeriteEmpoweredItem()

bool Item::IsAzeriteEmpoweredItem ( ) const
inline

Definition at line 264 of file Item.h.

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

◆ IsAzeriteItem()

bool Item::IsAzeriteItem ( ) const
inline

Definition at line 263 of file Item.h.

+ Here is the call graph for this function:

◆ IsBag()

bool Item::IsBag ( ) const
inline

Definition at line 262 of file Item.h.

+ Here is the caller graph for this function:

◆ IsBattlenetAccountBound()

bool Item::IsBattlenetAccountBound ( ) const
inline

Definition at line 229 of file Item.h.

+ Here is the caller graph for this function:

◆ IsBindedNotWith()

bool Item::IsBindedNotWith ( Player const *  player) const

Definition at line 1769 of file Item.cpp.

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

◆ IsBOPTradeable()

bool Item::IsBOPTradeable ( ) const
inline

Definition at line 259 of file Item.h.

+ Here is the caller graph for this function:

◆ IsBoundAccountWide()

bool Item::IsBoundAccountWide ( ) const
inline

Definition at line 228 of file Item.h.

+ Here is the caller graph for this function:

◆ IsBoundByEnchant()

bool Item::IsBoundByEnchant ( ) const

Definition at line 1448 of file Item.cpp.

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

◆ IsBroken()

bool Item::IsBroken ( ) const
inline

Definition at line 267 of file Item.h.

+ Here is the caller graph for this function:

◆ IsConjuredConsumable()

bool Item::IsConjuredConsumable ( ) const
inline

Definition at line 346 of file Item.h.

◆ IsCurrencyToken()

bool Item::IsCurrencyToken ( ) const
inline

Definition at line 265 of file Item.h.

+ Here is the caller graph for this function:

◆ IsEquipped()

bool Item::IsEquipped ( ) const

Definition at line 1336 of file Item.cpp.

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

◆ IsFitToSpellRequirements()

bool Item::IsFitToSpellRequirements ( SpellInfo const *  spellInfo) const

Definition at line 1477 of file Item.cpp.

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

◆ IsInBag()

bool Item::IsInBag ( ) const
inline

Definition at line 297 of file Item.h.

+ Here is the caller graph for this function:

◆ IsInTrade()

bool Item::IsInTrade ( ) const
inline

Definition at line 272 of file Item.h.

+ Here is the caller graph for this function:

◆ IsInUpdateQueue()

bool Item::IsInUpdateQueue ( ) const
inline

Definition at line 335 of file Item.h.

+ Here is the caller graph for this function:

◆ IsLimitedToAnotherMapOrZone()

bool Item::IsLimitedToAnotherMapOrZone ( uint32  cur_mapId,
uint32  cur_zoneId 
) const

Definition at line 1692 of file Item.cpp.

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

◆ IsLocked()

bool Item::IsLocked ( ) const
inline

Definition at line 261 of file Item.h.

+ Here is the caller graph for this function:

◆ IsNotEmptyBag()

bool Item::IsNotEmptyBag ( ) const

Definition at line 576 of file Item.cpp.

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

◆ IsPotion()

bool Item::IsPotion ( ) const
inline

Definition at line 344 of file Item.h.

+ Here is the caller graph for this function:

◆ IsRefundable()

bool Item::IsRefundable ( ) const
inline

Definition at line 258 of file Item.h.

+ Here is the caller graph for this function:

◆ IsRefundExpired()

bool Item::IsRefundExpired ( ) const

Definition at line 1958 of file Item.cpp.

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

◆ IsSoulBound()

bool Item::IsSoulBound ( ) const
inline

Definition at line 227 of file Item.h.

+ Here is the caller graph for this function:

◆ IsValidTransmogrificationTarget()

bool Item::IsValidTransmogrificationTarget ( ) const

Definition at line 1995 of file Item.cpp.

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

◆ IsVellum()

bool Item::IsVellum ( ) const
inline

Definition at line 345 of file Item.h.

+ Here is the caller graph for this function:

◆ IsWrapped()

bool Item::IsWrapped ( ) const
inline

Definition at line 260 of file Item.h.

+ Here is the caller graph for this function:

◆ LoadAdditionalDataFromDB()

void Item::LoadAdditionalDataFromDB ( Player const *  owner,
ItemAdditionalLoadInfo addionalData 
)

Definition at line 1083 of file Item.cpp.

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

◆ LoadArtifactData()

void Item::LoadArtifactData ( Player const *  owner,
uint64  xp,
uint32  artifactAppearanceId,
uint32  artifactTier,
std::vector< ArtifactPowerData > &  powers 
)

Definition at line 1098 of file Item.cpp.

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

◆ LoadFromDB()

bool Item::LoadFromDB ( ObjectGuid::LowType  guid,
ObjectGuid  ownerGuid,
Field fields,
uint32  entry 
)
virtual

Reimplemented in Bag.

Definition at line 907 of file Item.cpp.

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

◆ RemoveFromObjectUpdate()

void Item::RemoveFromObjectUpdate ( )
overridevirtual

Implements BaseEntity.

Definition at line 1894 of file Item.cpp.

+ Here is the call graph for this function:

◆ RemoveItemFlag()

void Item::RemoveItemFlag ( ItemFieldFlags  flags)
inline

Definition at line 219 of file Item.h.

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

◆ RemoveItemZoneFlag()

void Item::RemoveItemZoneFlag ( ItemZoneFlags  flags)
inline

Definition at line 224 of file Item.h.

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

◆ ReplaceAllItemFlags()

void Item::ReplaceAllItemFlags ( ItemFieldFlags  flags)
inline

Definition at line 220 of file Item.h.

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

◆ ReplaceAllItemZoneFlags()

void Item::ReplaceAllItemZoneFlags ( ItemZoneFlags  flags)
inline

Definition at line 225 of file Item.h.

+ Here is the call graph for this function:

◆ SaveRefundDataToDB()

void Item::SaveRefundDataToDB ( )

Definition at line 1900 of file Item.cpp.

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

◆ SaveToDB()

void Item::SaveToDB ( CharacterDatabaseTransaction  trans)
virtual

Reimplemented in AzeriteEmpoweredItem, AzeriteItem, and Bag.

Definition at line 639 of file Item.cpp.

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

◆ SendTimeUpdate()

void Item::SendTimeUpdate ( Player owner)

Definition at line 1709 of file Item.cpp.

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

◆ SendUpdateSockets()

void Item::SendUpdateSockets ( )

Definition at line 1699 of file Item.cpp.

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

◆ SetAppearanceModId()

void Item::SetAppearanceModId ( uint32  appearanceModId)
inline

Definition at line 356 of file Item.h.

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

◆ SetArtifactPower()

void Item::SetArtifactPower ( uint16  artifactPowerId,
uint8  purchasedRank,
uint8  currentRankWithBonus 
)

Definition at line 2651 of file Item.cpp.

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

◆ SetArtifactXP()

void Item::SetArtifactXP ( uint64  xp)
inline

Definition at line 448 of file Item.h.

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

◆ SetBinding()

void Item::SetBinding ( bool  val)
inline

Definition at line 210 of file Item.h.

+ Here is the caller graph for this function:

◆ SetBonuses()

void Item::SetBonuses ( std::vector< int32 bonusListIDs)

Definition at line 2596 of file Item.cpp.

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

◆ SetChildItem()

void Item::SetChildItem ( ObjectGuid  childItem)
inline

Definition at line 434 of file Item.h.

+ Here is the caller graph for this function:

◆ SetContainedIn()

void Item::SetContainedIn ( ObjectGuid  guid)
inline

Definition at line 200 of file Item.h.

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

◆ SetContainer()

void Item::SetContainer ( Bag container)
inline

Definition at line 295 of file Item.h.

+ Here is the caller graph for this function:

◆ SetContext()

void Item::SetContext ( ItemContext  context)
inline

Definition at line 452 of file Item.h.

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

◆ SetCount()

void Item::SetCount ( uint32  value)

Definition at line 1367 of file Item.cpp.

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

◆ SetCreatePlayedTime()

void Item::SetCreatePlayedTime ( uint32  createPlayedTime)
inline

Definition at line 321 of file Item.h.

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

◆ SetCreateTime()

void Item::SetCreateTime ( int64  createTime)
inline

Definition at line 322 of file Item.h.

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

◆ SetCreator()

void Item::SetCreator ( ObjectGuid  guid)
inline

Definition at line 202 of file Item.h.

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

◆ SetDurability()

void Item::SetDurability ( uint32  durability)
inline

Definition at line 268 of file Item.h.

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

◆ SetEnchantment()

void Item::SetEnchantment ( EnchantmentSlot  slot,
uint32  id,
uint32  duration,
uint32  charges,
ObjectGuid  caster = ObjectGuid::Empty 
)

Definition at line 1511 of file Item.cpp.

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

◆ SetEnchantmentCharges()

void Item::SetEnchantmentCharges ( EnchantmentSlot  slot,
uint32  charges 
)

Definition at line 1549 of file Item.cpp.

+ Here is the call graph for this function:

◆ SetEnchantmentDuration()

void Item::SetEnchantmentDuration ( EnchantmentSlot  slot,
uint32  duration,
Player owner 
)

Definition at line 1539 of file Item.cpp.

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

◆ SetExpiration()

void Item::SetExpiration ( uint32  expiration)
inline

Definition at line 207 of file Item.h.

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

◆ SetFixedLevel()

void Item::SetFixedLevel ( uint8  level)

Definition at line 2850 of file Item.cpp.

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

◆ SetGem()

void Item::SetGem ( uint16  slot,
ItemDynamicFieldGems const *  gem,
uint32  gemScalingLevel 
)

Definition at line 1577 of file Item.cpp.

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

◆ SetGiftCreator()

void Item::SetGiftCreator ( ObjectGuid  guid)
inline

Definition at line 204 of file Item.h.

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

◆ SetInTrade()

void Item::SetInTrade ( bool  b = true)
inline

Definition at line 271 of file Item.h.

+ Here is the caller graph for this function:

◆ SetItemFlag()

void Item::SetItemFlag ( ItemFieldFlags  flags)
inline

Definition at line 218 of file Item.h.

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

◆ SetItemRandomBonusList()

void Item::SetItemRandomBonusList ( ItemRandomBonusListId  bonusListId)

Definition at line 1250 of file Item.cpp.

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

◆ SetItemZoneFlag()

void Item::SetItemZoneFlag ( ItemZoneFlags  flags)
inline

Definition at line 223 of file Item.h.

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

◆ SetMaxDurability()

void Item::SetMaxDurability ( uint32  maxDurability)
inline

Definition at line 269 of file Item.h.

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

◆ SetModifier()

void Item::SetModifier ( ItemModifier  modifier,
uint32  value 
)

Definition at line 2483 of file Item.cpp.

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

◆ SetNotRefundable()

void Item::SetNotRefundable ( Player owner,
bool  changestate = true,
CharacterDatabaseTransaction trans = nullptr,
bool  addToCollection = true 
)

Definition at line 1929 of file Item.cpp.

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

◆ SetOwnerGUID()

void Item::SetOwnerGUID ( ObjectGuid  guid)
inline

Definition at line 198 of file Item.h.

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

◆ SetPaidExtendedCost()

void Item::SetPaidExtendedCost ( uint32  iece)
inline

Definition at line 372 of file Item.h.

+ Here is the caller graph for this function:

◆ SetPaidMoney()

void Item::SetPaidMoney ( uint64  money)
inline

Definition at line 371 of file Item.h.

+ Here is the caller graph for this function:

◆ SetPetitionId()

void Item::SetPetitionId ( uint32  petitionId)
inline

Definition at line 454 of file Item.h.

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

◆ SetPetitionNumSignatures()

void Item::SetPetitionNumSignatures ( uint32  signatures)
inline

Definition at line 455 of file Item.h.

+ Here is the call graph for this function:

◆ SetRefundRecipient()

void Item::SetRefundRecipient ( ObjectGuid const &  guid)
inline

Definition at line 370 of file Item.h.

+ Here is the caller graph for this function:

◆ SetSlot()

void Item::SetSlot ( uint8  slot)
inline

Definition at line 293 of file Item.h.

+ Here is the caller graph for this function:

◆ SetSoulboundTradeable()

void Item::SetSoulboundTradeable ( GuidSet const &  allowedLooters)

Definition at line 1963 of file Item.cpp.

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

◆ SetSpellCharges()

void Item::SetSpellCharges ( ItemEffectEntry const *  effect,
int32  value 
)

Definition at line 632 of file Item.cpp.

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

◆ SetState()

void Item::SetState ( ItemUpdateState  state,
Player forplayer = nullptr 
)

Definition at line 1258 of file Item.cpp.

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

◆ SetText()

void Item::SetText ( std::string const &  text)
inline

Definition at line 315 of file Item.h.

+ Here is the caller graph for this function:

◆ ToAzeriteEmpoweredItem() [1/2]

AzeriteEmpoweredItem * Item::ToAzeriteEmpoweredItem ( )
inline

Definition at line 255 of file Item.h.

+ Here is the caller graph for this function:

◆ ToAzeriteEmpoweredItem() [2/2]

AzeriteEmpoweredItem const * Item::ToAzeriteEmpoweredItem ( ) const
inline

Definition at line 256 of file Item.h.

◆ ToAzeriteItem() [1/2]

AzeriteItem * Item::ToAzeriteItem ( )
inline

Definition at line 253 of file Item.h.

+ Here is the caller graph for this function:

◆ ToAzeriteItem() [2/2]

AzeriteItem const * Item::ToAzeriteItem ( ) const
inline

Definition at line 254 of file Item.h.

◆ ToBag() [1/2]

Bag * Item::ToBag ( )
inline

Definition at line 251 of file Item.h.

+ Here is the caller graph for this function:

◆ ToBag() [2/2]

Bag const * Item::ToBag ( ) const
inline

Definition at line 252 of file Item.h.

◆ UpdateDuration()

void Item::UpdateDuration ( Player owner,
uint32  diff 
)

Definition at line 583 of file Item.cpp.

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

Friends And Related Symbol Documentation

◆ AddItemToUpdateQueueOf

void AddItemToUpdateQueueOf ( Item item,
Player player 
)
friend

Definition at line 1289 of file Item.cpp.

◆ RemoveItemFromUpdateQueueOf

void RemoveItemFromUpdateQueueOf ( Item item,
Player player 
)
friend

Definition at line 1310 of file Item.cpp.

Member Data Documentation

◆ _bonusData

BonusData Item::_bonusData
protected

Definition at line 462 of file Item.h.

◆ allowedGUIDs

GuidSet Item::allowedGUIDs
private

Definition at line 474 of file Item.h.

◆ m_childItem

ObjectGuid Item::m_childItem
private

Definition at line 476 of file Item.h.

◆ m_container

Bag* Item::m_container
private

Definition at line 467 of file Item.h.

◆ m_gemScalingLevels

std::array<uint32, MAX_ITEM_PROTO_SOCKETS> Item::m_gemScalingLevels
private

Definition at line 477 of file Item.h.

◆ m_itemData

Definition at line 459 of file Item.h.

◆ m_loot

std::unique_ptr<Loot> Item::m_loot

Definition at line 328 of file Item.h.

◆ m_lootGenerated

bool Item::m_lootGenerated

Definition at line 329 of file Item.h.

◆ m_paidExtendedCost

uint32 Item::m_paidExtendedCost
private

Definition at line 473 of file Item.h.

◆ m_paidMoney

uint64 Item::m_paidMoney
private

Definition at line 472 of file Item.h.

◆ m_randomBonusListId

ItemRandomBonusListId Item::m_randomBonusListId
private

Definition at line 475 of file Item.h.

◆ m_refundRecipient

ObjectGuid Item::m_refundRecipient
private

Definition at line 471 of file Item.h.

◆ m_slot

uint8 Item::m_slot
private

Definition at line 466 of file Item.h.

◆ m_text

std::string Item::m_text
private

Definition at line 465 of file Item.h.

◆ mb_in_trade

bool Item::mb_in_trade
private

Definition at line 470 of file Item.h.

◆ uQueuePos

int16 Item::uQueuePos
private

Definition at line 469 of file Item.h.

◆ uState

ItemUpdateState Item::uState
private

Definition at line 468 of file Item.h.


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