Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Item Class Reference

#include <Item.h>

Inheritance diagram for Item:
Collaboration diagram for Item:

Public Member Functions

void AddToUpdateQueueOf (Player *player)
void BuildUpdate (UpdateDataMapType &)
InventoryResult CanBeMergedPartlyWith (ItemTemplate const *proto) const
bool CanBeTraded (bool mail=false, bool trade=false) const
bool CanBeTransmogrified () const
bool CanTransmogrify () const
bool CheckSoulboundTradeExpire ()
void ClearEnchantment (EnchantmentSlot slot)
void ClearSoulboundTradeable (Player *currentOwner)
ItemCloneItem (uint32 count, Player const *player=NULL) const
virtual bool Create (uint32 guidlow, uint32 itemid, Player const *owner)
virtual void DeleteFromDB (SQLTransaction &trans)
void DeleteFromInventoryDB (SQLTransaction &trans)
void DeleteRefundDataFromDB (SQLTransaction *trans)
void FSetState (ItemUpdateState state)
bool GemsFitSockets () const
uint8 GetBagSlot () const
BagGetContainer ()
uint32 GetCount () const
uint32 GetEnchantmentCharges (EnchantmentSlot slot) const
uint32 GetEnchantmentDuration (EnchantmentSlot slot) const
uint32 GetEnchantmentId (EnchantmentSlot slot) const
uint8 GetGemCountWithID (uint32 GemID) const
uint8 GetGemCountWithLimitCategory (uint32 limitCategory) const
int32 GetItemRandomPropertyId () const
uint32 GetItemSuffixFactor () const
uint32 GetMaxStackCount () const
PlayerGetOwner () const
uint64 GetOwnerGUID () const
uint32 GetPaidExtendedCost () const
uint32 GetPaidMoney () const
uint32 GetPlayedTime ()
uint16 GetPos () const
uint16 GetQueuePos () const
int32 GetReforgableStat (ItemModType statType) const
uint32 GetRefundRecipient () const
uint32 GetScriptId () const
uint32 GetSkill ()
uint8 GetSlot () const
uint32 GetSpecialPrice (uint32 minimumPrice=10000) const
int32 GetSpellCharges (uint8 index=0) const
ItemUpdateState GetState () const
ItemTemplate const * GetTemplate () const
std::string const & GetText () const
uint32 GetVisibleEntry () const
bool HasEnchantRequiredSkill (const Player *player) const
bool hasInvolvedQuest (uint32) const
bool hasQuest (uint32 quest_id) const
bool HasStats () const
bool IsBag () const
bool IsBindedNotWith (Player const *player) const
bool IsBoundAccountWide () const
bool IsBoundByEnchant () const
bool IsBroken () const
bool IsConjuredConsumable () const
bool IsCurrencyToken () const
bool IsEquipped () const
bool IsFitToSpellRequirements (SpellInfo const *spellInfo) const
bool IsInBag () const
bool IsInTrade () const
bool IsInUpdateQueue () const
bool IsLimitedToAnotherMapOrZone (uint32 cur_mapId, uint32 cur_zoneId) const
bool IsLocked () const
bool IsNotEmptyBag () const
bool IsPotion () const
bool IsRangedWeapon () const
bool IsRefundExpired ()
bool IsSoulBound () const
bool IsVellum () const
 Item ()
