Mana
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
TmwAthena::InventoryHandler Class Referencefinal

#include <inventoryhandler.h>

Inheritance diagram for TmwAthena::InventoryHandler:
TmwAthena::MessageHandler Net::InventoryHandler EventListener Net::MessageHandler

Public Types

enum  { GUILD_STORAGE = Inventory::TYPE_END , CART }
 

Public Member Functions

 InventoryHandler ()
 
 ~InventoryHandler () override
 
void handleMessage (MessageIn &msg) override
 
void event (Event::Channel channel, const Event &event) override
 
size_t getSize (int type) const override
 
bool isWeaponSlot (unsigned int slotTypeId) const override
 
bool isAmmoSlot (unsigned int slotTypeId) const override
 
Equipment::BackendgetEquipmentBackend () override
 
- Public Member Functions inherited from TmwAthena::MessageHandler
 MessageHandler ()
 
 ~MessageHandler () override
 
void setNetwork (Network *network)
 
- Public Member Functions inherited from Net::InventoryHandler
virtual unsigned int getVisibleSlotsNumber () const
 
virtual Position getBoxPosition (unsigned int slotIndex) const
 
virtual const std::string & getBoxIcon (unsigned int slotIndex) const
 
- Public Member Functions inherited from EventListener
virtual ~EventListener ()
 
void listen (Event::Channel channel)
 
void ignore (Event::Channel channel)
 

Private Attributes

EquipBackend mEquips
 
std::vector< InventoryItemmInventoryItems
 
InventorymStorage = nullptr
 
InventoryWindowmStorageWindow = nullptr
 

Additional Inherited Members

- Public Attributes inherited from Net::MessageHandler
const uint16_t * handledMessages = _no_messages
 
- Protected Attributes inherited from TmwAthena::MessageHandler
NetworkmNetwork
 

Detailed Description

Definition at line 152 of file inventoryhandler.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
GUILD_STORAGE 
CART 

Definition at line 156 of file inventoryhandler.h.

Constructor & Destructor Documentation

◆ InventoryHandler()

TmwAthena::InventoryHandler::InventoryHandler ( )

Definition at line 81 of file inventoryhandler.cpp.

◆ ~InventoryHandler()

TmwAthena::InventoryHandler::~InventoryHandler ( )
overridevirtual

Reimplemented from Net::InventoryHandler.

Definition at line 108 of file inventoryhandler.cpp.

Member Function Documentation

◆ event()

void TmwAthena::InventoryHandler::event ( Event::Channel  channel,
const Event event 
)
overridevirtual

Implements EventListener.

Definition at line 443 of file inventoryhandler.cpp.

◆ getEquipmentBackend()

Equipment::Backend * TmwAthena::InventoryHandler::getEquipmentBackend ( )
inlineoverridevirtual

Implements Net::InventoryHandler.

Definition at line 183 of file inventoryhandler.h.

◆ getSize()

size_t TmwAthena::InventoryHandler::getSize ( int  type) const
overridevirtual

Implements Net::InventoryHandler.

Definition at line 524 of file inventoryhandler.cpp.

◆ handleMessage()

void TmwAthena::InventoryHandler::handleMessage ( MessageIn msg)
overridevirtual

Implements TmwAthena::MessageHandler.

Definition at line 119 of file inventoryhandler.cpp.

◆ isAmmoSlot()

bool TmwAthena::InventoryHandler::isAmmoSlot ( unsigned int  slotTypeId) const
inlineoverridevirtual

Implements Net::InventoryHandler.

Definition at line 178 of file inventoryhandler.h.

◆ isWeaponSlot()

bool TmwAthena::InventoryHandler::isWeaponSlot ( unsigned int  slotTypeId) const
inlineoverridevirtual

Implements Net::InventoryHandler.

Definition at line 172 of file inventoryhandler.h.

Member Data Documentation

◆ mEquips

EquipBackend TmwAthena::InventoryHandler::mEquips
private

Definition at line 189 of file inventoryhandler.h.

◆ mInventoryItems

std::vector<InventoryItem> TmwAthena::InventoryHandler::mInventoryItems
private

Definition at line 190 of file inventoryhandler.h.

◆ mStorage

Inventory* TmwAthena::InventoryHandler::mStorage = nullptr
private

Definition at line 191 of file inventoryhandler.h.

◆ mStorageWindow

InventoryWindow* TmwAthena::InventoryHandler::mStorageWindow = nullptr
private

Definition at line 192 of file inventoryhandler.h.


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