ManaPlus
Public Member Functions
Net::InventoryHandler Class Referenceabstract

#include <inventoryhandler.h>

Inheritance diagram for Net::InventoryHandler:
Ea::InventoryHandler EAthena::InventoryHandler TmwAthena::InventoryHandler

Public Member Functions

 InventoryHandler ()
 
virtual ~InventoryHandler ()
 
virtual void clear () const =0
 
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 bool canSplit (const Item *const item) const =0
 
virtual void splitItem (const Item *const item, const int amount) const =0
 
virtual void moveItem (const int oldIndex, const int newIndex) 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 size_t getSize (const InventoryTypeT type) const =0
 
virtual InventorygetStorage () const =0
 
virtual void destroyStorage () const =0
 
virtual void forgotStorage () 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
 

Detailed Description

Definition at line 36 of file inventoryhandler.h.

Constructor & Destructor Documentation

◆ InventoryHandler()

Net::InventoryHandler::InventoryHandler ( )
inline

Definition at line 39 of file inventoryhandler.h.

40  { }

◆ ~InventoryHandler()

virtual Net::InventoryHandler::~InventoryHandler ( )
inlinevirtual

Reimplemented in TmwAthena::InventoryHandler, EAthena::InventoryHandler, and Ea::InventoryHandler.

Definition at line 44 of file inventoryhandler.h.

45  { }

Member Function Documentation

◆ canSplit()

virtual bool Net::InventoryHandler::canSplit ( const Item *const  item) const
pure virtual

Implemented in Ea::InventoryHandler.

◆ clear()

virtual void Net::InventoryHandler::clear ( ) const
pure virtual

◆ closeStorage()

virtual void Net::InventoryHandler::closeStorage ( ) const
pure virtual

◆ convertFromServerSlot()

virtual int Net::InventoryHandler::convertFromServerSlot ( const int  eAthenaSlot) const
pure virtual

◆ destroyStorage()

virtual void Net::InventoryHandler::destroyStorage ( ) const
pure virtual

Implemented in Ea::InventoryHandler.

Referenced by DialogsManager::closeDialogs().

◆ dropItem()

virtual void Net::InventoryHandler::dropItem ( const Item *const  item,
const int  amount 
) const
pure virtual

◆ equipItem()

virtual void Net::InventoryHandler::equipItem ( const Item *const  item) const
pure virtual

◆ expandInventory()

virtual void Net::InventoryHandler::expandInventory ( ) const
pure virtual

◆ expandInventoryConfirm()

virtual void Net::InventoryHandler::expandInventoryConfirm ( ) const
pure virtual

◆ expandInventoryReject()

virtual void Net::InventoryHandler::expandInventoryReject ( ) const
pure virtual

◆ favoriteItem()

virtual void Net::InventoryHandler::favoriteItem ( const Item *const  item,
const bool  favorite 
) const
pure virtual

◆ forgotStorage()

virtual void Net::InventoryHandler::forgotStorage ( ) const
pure virtual

Implemented in Ea::InventoryHandler.

Referenced by InventoryWindow::close().

◆ getItemIndex()

virtual int Net::InventoryHandler::getItemIndex ( ) const
pure virtual

◆ getProjectileSlot()

virtual int Net::InventoryHandler::getProjectileSlot ( ) const
pure virtual

◆ getSize()

virtual size_t Net::InventoryHandler::getSize ( const InventoryTypeT  type) const
pure virtual

Implemented in Ea::InventoryHandler.

◆ getStorage()

virtual Inventory* Net::InventoryHandler::getStorage ( ) const
pure virtual

◆ identifyItem()

virtual void Net::InventoryHandler::identifyItem ( const Item *const  item) const
pure virtual

◆ insertCard()

virtual void Net::InventoryHandler::insertCard ( const int  cardIndex,
const int  itemIndex 
) const
pure virtual

◆ mergeItemsAck()

virtual void Net::InventoryHandler::mergeItemsAck ( const std::vector< Item * > &  items) const
pure virtual

◆ mergetItemsCancel()

virtual void Net::InventoryHandler::mergetItemsCancel ( ) const
pure virtual

◆ moveItem()

virtual void Net::InventoryHandler::moveItem ( const int  oldIndex,
const int  newIndex 
) const
pure virtual

Implemented in Ea::InventoryHandler.

Referenced by ItemContainer::mouseReleased().

◆ moveItem2()

virtual void Net::InventoryHandler::moveItem2 ( const InventoryTypeT  source,
const int  slot,
const int  amount,
const InventoryTypeT  destination 
) const
pure virtual

◆ selectCart()

virtual void Net::InventoryHandler::selectCart ( const BeingId  accountId,
const int  type 
) const
pure virtual

◆ selectEgg()

virtual void Net::InventoryHandler::selectEgg ( const Item *const  item) const
pure virtual

◆ splitItem()

virtual void Net::InventoryHandler::splitItem ( const Item *const  item,
const int  amount 
) const
pure virtual

Implemented in Ea::InventoryHandler.

Referenced by ItemAmountWindow::finish().

◆ unequipItem()

virtual void Net::InventoryHandler::unequipItem ( const Item *const  item) const
pure virtual

◆ useCard()

virtual void Net::InventoryHandler::useCard ( const Item *const  item)
pure virtual

◆ useItem() [1/2]

virtual void Net::InventoryHandler::useItem ( const Item *const  item) const
pure virtual

◆ useItem() [2/2]

virtual void Net::InventoryHandler::useItem ( const Item *const  item,
const int16_t  useType 
) const
pure virtual

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