void ItemContainerDeleteLootItemFromDB (uint32 itemID)
void ItemContainerDeleteLootItemsFromDB ()
void ItemContainerDeleteLootMoneyAndLootItemsFromDB ()
void ItemContainerDeleteLootMoneyFromDB ()
bool ItemContainerLoadLootFromDB ()
void ItemContainerSaveLootToDB ()
virtual bool LoadFromDB (uint32 guid, uint64 owner_guid, Field *fields, uint32 entry)
void RemoveFromUpdateQueueOf (Player *player)
void SaveRefundDataToDB ()
virtual void SaveToDB (SQLTransaction &trans)
void SendTimeUpdate (Player *owner)
void SetBinding (bool val)
void SetContainer (Bag *container)
void SetCount (uint32 value)
void SetEnchantment (EnchantmentSlot slot, uint32 id, uint32 duration, uint32 charges, uint64 caster=0)
void SetEnchantmentCharges (EnchantmentSlot slot, uint32 charges)
void SetEnchantmentDuration (EnchantmentSlot slot, uint32 duration, Player *owner)
void SetInTrade (bool b=true)
void SetItemRandomProperties (int32 randomPropId)
void SetNotRefundable (Player *owner, bool changestate=true, SQLTransaction *trans=NULL)
void SetOwnerGUID (uint64 guid)
void SetPaidExtendedCost (uint32 iece)
void SetPaidMoney (uint32 money)
void SetRefundRecipient (uint32 pGuidLow)
void SetSlot (uint8 slot)
void SetSoulboundTradeable (AllowedLooterSet const &allowedLooters)
void SetSpellCharges (uint8 index, int32 value)
void SetState (ItemUpdateState state, Player *forplayer=NULL)
void SetText (std::string const &text)
BagToBag ()
const BagToBag () const
void UpdateDuration (Player *owner, uint32 diff)
void UpdateItemSuffixFactor ()
void UpdatePlayedTime (Player *owner)
Public Member Functions inherited from Object
virtual void AddToWorld ()
bool AddUInt64Value (uint16 index, uint64 value)
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
void ApplyModFlag64 (uint16 index, uint64 flag, 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 ApplyModUInt32Value (uint16 index, int32 val, bool apply)
void ApplyPercentModFloatValue (uint16 index, float val, bool apply)
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const
void ClearUpdateMask (bool remove)
virtual void DestroyForPlayer (Player *target, bool onDeath=false) const
void ForceValuesUpdateAtIndex (uint32)
uint8 GetByteValue (uint16 index, uint8 offset) const
uint32 GetDynamicUInt32Value (uint32 tab, uint16 index) const
uint32 GetEntry () const
float GetFloatValue (uint16 index) const
uint64 GetGUID () const
uint32 GetGUIDHigh () const
uint32 GetGUIDLow () const
uint32 GetGUIDMid () const
int32 GetInt32Value (uint16 index) const
ObjectGuid GetObjectGUID () const
float GetObjectScale () const
const ByteBufferGetPackGUID () const
TypeID GetTypeId () const
uint16 GetUInt16Value (uint16 index, uint8 offset) const
uint32 GetUInt32Value (uint16 index) const
uint64 GetUInt64Value (uint16 index) const
uint16 GetValuesCount () const
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
bool HasFlag (uint16 index, uint32 flag) const
bool HasFlag64 (uint16 index, uint64 flag) const
bool IsInWorld () const
bool isType (uint16 mask) const
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void RemoveFieldNotifyFlag (uint16 flag)
void RemoveFlag (uint16 index, uint32 oldFlag)
void RemoveFlag64 (uint16 index, uint64 oldFlag)
virtual void RemoveFromWorld ()
bool RemoveUInt64Value (uint16 index, uint64 value)
void SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const
void SendUpdateToPlayer (Player *player)
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void SetByteValue (uint16 index, uint8 offset, uint8 value)
void SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value)
void SetEntry (uint32 entry)
void SetFieldNotifyFlag (uint16 flag)
void SetFlag (uint16 index, uint32 newFlag)
void SetFlag64 (uint16 index, uint64 newFlag)
void SetFloatValue (uint16 index, float value)
void SetInt16Value (uint16 index, uint8 offset, int16 value)
void SetInt32Value (uint16 index, int32 value)
virtual void SetObjectScale (float scale)
void SetStatFloatValue (uint16 index, float value)
void SetStatInt32Value (uint16 index, int32 value)
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
void SetUInt32Value (uint16 index, uint32 value)
void SetUInt64Value (uint16 index, uint64 value)
AreaTriggerToAreaTrigger ()
AreaTrigger const * ToAreaTrigger () const
CorpseToCorpse ()
Corpse const * ToCorpse () const
CreatureToCreature ()
Creature const * ToCreature () const
DynamicObjectToDynObject ()
DynamicObject const * ToDynObject () const
GameObjectToGameObject ()
GameObject const * ToGameObject () const
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
void ToggleFlag (uint16 index, uint32 flag)
void ToggleFlag64 (uint16 index, uint64 flag)
PlayerToPlayer ()
Player const * ToPlayer () const
UnitToUnit ()
Unit const * ToUnit () const
void UpdateUInt32Value (uint16 index, uint32 value)
virtual ~Object ()

