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

#include <Item.h>

+ Inheritance diagram for Item:

Public Member Functions

ItemCloneItem (uint32 count, Player const *player=nullptr) const
 
 Item ()
 
virtual bool Create (ObjectGuid::LowType guidlow, uint32 itemId, Player const *owner)
 
ItemTemplate const * GetTemplate () const
 
ObjectGuid GetOwnerGUID () const
 
void SetOwnerGUID (ObjectGuid guid)
 
PlayerGetOwner () const
 
void SetBinding (bool val)
 
bool IsSoulBound () const
 
bool IsBoundAccountWide () const
 
bool IsBindedNotWith (Player const *player) const
 
bool IsBoundByEnchant () const
 
virtual void SaveToDB (CharacterDatabaseTransaction trans)
 
virtual bool LoadFromDB (ObjectGuid::LowType guid, ObjectGuid owner_guid, Field *fields, uint32 entry)
 
virtual void DeleteFromDB (CharacterDatabaseTransaction trans)
 
void DeleteFromInventoryDB (CharacterDatabaseTransaction trans)
 
void SaveRefundDataToDB ()
 
void DeleteRefundDataFromDB (CharacterDatabaseTransaction *trans)
 
BagToBag ()
 
Bag const * ToBag () const
 
bool IsRefundable () const
 
bool IsBOPTradeable () const
 
bool IsWrapped () const
 
bool IsLocked () const
 
bool IsBag () const
 
bool IsCurrencyToken () const
 
bool IsNotEmptyBag () const
 
bool IsBroken () const
 
bool CanBeTraded (bool mail=false, bool trade=false) const
 
void SetInTrade (bool b=true)
 
bool IsInTrade () const
 
uint32 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 ()
 
uint32 GetSpell ()
 
int32 GetItemRandomPropertyId () const
 
uint32 GetItemSuffixFactor () const
 
void SetItemRandomProperties (int32 randomPropId)
 
void UpdateItemSuffixFactor ()
 
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
 
std::string const & GetText () const
 
void SetText (std::string const &text)
 
void SendUpdateSockets ()
 
void SendTimeUpdate (Player *owner)
 
void UpdateDuration (Player *owner, uint32 diff)
 
int32 GetSpellCharges (uint8 index=0) const
 
void SetSpellCharges (uint8 index, int32 value)
 
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 IsWeaponVellum () const
 
bool IsArmorVellum () const
 
bool IsConjuredConsumable () const
 
void SetNotRefundable (Player *owner, bool changestate=true, CharacterDatabaseTransaction *trans=nullptr)
 
void SetRefundRecipient (ObjectGuid const &guid)
 
void SetPaidMoney (uint32 money)
 
void SetPaidExtendedCost (uint32 iece)
 
ObjectGuid const & GetRefundRecipient () const
 
uint32 GetPaidMoney () const
 
uint32 GetPaidExtendedCost () const
 
void UpdatePlayedTime (Player *owner)
 
uint32 GetPlayedTime ()
 
bool IsRefundExpired ()
 
void SetSoulboundTradeable (GuidSet const &allowedLooters)
 
void ClearSoulboundTradeable (Player *currentOwner)
 
bool CheckSoulboundTradeExpire ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
uint32 GetScriptId () const
 
std::string GetDebugInfo () const override
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
bool IsInWorld () const
 
virtual void AddToWorld ()
 
virtual void RemoveFromWorld ()
 
ObjectGuid GetGUID () const
 
PackedGuid const & GetPackGUID () const
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
virtual uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
virtual void SetDynamicFlag (uint32 flag)
 
virtual void RemoveDynamicFlag (uint32 flag)
 
virtual void ReplaceAllDynamicFlags (uint32 flag)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
void BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const
 
virtual void DestroyForPlayer (Player *target, bool onDeath=false) const
 
int32 GetInt32Value (uint16 index) const
 
