AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
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 | |
virtual InventoryResult | CanStore (Item *pItem, bool swap)=0 |
Protected Attributes | |
Guild * | m_pGuild |
Player * | m_pPlayer |
uint8 | m_container |
uint8 | m_slotId |
Item * | m_pItem |
Item * | m_pClonedItem |
ItemPosCountVec | m_vec |
|
inline |
|
inlinevirtual |
|
protectedpure virtual |
Implemented in Guild::PlayerMoveItemData, and Guild::BankMoveItemData.
bool Guild::MoveItemData::CanStore | ( | Item * | pItem, |
bool | swap, | ||
bool | sendError | ||
) |
References EQUIP_ERR_OK.
Referenced by Guild::_DoItemsMove().
|
virtual |
References ASSERT.
Referenced by Guild::_MoveItems().
bool Guild::MoveItemData::CloneItem | ( | uint32 | count | ) |
References ASSERT, and EQUIP_ERR_ITEM_NOT_FOUND.
Referenced by Guild::_MoveItems().
|
inline |
Referenced by Guild::_SendBankContentUpdate().
|
inline |
|
inline |
References m_pClonedItem, and m_pItem.
Referenced by Guild::_DoItemsMove(), LogAction(), Guild::PlayerMoveItemData::LogBankEvent(), and Guild::BankMoveItemData::LogBankEvent().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Implemented in Guild::PlayerMoveItemData, and Guild::BankMoveItemData.
Referenced by Guild::_MoveItems().
|
pure virtual |
Implemented in Guild::PlayerMoveItemData, and Guild::BankMoveItemData.
Referenced by Guild::_SendBankContentUpdate(), Guild::BankMoveItemData::HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), LogAction(), Guild::BankMoveItemData::LogBankEvent(), and Guild::BankMoveItemData::RemoveItem().
|
virtual |
Reimplemented in Guild::BankMoveItemData.
References ASSERT, GetContainer(), GetItem(), GetSlotId(), IsBank(), and sScriptMgr.
Referenced by Guild::_DoItemsMove(), and Guild::BankMoveItemData::LogAction().
|
pure virtual |
Implemented in Guild::PlayerMoveItemData, and Guild::BankMoveItemData.
Referenced by Guild::_DoItemsMove().
|
pure virtual |
Implemented in Guild::BankMoveItemData, and Guild::PlayerMoveItemData.
Referenced by Guild::_DoItemsMove().
|
pure virtual |
Implemented in Guild::PlayerMoveItemData, and Guild::BankMoveItemData.
Referenced by Guild::_DoItemsMove().
|
protected |
Referenced by GetContainer().
|
protected |
|
protected |
|
protected |
Referenced by GetSlotId().
|
protected |