ManaPlus
|
#include <inventoryhandler.h>
Public Member Functions | |
InventoryHandler () | |
~InventoryHandler () | |
void | clear () const |
void | equipItem (const Item *const item) const |
void | unequipItem (const Item *const item) const |
void | useItem (const Item *const item) const |
void | useItem (const Item *const item, const int16_t useType) const |
void | dropItem (const Item *const item, const int amount) const |
void | closeStorage () const |
void | moveItem2 (const InventoryTypeT source, const int slot, const int amount, const InventoryTypeT destination) const |
void | moveItemInventoryToStorage (const int slot, const int amount) const |
void | useCard (const Item *const item) |
void | insertCard (const int cardIndex, const int itemIndex) const |
void | favoriteItem (const Item *const item, const bool favorite) const |
void | selectEgg (const Item *const item) const |
int | convertFromServerSlot (const int serverSlot) const |
void | selectCart (const BeingId accountId, const int type) const |
void | identifyItem (const Item *const item) const |
void | mergeItemsAck (const std::vector< Item * > &items) const |
void | mergetItemsCancel () const |
void | expandInventory () const |
void | expandInventoryConfirm () const |
void | expandInventoryReject () const |
int | getProjectileSlot () const |
int | getItemIndex () const |
Public Member Functions inherited from Ea::InventoryHandler | |
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 () | |
Private Attributes | |
int | mItemIndex |
Additional Inherited Members | |
Static Public Member Functions inherited from Ea::InventoryHandler | |
static void | pushPickup (const BeingId floorId) |
Protected Member Functions inherited from Ea::InventoryHandler | |
InventoryHandler () | |
Definition at line 32 of file inventoryhandler.h.
EAthena::InventoryHandler::InventoryHandler | ( | ) |
Definition at line 76 of file inventoryhandler.cpp.
References inventoryHandler, EAthena::InventoryRecv::mCartItems, and EAthena::InventoryRecv::mInventoryItems.
|
virtual |
Reimplemented from Ea::InventoryHandler.
Definition at line 86 of file inventoryhandler.cpp.
References inventoryHandler.
|
virtual |
Reimplemented from Ea::InventoryHandler.
Definition at line 91 of file inventoryhandler.cpp.
References Ea::InventoryHandler::clear(), EAthena::InventoryRecv::mCartItems, EAthena::InventoryRecv::mInventoryItems, and Ea::InventoryRecv::mStorageItems.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 313 of file inventoryhandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 573 of file inventoryhandler.cpp.
References CAST_S32, and EQUIP_CONVERT.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 158 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getInvIndex(), INVENTORY_OFFSET, and packetVersion.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 99 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getInvIndex(), INVENTORY_OFFSET, and packetVersion.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 618 of file inventoryhandler.cpp.
References createOutPacket, packetVersionMain, packetVersionRe, and packetVersionZero.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 629 of file inventoryhandler.cpp.
References createOutPacket, packetVersionMain, packetVersionRe, and packetVersionZero.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 640 of file inventoryhandler.cpp.
References createOutPacket, packetVersionMain, packetVersionRe, and packetVersionZero.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 549 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getInvIndex(), INVENTORY_OFFSET, and packetVersion.
|
inlinevirtual |
Implements Net::InventoryHandler.
Definition at line 97 of file inventoryhandler.h.
References mItemIndex.
|
inlinevirtual |
Implements Net::InventoryHandler.
Definition at line 94 of file inventoryhandler.h.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 591 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getInvIndex(), and packetVersion.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 539 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, and INVENTORY_OFFSET.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 600 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, and FOR_EACH.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 613 of file inventoryhandler.cpp.
References createOutPacket.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 484 of file inventoryhandler.cpp.
References InventoryType::Cart, CAST_S16, createOutPacket, InventoryType::Inventory, INVENTORY_OFFSET, moveItemInventoryToStorage(), packet, InventoryType::Storage, and STORAGE_OFFSET.
void EAthena::InventoryHandler::moveItemInventoryToStorage | ( | const int | slot, |
const int | amount | ||
) | const |
Definition at line 318 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, INVENTORY_OFFSET, and packetVersion.
Referenced by moveItem2().
|
virtual |
Implements Net::InventoryHandler.
Definition at line 581 of file inventoryhandler.cpp.
References CAST_S8, createOutPacket, and packetVersion.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 563 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getInvIndex(), INVENTORY_OFFSET, EAthena::menu, and MenuType::Unknown.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 115 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getInvIndex(), and INVENTORY_OFFSET.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 528 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getInvIndex(), INVENTORY_OFFSET, and mItemIndex.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 125 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getId(), Item::getInvIndex(), and INVENTORY_OFFSET.
|
virtual |
Implements Net::InventoryHandler.
Definition at line 136 of file inventoryhandler.cpp.
References CAST_S16, createOutPacket, Item::getId(), Item::getInvIndex(), INVENTORY_OFFSET, and serverVersion.
|
private |
Definition at line 101 of file inventoryhandler.h.
Referenced by getItemIndex(), and useCard().