uint32 GetUInt32Value (uint16 index) const
 
uint64 GetUInt64Value (uint16 index) const
 
float GetFloatValue (uint16 index) const
 
uint8 GetByteValue (uint16 index, uint8 offset) const
 
uint16 GetUInt16Value (uint16 index, uint8 offset) const
 
ObjectGuid GetGuidValue (uint16 index) const
 
void SetInt32Value (uint16 index, int32 value)
 
void SetUInt32Value (uint16 index, uint32 value)
 
void UpdateUInt32Value (uint16 index, uint32 value)
 
void SetUInt64Value (uint16 index, uint64 value)
 
void SetFloatValue (uint16 index, float value)
 
void SetByteValue (uint16 index, uint8 offset, uint8 value)
 
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
 
void SetInt16Value (uint16 index, uint8 offset, int16 value)
 
void SetGuidValue (uint16 index, ObjectGuid value)
 
void SetStatFloatValue (uint16 index, float value)
 
void SetStatInt32Value (uint16 index, int32 value)
 
bool AddGuidValue (uint16 index, ObjectGuid value)
 
bool RemoveGuidValue (uint16 index, ObjectGuid value)
 
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
 
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
 
void SetFlag (uint16 index, uint32 newFlag)
 
void RemoveFlag (uint16 index, uint32 oldFlag)
 
void ToggleFlag (uint16 index, uint32 flag)
 
bool HasFlag (uint16 index, uint32 flag) const
 
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
 
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
 
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
 
void ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply)
 
void SetFlag64 (uint16 index, uint64 newFlag)
 
void RemoveFlag64 (uint16 index, uint64 oldFlag)
 
void ToggleFlag64 (uint16 index, uint64 flag)
 
bool HasFlag64 (uint16 index, uint64 flag) const
 
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
 
void ClearUpdateMask (bool remove)
 
uint16 GetValuesCount () const
 
void SetIsNewObject (bool enable)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
void SetFieldNotifyFlag (uint16 flag)
 
void RemoveFieldNotifyFlag (uint16 flag)
 
void ForceValuesUpdateAtIndex (uint32)
 
bool IsWorldObject () const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
ItemToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 

Static Public Member Functions

static ItemCreateItem (uint32 itemEntry, uint32 count, Player const *player=nullptr)
 
static void DeleteFromDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid)
 
static void DeleteFromInventoryDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid)
 
- Static Public Member Functions inherited from Object
static ObjectGuid GetGUID (Object const *o)
 
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (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)
 

Public Attributes

Loot loot
 
bool m_lootGenerated
 

Private Attributes

std::string m_text
 
uint8 m_slot
 
Bagm_container
 
ItemUpdateState uState
 
int16 uQueuePos
 
bool mb_in_trade
 
time_t m_lastPlayedTimeUpdate
 
ObjectGuid m_refundRecipient
 
uint32 m_paidMoney
 
uint32 m_paidExtendedCost
 
GuidSet allowedGUIDs
 

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from Object
 Object ()
 
void _InitValues ()
 
void _Create (ObjectGuid const &guid)
 
std::string _ConcatFields (uint16 startIndex, uint16 size) const
 
bool _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
 
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
 
virtual void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 
- Protected Attributes inherited from Object
uint16 m_objectType
 
TypeID m_objectTypeId
 
uint16 m_updateFlag
 
union { 
 
   int32 *   m_int32Values 
 
   uint32 *   m_uint32Values 
 
   float *   m_floatValues 
 
};  
 
UpdateMask _changesMask
 
uint16 m_valuesCount
 
uint16 _fieldNotifyFlags
 
bool m_objectUpdated
 

Detailed Description

Definition at line 61 of file Item.h.

Constructor & Destructor Documentation

◆ Item()

Item::Item ( )

Definition at line 247 of file Item.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ AddToObjectUpdate()

bool Item::AddToObjectUpdate ( )
overridevirtual