Static Public Member Functions

static bool CanTransmogrifyItemWithItem (Item const *transmogrified, Item const *transmogrifier)
static ItemCreateItem (uint32 itemEntry, uint32 count, Player const *player=NULL)
static void DeleteFromDB (SQLTransaction &trans, uint32 itemGuid)
static void DeleteFromInventoryDB (SQLTransaction &trans, uint32 itemGuid)
static int32 GenerateItemRandomPropertyId (uint32 item_id)
static uint32 GetSellPrice (ItemTemplate const *proto, bool &success)
static uint32 GetSpecialPrice (ItemTemplate const *proto, uint32 minimumPrice=10000)

Public Attributes

Loot loot
bool m_lootGenerated

Private Attributes

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

Additional Inherited Members

Protected Member Functions inherited from Object
std::string _ConcatFields (uint16 startIndex, uint16 size) const
void _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh)
void _InitValues ()
void _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
void BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
virtual void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 Object ()
Protected Attributes inherited from Object
union { 
   float *   m_floatValues 
   int32 *   m_int32Values 
   uint32 *   m_uint32Values 
}; 
UpdateMask _changesMask
std::vector< bool * > m_dynamicChange
std::vector< uint32 * > m_dynamicTab
uint16 m_fieldNotifyFlags
uint16 m_objectType
TypeID m_objectTypeId
bool m_objectUpdated
uint16 m_updateFlag
uint16 m_valuesCount

Detailed Description

Definition at line 201 of file Item.h.

Constructor & Destructor Documentation

◆ Item()

Member Function Documentation

◆ AddToUpdateQueueOf()

◆ BuildUpdate()

void Item::BuildUpdate ( UpdateDataMapType & data_map)
virtual

Reimplemented from Object.

Definition at line 1076 of file Item.cpp.

References Object::BuildFieldsUpdate(), Object::ClearUpdateMask(), and GetOwner().

◆ CanBeMergedPartlyWith()

◆ CanBeTraded()

◆ CanBeTransmogrified()

◆ CanTransmogrify()

◆ CanTransmogrifyItemWithItem()

◆ CheckSoulboundTradeExpire()

bool Item::CheckSoulboundTradeExpire ( )

◆ ClearEnchantment()

◆ ClearSoulboundTradeable()

◆ CloneItem()

◆ Create()

◆ CreateItem()

◆ DeleteFromDB() [1/2]

void Item::DeleteFromDB ( SQLTransaction & trans)
virtual

Reimplemented in Bag.

Definition at line 506 of file Item.cpp.

References DeleteFromDB(), Object::GetGUIDLow(), ItemContainerDeleteLootMoneyAndLootItemsFromDB(), and loot.

◆ DeleteFromDB() [2/2]

◆ DeleteFromInventoryDB() [1/2]

void Item::DeleteFromInventoryDB ( SQLTransaction & trans)

Definition at line 523 of file Item.cpp.

References DeleteFromInventoryDB(), and Object::GetGUIDLow().

◆ DeleteFromInventoryDB() [2/2]

◆ DeleteRefundDataFromDB()

◆ FSetState()

void Item::FSetState ( ItemUpdateState state)
inline

◆ GemsFitSockets()

◆ GenerateItemRandomPropertyId()

◆ GetBagSlot()

◆ GetContainer()

Bag * Item::GetContainer ( )
inline

Definition at line 266 of file Item.h.

References m_container.

Referenced by Player::_SaveInventory(), and debug_commandscript::HandleDebugGetItemStateCommand().

◆ GetCount()

◆ GetEnchantmentCharges()

◆ GetEnchantmentDuration()

◆ GetEnchantmentId()

◆ GetGemCountWithID()

◆ GetGemCountWithLimitCategory()

◆ GetItemRandomPropertyId()

