ManaPlus
|
#include <equipment.h>
Data Structures | |
class | Backend |
Public Member Functions | |
Equipment () | |
~Equipment () | |
const Item * | getEquipment (const int index) const |
void | clear () |
void | setEquipment (int index, int id, int quantity) |
void | setBackend (Backend *const backend) |
const Backend * | getBackend () const |
Private Attributes | |
Backend * | mBackend |
Definition at line 31 of file equipment.h.
|
inline |
Constructor.
Definition at line 37 of file equipment.h.
|
inline |
|
inline |
Clears equipment.
Definition at line 78 of file equipment.h.
References Equipment::Backend::clear(), and mBackend.
Referenced by PlayerInfo::clearInventory().
|
inline |
Definition at line 91 of file equipment.h.
References mBackend.
Referenced by EAthena::InventoryRecv::processPlayerEquipment(), TmwAthena::InventoryRecv::processPlayerEquipment(), EquipmentWindow::setBeing(), and EquipmentWindow::~EquipmentWindow().
|
inline |
Get equipment at the given slot.
Definition at line 69 of file equipment.h.
References Equipment::Backend::getEquipment(), and mBackend.
Referenced by EquipmentWindow::action(), EquipmentWindow::draw(), EquipmentWindow::getEquipment(), PlayerInfo::getEquipment(), EquipmentWindow::getItem(), EquipmentWindow::mousePressed(), and EquipmentWindow::safeDraw().
|
inline |
Definition at line 88 of file equipment.h.
References mBackend.
Referenced by EAthena::InventoryRecv::processInventoryEndContinue(), EAthena::InventoryRecv::processPlayerEquipment(), TmwAthena::InventoryRecv::processPlayerEquipment(), EAthena::InventoryRecv::processPlayerInventory(), TmwAthena::InventoryRecv::processPlayerInventory(), EAthena::InventoryRecv::processPlayerInventoryAdd(), TmwAthena::InventoryRecv::processPlayerInventoryAdd(), and PlayerInfo::setEquipmentBackend().
void Equipment::setEquipment | ( | int | index, |
int | id, | ||
int | quantity | ||
) |
Set equipment at the given slot.
|
private |
Definition at line 95 of file equipment.h.
Referenced by clear(), getBackend(), getEquipment(), setBackend(), and ~Equipment().