Implements Object.

Definition at line 1115 of file Item.cpp.

+ Here is the call graph for this function:

◆ BuildUpdate()

void Item::BuildUpdate ( UpdateDataMapType data_map)
overridevirtual

Reimplemented from Object.

Definition at line 1108 of file Item.cpp.

+ Here is the call graph for this function:

◆ CalculateDurabilityRepairCost()

uint32 Item::CalculateDurabilityRepairCost ( float  discount) const

Definition at line 746 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 830 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 721 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 1238 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 924 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 1225 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 1071 of file Item.cpp.

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

◆ Create()

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

Reimplemented in Bag.

Definition at line 267 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,
Player const *  player = nullptr 
)
static

Definition at line 1044 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 Bag.

Definition at line 513 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 506 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 530 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 523 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 1150 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 172 of file Item.h.

+ Here is the caller graph for this function:

◆ GemsFitSockets()

bool Item::GemsFitSockets ( ) const

Definition at line 934 of file Item.cpp.

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

◆ GetBagSlot()

uint8 Item::GetBagSlot ( ) const

Definition at line 711 of file Item.cpp.

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

◆ GetContainer()

Bag * Item::GetContainer ( )
inline

Definition at line 127 of file Item.h.

+ Here is the caller graph for this function:

◆ GetCount()

uint32 Item::GetCount ( ) const
inline

Definition at line 119 of file Item.h.

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

◆ GetDebugInfo()

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

Reimplemented from Object.

Definition at line 1266 of file Item.cpp.

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

◆ GetEnchantmentCharges()

uint32 Item::GetEnchantmentCharges ( EnchantmentSlot  slot) const
inline

Definition at line 150 of file Item.h.

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

◆ GetEnchantmentDuration()

uint32 Item::GetEnchantmentDuration ( EnchantmentSlot  slot) const
inline

Definition at line 149 of file Item.h.

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

◆ GetEnchantmentId()

uint32 Item::GetEnchantmentId ( EnchantmentSlot  slot) const
inline

Definition at line 148 of file Item.h.

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

◆ GetEnchantRequiredLevel()

uint32 Item::GetEnchantRequiredLevel ( ) const

Definition at line 805 of file Item.cpp.

+ Here is the call graph for this function:

◆ GetGemCountWithID()

uint8 Item::GetGemCountWithID ( uint32  GemID) const

Definition at line 971 of file Item.cpp.

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

◆ GetGemCountWithLimitCategory()

uint8 Item::GetGemCountWithLimitCategory ( uint32  limitCategory) const

Definition at line 990 of file Item.cpp.

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

◆ GetItemRandomPropertyId()

int32 Item::GetItemRandomPropertyId ( ) const
inline

Definition at line 140 of file Item.h.

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

◆ GetItemSuffixFactor()

uint32 Item::GetItemSuffixFactor ( ) const
inline

Definition at line 141 of file Item.h.

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

◆ GetMaxStackCount()

uint32 Item::GetMaxStackCount ( ) const
inline

Definition at line 121 of file Item.h.

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

◆ GetOwner()

Player * Item::GetOwner ( ) const

Definition at line 540 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 76 of file Item.h.

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

◆ GetPaidExtendedCost()

uint32 Item::GetPaidExtendedCost ( ) const
inline

Definition at line 192 of file Item.h.

+ Here is the caller graph for this function:

◆ GetPaidMoney()

uint32 Item::GetPaidMoney ( ) const
inline

Definition at line 191 of file Item.h.

+ Here is the caller graph for this function:

◆ GetPlayedTime()

uint32 Item::GetPlayedTime ( )

Definition at line 1207 of file Item.cpp.

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

◆ GetPos()

uint16 Item::GetPos ( ) const
inline

Definition at line 130 of file Item.h.

+ Here is the caller graph for this function:

◆ GetQueuePos()