◆ GetItemSuffixFactor()

◆ GetMaxStackCount()

◆ GetOwner()

◆ GetOwnerGUID()

◆ GetPaidExtendedCost()

uint32 Item::GetPaidExtendedCost ( ) const
inline

Definition at line 332 of file Item.h.

References m_paidExtendedCost.

Referenced by Player::RefundItem(), SaveRefundDataToDB(), and Player::SendRefundInfo().

◆ GetPaidMoney()

uint32 Item::GetPaidMoney ( ) const
inline

◆ GetPlayedTime()

◆ GetPos()

◆ GetQueuePos()

uint16 Item::GetQueuePos ( ) const
inline

Definition at line 310 of file Item.h.

References uQueuePos.

Referenced by debug_commandscript::HandleDebugGetItemStateCommand().

◆ GetReforgableStat()

◆ GetRefundRecipient()

uint32 Item::GetRefundRecipient ( ) const
inline

Definition at line 330 of file Item.h.

References m_refundRecipient.

Referenced by Player::RefundItem(), SaveRefundDataToDB(), and Player::SendRefundInfo().

◆ GetScriptId()

uint32 Item::GetScriptId ( ) const
inline

◆ GetSellPrice()

◆ GetSkill()

◆ GetSlot()

◆ GetSpecialPrice() [1/2]

◆ GetSpecialPrice() [2/2]

uint32 Item::GetSpecialPrice ( uint32 minimumPrice = 10000) const
inline

Definition at line 351 of file Item.h.

References GetSpecialPrice(), and GetTemplate().

◆ GetSpellCharges()

◆ GetState()

ItemUpdateState Item::GetState ( ) const
inline

◆ GetTemplate()

ItemTemplate const * Item::GetTemplate ( ) const

Definition at line 528 of file Item.cpp.

References Object::GetEntry(), and sObjectMgr.

