|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| bool | CanStore (Item *pItem, bool swap, bool sendError) |
| virtual bool | CheckItem (uint32 &splitedAmount) |
| bool | CloneItem (uint32 count) |
| void | CopySlots (SlotIds &ids) const |
| uint8 | GetContainer () const |
| Item * | GetItem (bool isCloned=false) const |
| uint8 | GetSlotId () const |
| virtual bool | HasStoreRights (MoveItemData *) const |
| virtual bool | HasWithdrawRights (MoveItemData *) const |
| virtual bool | InitItem ()=0 |
| virtual bool | IsBank () const =0 |
| virtual void | LogAction (MoveItemData *pFrom) const |
| virtual void | LogBankEvent (SQLTransaction &trans, MoveItemData *pFrom, uint32 count) const =0 |
| MoveItemData (Guild *guild, Player *player, uint8 container, uint8 slotId) | |
| virtual void | RemoveItem (SQLTransaction &trans, MoveItemData *pOther, uint32 splitedAmount=0)=0 |
| virtual Item * | StoreItem (SQLTransaction &trans, Item *pItem)=0 |
| virtual | ~MoveItemData () |
Protected Member Functions | |
| virtual InventoryResult | CanStore (Item *pItem, bool swap)=0 |
Protected Attributes | |
| uint8 | m_container |
| Item * | m_pClonedItem |
| Guild * | m_pGuild |
| Item * | m_pItem |
| Player * | m_pPlayer |
| uint8 | m_slotId |
| ItemPosCountVec | m_vec |
|
inline |
Definition at line 657 of file Guild.h.
References Guild::Guild(), m_container, m_pClonedItem, m_pGuild, m_pItem, m_pPlayer, and m_slotId.
Referenced by Guild::BankMoveItemData::BankMoveItemData(), Guild::BankMoveItemData::HasStoreRights(), HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), HasWithdrawRights(), Guild::BankMoveItemData::LogAction(), LogAction(), Guild::BankMoveItemData::LogBankEvent(), LogBankEvent(), Guild::PlayerMoveItemData::LogBankEvent(), Guild::PlayerMoveItemData::PlayerMoveItemData(), Guild::BankMoveItemData::RemoveItem(), RemoveItem(), and Guild::PlayerMoveItemData::RemoveItem().
|
inlinevirtual |
|
protectedpure virtual |
Implemented in Guild::BankMoveItemData, and Guild::PlayerMoveItemData.
| bool Guild::MoveItemData::CanStore | ( | Item * | pItem, |
| bool | swap, | ||
| bool | sendError ) |
Definition at line 822 of file Guild.cpp.
References CanStore(), EQUIP_ERR_OK, m_pPlayer, and m_vec.
Referenced by Guild::_DoItemsMove(), and CanStore().
|
virtual |
Definition at line 812 of file Guild.cpp.
References ASSERT, and m_pItem.
Referenced by Guild::_MoveItems().
| bool Guild::MoveItemData::CloneItem | ( | uint32 | count | ) |
Definition at line 831 of file Guild.cpp.
References ASSERT, EQUIP_ERR_ITEM_NOT_FOUND, m_pClonedItem, m_pItem, and m_pPlayer.
Referenced by Guild::_MoveItems().
|
inline |
Definition at line 852 of file Guild.cpp.
References m_vec.
Referenced by Guild::_SendBankContentUpdate().
|
inline |
Definition at line 686 of file Guild.h.
References m_container.
Referenced by Guild::_SendBankContentUpdate(), Guild::BankMoveItemData::HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), LogAction(), Guild::BankMoveItemData::LogBankEvent(), Guild::PlayerMoveItemData::LogBankEvent(), and Guild::BankMoveItemData::RemoveItem().
|
inline |
Definition at line 685 of file Guild.h.
References m_pClonedItem, and m_pItem.
Referenced by Guild::_DoItemsMove(), Guild::BankMoveItemData::LogAction(), LogAction(), Guild::BankMoveItemData::LogBankEvent(), and Guild::PlayerMoveItemData::LogBankEvent().
|
inline |
Definition at line 687 of file Guild.h.
References m_slotId.
Referenced by Guild::_SendBankContentUpdate(), and LogAction().
|
inlinevirtual |
Reimplemented in Guild::BankMoveItemData.
Definition at line 667 of file Guild.h.
References MoveItemData().
Referenced by Guild::_MoveItems().
|
inlinevirtual |
Reimplemented in Guild::BankMoveItemData.
Definition at line 669 of file Guild.h.
References MoveItemData().
Referenced by Guild::_MoveItems().
|
pure virtual |
Implemented in Guild::BankMoveItemData, and Guild::PlayerMoveItemData.
Referenced by Guild::_MoveItems().
|
pure virtual |
Implemented in Guild::BankMoveItemData, and Guild::PlayerMoveItemData.
Referenced by Guild::_SendBankContentUpdate(), Guild::BankMoveItemData::HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), Guild::BankMoveItemData::LogAction(), LogAction(), Guild::BankMoveItemData::LogBankEvent(), and Guild::BankMoveItemData::RemoveItem().
|
virtual |
Reimplemented in Guild::BankMoveItemData.
Definition at line 843 of file Guild.cpp.
References ASSERT, GetContainer(), GetItem(), GetSlotId(), IsBank(), m_pGuild, m_pPlayer, MoveItemData(), and sScriptMgr.
Referenced by Guild::_DoItemsMove(), and Guild::BankMoveItemData::LogAction().
|
pure virtual |
Implemented in Guild::BankMoveItemData, and Guild::PlayerMoveItemData.
References MoveItemData().
Referenced by Guild::_DoItemsMove().
|
pure virtual |
Implemented in Guild::BankMoveItemData, and Guild::PlayerMoveItemData.
References MoveItemData().
Referenced by Guild::_DoItemsMove().
|
pure virtual |
Implemented in Guild::BankMoveItemData, and Guild::PlayerMoveItemData.
Referenced by Guild::_DoItemsMove().
|
protected |
Definition at line 694 of file Guild.h.
Referenced by Guild::BankMoveItemData::CanStore(), Guild::PlayerMoveItemData::CanStore(), Guild::BankMoveItemData::CanStoreItemInTab(), GetContainer(), Guild::BankMoveItemData::HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), Guild::BankMoveItemData::InitItem(), Guild::PlayerMoveItemData::InitItem(), Guild::BankMoveItemData::LogBankEvent(), MoveItemData(), Guild::BankMoveItemData::RemoveItem(), Guild::PlayerMoveItemData::RemoveItem(), and Guild::BankMoveItemData::StoreItem().
|
protected |
Definition at line 697 of file Guild.h.
Referenced by CloneItem(), GetItem(), and MoveItemData().
|
protected |
Definition at line 692 of file Guild.h.
Referenced by Guild::BankMoveItemData::CanStore(), Guild::BankMoveItemData::CanStoreItemInTab(), Guild::BankMoveItemData::HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), Guild::BankMoveItemData::InitItem(), Guild::BankMoveItemData::LogAction(), LogAction(), Guild::BankMoveItemData::LogBankEvent(), Guild::PlayerMoveItemData::LogBankEvent(), MoveItemData(), Guild::BankMoveItemData::RemoveItem(), and Guild::BankMoveItemData::StoreItem().
|
protected |
Definition at line 696 of file Guild.h.
Referenced by CheckItem(), CloneItem(), GetItem(), Guild::BankMoveItemData::InitItem(), Guild::PlayerMoveItemData::InitItem(), MoveItemData(), Guild::BankMoveItemData::RemoveItem(), and Guild::PlayerMoveItemData::RemoveItem().
|
protected |
Definition at line 693 of file Guild.h.
Referenced by CanStore(), Guild::PlayerMoveItemData::CanStore(), CloneItem(), Guild::BankMoveItemData::HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), Guild::PlayerMoveItemData::InitItem(), Guild::BankMoveItemData::LogAction(), LogAction(), Guild::BankMoveItemData::LogBankEvent(), Guild::PlayerMoveItemData::LogBankEvent(), MoveItemData(), Guild::BankMoveItemData::RemoveItem(), Guild::PlayerMoveItemData::RemoveItem(), and Guild::PlayerMoveItemData::StoreItem().
|
protected |
Definition at line 695 of file Guild.h.
Referenced by Guild::BankMoveItemData::CanStore(), Guild::PlayerMoveItemData::CanStore(), GetSlotId(), Guild::BankMoveItemData::InitItem(), Guild::PlayerMoveItemData::InitItem(), MoveItemData(), Guild::BankMoveItemData::RemoveItem(), Guild::PlayerMoveItemData::RemoveItem(), and Guild::BankMoveItemData::StoreItem().
|
protected |
Definition at line 698 of file Guild.h.
Referenced by Guild::BankMoveItemData::_ReserveSpace(), CanStore(), Guild::PlayerMoveItemData::CanStore(), CopySlots(), Guild::BankMoveItemData::StoreItem(), and Guild::PlayerMoveItemData::StoreItem().