uint16 Item::GetQueuePos ( ) const
inline

Definition at line 171 of file Item.h.

+ Here is the caller graph for this function:

◆ GetRefundRecipient()

ObjectGuid const & Item::GetRefundRecipient ( ) const
inline

Definition at line 190 of file Item.h.

+ Here is the caller graph for this function:

◆ GetScriptId()

uint32 Item::GetScriptId ( ) const
inline

Definition at line 208 of file Item.h.

+ Here is the caller graph for this function:

◆ GetSkill()

uint32 Item::GetSkill ( )

Definition at line 546 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 126 of file Item.h.

+ Here is the caller graph for this function:

◆ GetSpell()

uint32 Item::GetSpell ( )

Definition at line 552 of file Item.cpp.

+ Here is the call graph for this function:

◆ GetSpellCharges()

int32 Item::GetSpellCharges ( uint8  index = 0) const
inline

Definition at line 161 of file Item.h.

+ 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 168 of file Item.h.

+ Here is the caller graph for this function:

◆ GetTemplate()

ItemTemplate const * Item::GetTemplate ( ) const

Definition at line 535 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 152 of file Item.h.

◆ HasEnchantRequiredSkill()

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

Definition at line 793 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 178 of file Item.h.

◆ hasQuest()

bool Item::hasQuest ( uint32  quest_id) const
inlineoverridevirtual

Reimplemented from Object.

Definition at line 177 of file Item.h.

◆ IsArmorVellum()

bool Item::IsArmorVellum ( ) const
inline

Definition at line 181 of file Item.h.

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

◆ IsBag()

bool Item::IsBag ( ) const
inline

Definition at line 102 of file Item.h.

+ Here is the caller graph for this function:

◆ IsBindedNotWith()

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

Definition at line 1087 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 99 of file Item.h.

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

◆ IsBoundAccountWide()

bool Item::IsBoundAccountWide ( ) const
inline

Definition at line 82 of file Item.h.

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

◆ IsBoundByEnchant()

bool Item::IsBoundByEnchant ( ) const

Definition at line 819 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 105 of file Item.h.

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

◆ IsConjuredConsumable()

bool Item::IsConjuredConsumable ( ) const
inline

Definition at line 182 of file Item.h.

+ Here is the call graph for this function:

◆ IsCurrencyToken()

bool Item::IsCurrencyToken ( ) const
inline

Definition at line 103 of file Item.h.

+ Here is the call graph for this function:

◆ IsEquipped()

bool Item::IsEquipped ( ) const

Definition at line 716 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 847 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 133 of file Item.h.

+ Here is the caller graph for this function:

◆ IsInTrade()

bool Item::IsInTrade ( ) const
inline

Definition at line 108 of file Item.h.

+ Here is the caller graph for this function:

◆ IsInUpdateQueue()

bool Item::IsInUpdateQueue ( ) const
inline

Definition at line 170 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 1013 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 101 of file Item.h.

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

◆ IsNotEmptyBag()

bool Item::IsNotEmptyBag ( ) const

Definition at line 298 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 179 of file Item.h.

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

◆ IsRefundable()

bool Item::IsRefundable ( ) const
inline

Definition at line 98 of file Item.h.

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

◆ IsRefundExpired()

bool Item::IsRefundExpired ( )

Definition at line 1214 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 81 of file Item.h.

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

◆ IsWeaponVellum()

bool Item::IsWeaponVellum ( ) const
inline

Definition at line 180 of file Item.h.

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

◆ IsWrapped()

bool Item::IsWrapped ( ) const
inline

Definition at line 100 of file Item.h.

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

◆ LoadFromDB()

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

Reimplemented in Bag.

Definition at line 409 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 Object.

Definition at line 1126 of file Item.cpp.

+ Here is the call graph for this function:

◆ SaveRefundDataToDB()

void Item::SaveRefundDataToDB ( )

Definition at line 1132 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 Bag.