Referenced by Player::_ApplyItemMods(), Player::_LoadItem(), Player::_StoreItem(), AddItemsSetItem(), Player::AddItemToBuyBackSlot(), Player::ApplyEnchantment(), Player::ApplyEquipCooldown(), Player::ApplyItemEquipSpell(), Player::AutoUnequipOffhandIfNeed(), AuctionHouseObject::BuildListAuctionItems(), Player::CanBankItem(), CanBeTransmogrified(), Player::CanEquipItem(), Player::CanEquipUniqueItem(), Player::CanStoreItem_InBag(), Player::CanStoreItem_InSpecificSlot(), Player::CanStoreItems(), CanTransmogrify(), CanTransmogrifyItemWithItem(), Player::CanUnequipItem(), Player::CanUseItem(), Player::CastItemUseSpell(), Spell::CheckCast(), Spell::CheckItems(), Player::CorrectMetaGemEnchants(), Player::DestroyItem(), Spell::DoCreateItem(), WorldSession::DoLootRelease(), Player::DurabilityRepair(), Spell::EffectFeedPet(), Player::EnchantmentFitsRequirements(), Player::EquipItem(), EquippedOk(), GemsFitSockets(), LuaItem::GetAllowableClass(), LuaItem::GetAllowableRace(), Unit::GetAPMultiplier(), AuctionHouseMgr::GetAuctionDeposit(), LuaItem::GetBuyCount(), LuaItem::GetBuyPrice(), LuaItem::GetClass(), LuaItem::GetDisplayId(), LuaItem::GetInventoryType(), Bag::GetItemCount(), Player::GetItemCount(), LuaItem::GetItemLevel(), LuaItem::GetItemLink(), LuaItem::GetItemSet(), GetMaxStackCount(), LuaItem::GetName(), LuaItem::GetQuality(), LuaItem::GetRandomProperty(), LuaItem::GetRandomSuffix(), GetReforgableStat(), LuaItem::GetRequiredLevel(), GetScriptId(), LuaItem::GetSellPrice(), Player::GetShield(), GetSkill(), GetSpecialPrice(), LuaItem::GetSpellId(), LuaItem::GetSpellTrigger(), LuaItem::GetSubClass(), Player::GetWeaponForAttack(), WorldSession::HandleAuctionSellItem(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleReadItem(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleWrapItemOpcode(), Player::HasItemOrGemWithIdEquipped(), Player::HasItemOrGemWithLimitCategoryEquipped(), hasQuest(), HasStats(), IsBag(), IsBoundAccountWide(), IsConjuredConsumable(), IsCurrencyToken(), IsFitToSpellRequirements(), IsLimitedToAnotherMapOrZone(), IsPotion(), Aura::IsProcTriggeredOnEvent(), IsRangedWeapon(), Unit::IsTriggeredAtSpellProcEvent(), Player::IsTwoHandUsed(), IsVellum(), Bag::LoadFromDB(), LoadFromDB(), Guild::BankMoveItemData::LogAction(), WorldSession::moveItems(), spell_monk_grapple_weapon::spell_monk_grapple_weapon_SpellScript::PrepareSpellScript(), Player::RemoveItem(), AuctionHouseMgr::SendAuctionWonMail(), Player::SendEquipError(), Player::SendLoot(), WorldSession::SendUpdateTrade(), Player::SetRegularAttackTime(), Player::StoreNewItem(), Player::SwapItem(), Player::ToggleMetaGemsActive(), UpdateDuration(), Player::UpdateItemDuration(), and Player::VisualizeItem().

◆ GetText()

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

Definition at line 291 of file Item.h.

References m_text.

◆ GetVisibleEntry()

uint32 Item::GetVisibleEntry ( ) const
inline

◆ HasEnchantRequiredSkill()

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

◆ hasInvolvedQuest()

bool Item::hasInvolvedQuest ( uint32 ) const
inlinevirtual

Reimplemented from Object.

Definition at line 317 of file Item.h.

◆ hasQuest()

bool Item::hasQuest ( uint32 quest_id) const
inlinevirtual

Reimplemented from Object.

Definition at line 316 of file Item.h.

References GetTemplate(), and ItemTemplate::StartQuest.

Referenced by LuaItem::HasQuest().

◆ HasStats()

◆ IsBag()

◆ IsBindedNotWith()

◆ IsBoundAccountWide()

bool Item::IsBoundAccountWide ( ) const
inline

◆ IsBoundByEnchant()

◆ IsBroken()

◆ IsConjuredConsumable()

bool Item::IsConjuredConsumable ( ) const
inline

Definition at line 321 of file Item.h.

References GetTemplate(), and ItemTemplate::IsConjuredConsumable().

Referenced by LuaItem::IsConjuredConsumable().

◆ IsCurrencyToken()

bool Item::IsCurrencyToken ( ) const
inline

Definition at line 245 of file Item.h.

References GetTemplate(), and ItemTemplate::IsCurrencyToken().

Referenced by Player::CanBankItem(), and LuaItem::IsCurrencyToken().

◆ IsEquipped()

◆ IsFitToSpellRequirements()

◆ IsInBag()

bool Item::IsInBag ( ) const
inline

Definition at line 272 of file Item.h.

References m_container.

Referenced by IsEquipped(), and LuaItem::IsInBag().

◆ IsInTrade()

bool Item::IsInTrade ( ) const
inline

Definition at line 250 of file Item.h.

References mb_in_trade.

Referenced by Player::CanStoreItems(), Player::HasItemCount(), and LuaItem::IsInTrade().

◆ IsInUpdateQueue()

bool Item::IsInUpdateQueue ( ) const
inline

◆ IsLimitedToAnotherMapOrZone()

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

Definition at line 986 of file Item.cpp.

References ItemTemplate::Area, GetTemplate(), and ItemTemplate::Map.

Referenced by Player::_LoadItem().

◆ IsLocked()

bool Item::IsLocked ( ) const
inline

◆ IsNotEmptyBag()

◆ IsPotion()

bool Item::IsPotion ( ) const
inline

Definition at line 319 of file Item.h.

References GetTemplate(), and ItemTemplate::IsPotion().

Referenced by LuaItem::IsPotion().

◆ IsRangedWeapon()

bool Item::IsRangedWeapon ( ) const
inline

Definition at line 322 of file Item.h.

References GetTemplate(), and ItemTemplate::IsRangedWeapon().

◆ IsRefundExpired()

bool Item::IsRefundExpired ( )

Definition at line 1164 of file Item.cpp.

References GetPlayedTime(), and HOUR.

Referenced by Player::RefundItem().

◆ IsSoulBound()

◆ IsVellum()

bool Item::IsVellum ( ) const
inline

Definition at line 320 of file Item.h.

References GetTemplate(), and ItemTemplate::IsVellum().

◆ ItemContainerDeleteLootItemFromDB()

void Item::ItemContainerDeleteLootItemFromDB ( uint32 itemID)

◆ ItemContainerDeleteLootItemsFromDB()

void Item::ItemContainerDeleteLootItemsFromDB ( )

◆ ItemContainerDeleteLootMoneyAndLootItemsFromDB()

void Item::ItemContainerDeleteLootMoneyAndLootItemsFromDB ( )

◆ ItemContainerDeleteLootMoneyFromDB()

void Item::ItemContainerDeleteLootMoneyFromDB ( )

◆ ItemContainerLoadLootFromDB()

◆ ItemContainerSaveLootToDB()

◆ LoadFromDB()

◆ RemoveFromUpdateQueueOf()

◆ SaveRefundDataToDB()

◆ SaveToDB()

void Item::SaveToDB ( SQLTransaction & trans)
virtual

Reimplemented in Bag.

Definition at line 305 of file Item.cpp.

References CHAR_DEL_GIFT, CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_ITEM_INSTANCE_TRANSMOG, CHAR_INS_ITEM_INSTANCE_TRANSMOG, CHAR_REP_ITEM_INSTANCE, CHAR_UPD_GIFT_OWNER, CHAR_UPD_ITEM_INSTANCE, CharacterDatabase, GetCount(), Object::GetDynamicUInt32Value(), GetEnchantmentCharges(), GetEnchantmentDuration(), GetEnchantmentId(), Object::GetEntry(), Object::GetGUIDLow(), GetItemRandomPropertyId(), GetOwnerGUID(), GetSpellCharges(), Object::GetUInt32Value(), Object::GetUInt64Value(), GUID_LOPART(), Object::HasFlag(), ITEM_CHANGED, ITEM_DYNAMIC_MODIFIERS, ITEM_FIELD_CREATE_PLAYED_TIME, ITEM_FIELD_CREATOR, ITEM_FIELD_DURABILITY, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FIELD_EXPIRATION, ITEM_FIELD_GIFT_CREATOR, ITEM_FLAG_WRAPPED, ITEM_NEW, ITEM_REMOVED, ITEM_UNCHANGED, ItemContainerDeleteLootMoneyAndLootItemsFromDB(), loot, m_text, MAX_ENCHANTMENT_SLOT, MAX_ITEM_PROTO_SPELLS, Skyfire::AutoPtr< Pointer, Lock >::null(), PreparedStatement::setInt16(), SetState(), PreparedStatement::setString(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), and uState.

Referenced by Player::_LoadItem(), Player::_LoadMailedItems(), Player::_SaveInventory(), Player::AutoUnequipOffhandIfNeed(), AchievementMgr< Guild >::CompletedAchievement(), Player::DeleteFromDB(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleSendMail(), WorldSession::HandleWrapItemOpcode(), Bag::SaveToDB(), LuaItem::SaveToDB(), BlackMarketMgr::SendAuctionWon(), MailDraft::SendReturnToSender(), and Guild::BankTab::SetItem().

◆ SendTimeUpdate()

◆ SetBinding()

◆ SetContainer()

void Item::SetContainer ( Bag * container)
inline

Definition at line 270 of file Item.h.

References m_container.

Referenced by Player::_StoreItem(), Bag::StoreItem(), and Player::VisualizeItem().

◆ SetCount()

◆ SetEnchantment()

◆ SetEnchantmentCharges()

◆ SetEnchantmentDuration()

◆ SetInTrade()

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

Definition at line 249 of file Item.h.

References mb_in_trade.

Referenced by clearAcceptTradeMode(), and setAcceptTradeMode().

◆ SetItemRandomProperties()

◆ SetNotRefundable()

◆ SetOwnerGUID()

◆ SetPaidExtendedCost()

void Item::SetPaidExtendedCost ( uint32 iece)
inline

Definition at line 328 of file Item.h.

References m_paidExtendedCost.

Referenced by Player::_LoadItem(), Player::_StoreOrEquipNewItem(), and SetNotRefundable().

◆ SetPaidMoney()

void Item::SetPaidMoney ( uint32 money)
inline

Definition at line 327 of file Item.h.

References m_paidMoney.

Referenced by Player::_LoadItem(), Player::_StoreOrEquipNewItem(), and SetNotRefundable().

◆ SetRefundRecipient()

void Item::SetRefundRecipient ( uint32 pGuidLow)
inline

Definition at line 326 of file Item.h.

References m_refundRecipient.

Referenced by Player::_LoadItem(), Player::_StoreOrEquipNewItem(), and SetNotRefundable().

◆ SetSlot()

void Item::SetSlot ( uint8 slot)
inline

◆ SetSoulboundTradeable()

void Item::SetSoulboundTradeable ( AllowedLooterSet const & allowedLooters)

◆ SetSpellCharges()

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

Definition at line 299 of file Item.h.

References ITEM_FIELD_SPELL_CHARGES, and Object::SetInt32Value().

Referenced by Create(), and LoadFromDB().

◆ SetState()

◆ SetText()

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

Definition at line 292 of file Item.h.

References m_text.

Referenced by WorldSession::HandleMailCreateTextItem(), and LoadFromDB().

◆ ToBag() [1/2]

◆ ToBag() [2/2]

const Bag * Item::ToBag ( ) const
inline

Definition at line 241 of file Item.h.

References IsBag().

◆ UpdateDuration()

◆ UpdateItemSuffixFactor()

void Item::UpdateItemSuffixFactor ( )

◆ UpdatePlayedTime()

Member Data Documentation

◆ allowedGUIDs

AllowedLooterSet Item::allowedGUIDs
private

Definition at line 375 of file Item.h.

Referenced by ClearSoulboundTradeable(), IsBindedNotWith(), and SetSoulboundTradeable().

◆ loot

◆ m_container

Bag* Item::m_container
private

Definition at line 367 of file Item.h.

Referenced by GetBagSlot(), GetContainer(), IsInBag(), Item(), and SetContainer().

◆ m_lastPlayedTimeUpdate

time_t Item::m_lastPlayedTimeUpdate
private

Definition at line 371 of file Item.h.

Referenced by GetPlayedTime(), Item(), and UpdatePlayedTime().

◆ m_lootGenerated

◆ m_paidExtendedCost

uint32 Item::m_paidExtendedCost
private

Definition at line 374 of file Item.h.

Referenced by GetPaidExtendedCost(), Item(), and SetPaidExtendedCost().

◆ m_paidMoney

uint32 Item::m_paidMoney
private

Definition at line 373 of file Item.h.

Referenced by GetPaidMoney(), Item(), and SetPaidMoney().

◆ m_refundRecipient

uint32 Item::m_refundRecipient
private

Definition at line 372 of file Item.h.

Referenced by GetRefundRecipient(), Item(), and SetRefundRecipient().

◆ m_slot

uint8 Item::m_slot
private

Definition at line 366 of file Item.h.

Referenced by GetSlot(), IsEquipped(), Item(), and SetSlot().

◆ m_text

std::string Item::m_text
private

Definition at line 365 of file Item.h.

Referenced by GetText(), SaveToDB(), and SetText().

◆ mb_in_trade

bool Item::mb_in_trade
private

Definition at line 370 of file Item.h.

Referenced by IsInTrade(), Item(), and SetInTrade().

◆ uQueuePos

int16 Item::uQueuePos
private

◆ uState

ItemUpdateState Item::uState
private

Definition at line 368 of file Item.h.

Referenced by FSetState(), GetState(), Item(), SaveToDB(), and SetState().


The documentation for this class was generated from the following files:
  • src/server/game/Entities/Item/Item.h
  • src/server/game/Entities/Item/Item.cpp