TrinityCore
Loading...
Searching...
No Matches
Guild::BankMoveItemData Class Reference
+ Inheritance diagram for Guild::BankMoveItemData:

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
 
ItemStoreItem (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 CheckItem (uint32 &splitedAmount)
 
InventoryResult CanStore (Item *pItem, bool swap, bool sendError)
 
bool CloneItem (uint32 count)
 
void CopySlots (SlotIds &ids) const
 
void SendEquipError (InventoryResult result, Item const *item)
 
ItemGetItem (bool isCloned=false) const
 
uint8 GetContainer () const
 
uint8 GetSlotId () const
 

Protected Member Functions

InventoryResult CanStore (Item *pItem, bool swap) override
 

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
Guildm_pGuild
 
Playerm_pPlayer
 
uint8 m_container
 
uint8 m_slotId
 
Itemm_pItem
 
Itemm_pClonedItem
 
std::vector< ItemPosCountm_vec
 

Detailed Description

Definition at line 717 of file Guild.h.

Constructor & Destructor Documentation

◆ BankMoveItemData()

Guild::BankMoveItemData::BankMoveItemData ( Guild guild,
Player player,
uint8  container,
uint8  slotId 
)
inline

Definition at line 720 of file Guild.h.

Member Function Documentation

◆ _ReserveSpace()

bool Guild::BankMoveItemData::_ReserveSpace ( uint8  slotId,
Item pItem,
Item pItemDest,
uint32 count 
)
private

Definition at line 1031 of file Guild.cpp.

+ Here is the call graph for this function:

◆ _StoreItem()

Item * Guild::BankMoveItemData::_StoreItem ( CharacterDatabaseTransaction  trans,
BankTab pTab,
Item pItem,
ItemPosCount pos,
bool  clone 
) const
private

Definition at line 998 of file Guild.cpp.

+ Here is the call graph for this function:

◆ CanStore()

InventoryResult Guild::BankMoveItemData::CanStore ( Item pItem,
bool  swap 
)
overrideprotectedvirtual

Implements Guild::MoveItemData.

Definition at line 1074 of file Guild.cpp.

+ Here is the call graph for this function:

◆ CanStoreItemInTab()

void Guild::BankMoveItemData::CanStoreItemInTab ( Item pItem,
uint8  skipSlotId,
bool  merge,
uint32 count 
)
private

Definition at line 1054 of file Guild.cpp.

◆ HasStoreRights()

bool Guild::BankMoveItemData::HasStoreRights ( MoveItemData pOther) const
overridevirtual

Reimplemented from Guild::MoveItemData.

Definition at line 906 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HasWithdrawRights()

bool Guild::BankMoveItemData::HasWithdrawRights ( MoveItemData pOther) const
overridevirtual

Reimplemented from Guild::MoveItemData.

Definition at line 915 of file Guild.cpp.

+ Here is the call graph for this function:

◆ InitItem()

bool Guild::BankMoveItemData::InitItem ( )
overridevirtual

Implements Guild::MoveItemData.

Definition at line 900 of file Guild.cpp.

◆ IsBank()

bool Guild::BankMoveItemData::IsBank ( ) const
inlineoverridevirtual

Implements Guild::MoveItemData.

Definition at line 723 of file Guild.h.

◆ LogAction()

void Guild::BankMoveItemData::LogAction ( MoveItemData pFrom) const
overridevirtual
Todo:
Move this to scripts

Reimplemented from Guild::MoveItemData.

Definition at line 985 of file Guild.cpp.

+ Here is the call graph for this function:

◆ LogBankEvent()

void Guild::BankMoveItemData::LogBankEvent ( CharacterDatabaseTransaction  trans,
MoveItemData pFrom,
uint32  count 
) const
overridevirtual

Implements Guild::MoveItemData.

Definition at line 972 of file Guild.cpp.

+ Here is the call graph for this function:

◆ RemoveItem()

void Guild::BankMoveItemData::RemoveItem ( CharacterDatabaseTransaction  trans,
MoveItemData pOther,
uint32  splitedAmount 
)
overridevirtual

Implements Guild::MoveItemData.

Definition at line 929 of file Guild.cpp.

+ Here is the call graph for this function:

◆ StoreItem()

Item * Guild::BankMoveItemData::StoreItem ( CharacterDatabaseTransaction  trans,
Item pItem 
)
overridevirtual

Implements Guild::MoveItemData.

Definition at line 948 of file Guild.cpp.

+ Here is the call graph for this function:

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