Definition at line 323 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 1032 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 1019 of file Item.cpp.

+ 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 80 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 131 of file Item.h.

+ Here is the caller graph for this function:

◆ SetCount()

void Item::SetCount ( uint32  value)

Definition at line 1250 of file Item.cpp.

+ 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 883 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 915 of file Item.cpp.

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

◆ SetEnchantmentDuration()

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

Definition at line 905 of file Item.cpp.

+ 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 107 of file Item.h.

+ Here is the caller graph for this function:

◆ SetItemRandomProperties()

void Item::SetItemRandomProperties ( int32  randomPropId)

Definition at line 592 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 
)

Definition at line 1161 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 77 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 188 of file Item.h.

+ Here is the caller graph for this function:

◆ SetPaidMoney()

void Item::SetPaidMoney ( uint32  money)
inline

Definition at line 187 of file Item.h.

+ Here is the caller graph for this function:

◆ SetRefundRecipient()

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

Definition at line 186 of file Item.h.

+ Here is the caller graph for this function:

◆ SetSlot()

void Item::SetSlot ( uint8  slot)
inline

Definition at line 129 of file Item.h.

+ Here is the caller graph for this function:

◆ SetSoulboundTradeable()

void Item::SetSoulboundTradeable ( GuidSet const &  allowedLooters)

Definition at line 1219 of file Item.cpp.

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

◆ SetSpellCharges()

void Item::SetSpellCharges ( uint8  index,
int32  value 
)
inline

Definition at line 162 of file Item.h.

+ 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 638 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 153 of file Item.h.

+ Here is the caller graph for this function:

◆ ToBag() [1/2]

Bag * Item::ToBag ( )
inline

Definition at line 95 of file Item.h.

+ Here is the caller graph for this function:

◆ ToBag() [2/2]

Bag const * Item::ToBag ( ) const
inline

Definition at line 96 of file Item.h.

◆ UpdateDuration()

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

Definition at line 305 of file Item.cpp.

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

◆ UpdateItemSuffixFactor()

void Item::UpdateItemSuffixFactor ( )

Definition at line 630 of file Item.cpp.

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

◆ UpdatePlayedTime()

void Item::UpdatePlayedTime ( Player owner)

Definition at line 1179 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 669 of file Item.cpp.

◆ RemoveItemFromUpdateQueueOf

void RemoveItemFromUpdateQueueOf ( Item item,
Player player 
)
friend

Definition at line 690 of file Item.cpp.

Member Data Documentation

◆ allowedGUIDs

GuidSet Item::allowedGUIDs
private

Definition at line 222 of file Item.h.

◆ loot

Loot Item::loot

Definition at line 164 of file Item.h.

◆ m_container

Bag* Item::m_container
private

Definition at line 214 of file Item.h.

◆ m_lastPlayedTimeUpdate

time_t Item::m_lastPlayedTimeUpdate
private

Definition at line 218 of file Item.h.

◆ m_lootGenerated

bool Item::m_lootGenerated

Definition at line 165 of file Item.h.

◆ m_paidExtendedCost

uint32 Item::m_paidExtendedCost
private

Definition at line 221 of file Item.h.

◆ m_paidMoney

uint32 Item::m_paidMoney
private

Definition at line 220 of file Item.h.

◆ m_refundRecipient

ObjectGuid Item::m_refundRecipient
private

Definition at line 219 of file Item.h.

◆ m_slot

uint8 Item::m_slot
private

Definition at line 213 of file Item.h.

◆ m_text

std::string Item::m_text
private

Definition at line 212 of file Item.h.

◆ mb_in_trade

bool Item::mb_in_trade
private

Definition at line 217 of file Item.h.

◆ uQueuePos

int16 Item::uQueuePos
private

Definition at line 216 of file Item.h.

◆ uState

ItemUpdateState Item::uState
private

Definition at line 215 of file Item.h.


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