ManaPlus
|
#include <inventoryhandler.h>
Public Member Functions | |
~InventoryHandler () | |
void | clear () const |
bool | canSplit (const Item *const item) const A_CONST |
void | splitItem (const Item *const item, const int amount) const |
void | moveItem (const int oldIndex, const int newIndex) const |
size_t | getSize (const InventoryTypeT type) const A_CONST |
void | destroyStorage () const |
void | forgotStorage () const |
Inventory * | getStorage () const |
Public Member Functions inherited from Net::InventoryHandler | |
InventoryHandler () | |
virtual void | equipItem (const Item *const item) const =0 |
virtual void | unequipItem (const Item *const item) const =0 |
virtual void | useItem (const Item *const item) const =0 |
virtual void | useItem (const Item *const item, const int16_t useType) const =0 |
virtual void | dropItem (const Item *const item, const int amount) const =0 |
virtual void | closeStorage () const =0 |
virtual void | moveItem2 (const InventoryTypeT source, const int slot, const int amount, const InventoryTypeT destination) const =0 |
virtual int | convertFromServerSlot (const int eAthenaSlot) const =0 |
virtual void | useCard (const Item *const item)=0 |
virtual void | insertCard (const int cardIndex, const int itemIndex) const =0 |
virtual void | favoriteItem (const Item *const item, const bool favorite) const =0 |
virtual void | selectEgg (const Item *const item) const =0 |
virtual int | getProjectileSlot () const =0 |
virtual int | getItemIndex () const =0 |
virtual void | selectCart (const BeingId accountId, const int type) const =0 |
virtual void | identifyItem (const Item *const item) const =0 |
virtual void | mergeItemsAck (const std::vector< Item * > &items) const =0 |
virtual void | mergetItemsCancel () const =0 |
virtual void | expandInventory () const =0 |
virtual void | expandInventoryConfirm () const =0 |
virtual void | expandInventoryReject () const =0 |
Static Public Member Functions | |
static void | pushPickup (const BeingId floorId) |
Protected Member Functions | |
InventoryHandler () | |
Definition at line 38 of file inventoryhandler.h.
|
virtual |
Reimplemented from Net::InventoryHandler.
Reimplemented in TmwAthena::InventoryHandler, and EAthena::InventoryHandler.
Definition at line 48 of file inventoryhandler.cpp.
References InventoryWindow::close(), delete2, Ea::InventoryRecv::mStorage, and storageWindow.
|
protected |
Definition at line 36 of file inventoryhandler.cpp.
References Ea::EquipBackend::clear(), empty, Ea::InventoryRecv::mDebugInventory, Ea::InventoryRecv::mEquips, Ea::InventoryRecv::mSentPickups, Ea::InventoryRecv::mStorage, Ea::InventoryRecv::mStorageItems, and storageWindow.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 64 of file inventoryhandler.cpp.
|
virtual |
Implements Net::InventoryHandler.
Reimplemented in EAthena::InventoryHandler.
Definition at line 59 of file inventoryhandler.cpp.
References delete2, and Ea::InventoryRecv::mStorage.
Referenced by EAthena::InventoryHandler::clear().
|
virtual |
Implements Net::InventoryHandler.
Definition at line 102 of file inventoryhandler.cpp.
References BLOCK_END, BLOCK_START, InventoryWindow::close(), storageWindow, and InventoryWindow::unsetInventory().
|
virtual |
Implements Net::InventoryHandler.
Definition at line 114 of file inventoryhandler.cpp.
References storageWindow.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 81 of file inventoryhandler.cpp.
References InventoryType::Cart, InventoryType::Craft, InventoryType::Inventory, InventoryType::MailEdit, InventoryType::MailView, InventoryType::Npc, InventoryType::Storage, InventoryType::Trade, InventoryType::TypeEnd, and InventoryType::Vending.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 124 of file inventoryhandler.cpp.
References Ea::InventoryRecv::mStorage.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 75 of file inventoryhandler.cpp.
|
static |
Definition at line 119 of file inventoryhandler.cpp.
References Ea::InventoryRecv::mSentPickups.
Referenced by EAthena::PlayerHandler::pickUp(), and TmwAthena::PlayerHandler::pickUp().
|
virtual |
Implements Net::InventoryHandler.
Definition at line 69 of file inventoryhandler.cpp.