|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Bag.h>
Protected Attributes | |
| Item * | m_bagslot [MAX_BAG_SIZE] |
| 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 |
Additional Inherited Members | |
| Static Public Member Functions inherited from Item | |
| static bool | CanTransmogrifyItemWithItem (Item const *transmogrified, Item const *transmogrifier) |
| static Item * | CreateItem (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 inherited from Item | |
| Loot | loot |
| bool | m_lootGenerated |
| 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 () | |
| Bag::Bag | ( | ) |
Definition at line 15 of file Bag.cpp.
References CONTAINER_END, Item::Item(), m_bagslot, Object::m_objectType, Object::m_objectTypeId, Object::m_valuesCount, MAX_BAG_SIZE, TYPEID_CONTAINER, and TYPEMASK_CONTAINER.
| Bag::~Bag | ( | ) |
Definition at line 25 of file Bag.cpp.
References Item::GetBagSlot(), Object::GetEntry(), Item::GetSlot(), Item::Item(), m_bagslot, MAX_BAG_SIZE, and SF_LOG_FATAL.
|
virtual |
Reimplemented from Object.
Definition at line 41 of file Bag.cpp.
References Object::AddToWorld(), GetBagSize(), and m_bagslot.
|
virtual |
Reimplemented from Object.
Definition at line 159 of file Bag.cpp.
References Object::BuildCreateUpdateBlockForPlayer(), GetBagSize(), and m_bagslot.
Reimplemented from Item.
Definition at line 59 of file Bag.cpp.
References Object::_Create(), CONTAINER_FIELD_NUM_SLOTS, CONTAINER_FIELD_SLOTS, ItemTemplate::ContainerSlots, Object::GetGUID(), HIGHGUID_CONTAINER, ITEM_FIELD_CONTAINED_IN, ITEM_FIELD_DURABILITY, ITEM_FIELD_MAX_DURABILITY, ITEM_FIELD_OWNER, ITEM_FIELD_STACK_COUNT, m_bagslot, MAX_BAG_SIZE, ItemTemplate::MaxDurability, Object::SetEntry(), Object::SetObjectScale(), Object::SetUInt32Value(), Object::SetUInt64Value(), and sObjectMgr.
|
virtual |
Reimplemented from Item.
Definition at line 114 of file Bag.cpp.
References Item::DeleteFromDB(), m_bagslot, and MAX_BAG_SIZE.
|
inline |
Definition at line 36 of file Bag.h.
References CONTAINER_FIELD_NUM_SLOTS, and Object::GetUInt32Value().
Referenced by AddToWorld(), BuildCreateUpdateBlockForPlayer(), Player::CanStoreItem_InBag(), GetFreeSlots(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), GetSlotByItemGUID(), IsEmpty(), RemoveFromWorld(), and Player::SwapItem().
| uint32 Bag::GetFreeSlots | ( | ) | const |
Definition at line 123 of file Bag.cpp.
References GetBagSize(), and m_bagslot.
Definition at line 225 of file Bag.cpp.
References GetBagSize(), Item::Item(), and m_bagslot.
Referenced by Player::SwapItem().
Definition at line 178 of file Bag.cpp.
References _Socket::Color, ItemTemplate::GemProperties, GetBagSize(), Item::GetCount(), Object::GetEntry(), Item::GetGemCountWithID(), Item::GetTemplate(), Item::Item(), m_bagslot, and ItemTemplate::Socket.
Definition at line 202 of file Bag.cpp.
References GetBagSize(), Item::Item(), and m_bagslot.
Definition at line 215 of file Bag.cpp.
References GetBagSize(), Object::GetGUID(), m_bagslot, and NULL_SLOT.
| bool Bag::IsEmpty | ( | ) | const |
Definition at line 169 of file Bag.cpp.
References GetBagSize(), and m_bagslot.
Referenced by Player::SwapItem().
Reimplemented from Item.
Definition at line 96 of file Bag.cpp.
References CONTAINER_FIELD_NUM_SLOTS, CONTAINER_FIELD_SLOTS, ItemTemplate::ContainerSlots, Item::GetTemplate(), Item::LoadFromDB(), m_bagslot, MAX_BAG_SIZE, Object::SetUInt32Value(), and Object::SetUInt64Value().
|
virtual |
Reimplemented from Object.
Definition at line 50 of file Bag.cpp.
References GetBagSize(), m_bagslot, and Object::RemoveFromWorld().
| void Bag::RemoveItem | ( | uint8 | slot, |
| bool | update ) |
Definition at line 133 of file Bag.cpp.
References ASSERT, CONTAINER_FIELD_SLOTS, m_bagslot, MAX_BAG_SIZE, and Object::SetUInt64Value().
Referenced by Player::SwapItem().
|
virtual |
Definition at line 144 of file Bag.cpp.
References ASSERT, CONTAINER_FIELD_SLOTS, Object::GetGUID(), Item::GetOwnerGUID(), Item::Item(), ITEM_FIELD_CONTAINED_IN, ITEM_FIELD_OWNER, m_bagslot, MAX_BAG_SIZE, Item::SetContainer(), Item::SetSlot(), and Object::SetUInt64Value().
Referenced by Player::_StoreItem(), and Player::SwapItem().
|
protected |
Definition at line 50 of file Bag.h.
Referenced by AddToWorld(), Bag(), BuildCreateUpdateBlockForPlayer(), Create(), DeleteFromDB(), GetFreeSlots(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), GetSlotByItemGUID(), IsEmpty(), LoadFromDB(), RemoveFromWorld(), RemoveItem(), StoreItem(), and ~Bag().