AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
BankMoveItemData (Guild *guild, Player *player, uint8 container, uint8 slotId) | |
bool | IsBank () const override |
bool | InitItem () override |
bool | HasStoreRights (MoveItemData *pOther) const override |
bool | HasWithdrawRights (MoveItemData *pOther) const override |
void | RemoveItem (CharacterDatabaseTransaction trans, MoveItemData *pOther, uint32 splitedAmount) override |
Item * | StoreItem (CharacterDatabaseTransaction trans, Item *pItem) override |
void | LogBankEvent (CharacterDatabaseTransaction trans, MoveItemData *pFrom, uint32 count) const override |
void | LogAction (MoveItemData *pFrom) const override |
Public Member Functions inherited from Guild::MoveItemData | |
MoveItemData (Guild *guild, Player *player, uint8 container, uint8 slotId) | |
virtual | ~MoveItemData () |
virtual bool | IsBank () const =0 |
virtual bool | InitItem ()=0 |
virtual bool | CheckItem (uint32 &splitedAmount) |
virtual bool | HasStoreRights (MoveItemData *) const |
virtual bool | HasWithdrawRights (MoveItemData *) const |
bool | CanStore (Item *pItem, bool swap, bool sendError) |
bool | CloneItem (uint32 count) |
virtual void | RemoveItem (CharacterDatabaseTransaction trans, MoveItemData *pOther, uint32 splitedAmount=0)=0 |
virtual Item * | StoreItem (CharacterDatabaseTransaction trans, Item *pItem)=0 |
virtual void | LogBankEvent (CharacterDatabaseTransaction trans, MoveItemData *pFrom, uint32 count) const =0 |
virtual void | LogAction (MoveItemData *pFrom) const |
void | CopySlots (SlotIds &ids) const |
Item * | GetItem (bool isCloned=false) const |
uint8 | GetContainer () const |
uint8 | GetSlotId () const |
Protected Member Functions | |
InventoryResult | CanStore (Item *pItem, bool swap) override |
virtual InventoryResult | CanStore (Item *pItem, bool swap)=0 |
Private Member Functions | |
Item * | _StoreItem (CharacterDatabaseTransaction trans, BankTab *pTab, Item *pItem, ItemPosCount &pos, bool clone) const |
bool | _ReserveSpace (uint8 slotId, Item *pItem, Item *pItemDest, uint32 &count) |
void | CanStoreItemInTab (Item *pItem, uint8 skipSlotId, bool merge, uint32 &count) |
Additional Inherited Members | |
Protected Attributes inherited from Guild::MoveItemData | |
Guild * | m_pGuild |
Player * | m_pPlayer |
uint8 | m_container |
uint8 | m_slotId |
Item * | m_pItem |
Item * | m_pClonedItem |
ItemPosCountVec | m_vec |
|
inline |
|
private |
References Item::GetCount(), Object::GetEntry(), Item::GetMaxStackCount(), and ItemPosCount::isContainedIn().
|
private |
References Item::CloneItem(), ItemPosCount::count, Item::DeleteFromDB(), Guild::BankTab::GetItem(), ITEM_CHANGED, ItemPosCount::pos, Object::RemoveFromWorld(), Item::SetCount(), and Guild::BankTab::SetItem().
|
overrideprotectedvirtual |
Implements Guild::MoveItemData.
References ItemTemplate::Duration, EQUIP_ERR_BANK_FULL, EQUIP_ERR_CANT_DROP_SOULBOUND, EQUIP_ERR_ITEM_CANT_STACK, EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG, EQUIP_ERR_ITEMS_CANT_BE_SWAPPED, EQUIP_ERR_OK, Item::GetCount(), Object::GetEntry(), Item::GetMaxStackCount(), Item::GetTemplate(), Item::IsSoulBound(), LOG_DEBUG, and NULL_SLOT.
|
private |
References GUILD_BANK_MAX_SLOTS.
|
overridevirtual |
Reimplemented from Guild::MoveItemData.
References ASSERT, Guild::MoveItemData::GetContainer(), GUILD_BANK_RIGHT_DEPOSIT_ITEM, and Guild::MoveItemData::IsBank().
|
overridevirtual |
Reimplemented from Guild::MoveItemData.
References ASSERT, Guild::MoveItemData::GetContainer(), and Guild::MoveItemData::IsBank().
|
overridevirtual |
Implements Guild::MoveItemData.
|
inlineoverridevirtual |
Implements Guild::MoveItemData.
|
overridevirtual |
Reimplemented from Guild::MoveItemData.
References Guild::MoveItemData::LogAction().
|
overridevirtual |
Implements Guild::MoveItemData.
References ASSERT, Guild::MoveItemData::GetContainer(), Object::GetEntry(), Guild::MoveItemData::GetItem(), GUILD_BANK_LOG_DEPOSIT_ITEM, GUILD_BANK_LOG_MOVE_ITEM, and Guild::MoveItemData::IsBank().
|
overridevirtual |
Implements Guild::MoveItemData.
References ASSERT, Guild::MoveItemData::GetContainer(), Guild::MoveItemData::IsBank(), and ITEM_CHANGED.
|
overridevirtual |
Implements Guild::MoveItemData.
References Item::GetCount(), Object::GetEntry(), and LOG_DEBUG.