diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 02:24:44 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 02:24:44 +0200 |
commit | f8551d9ef4a745327bccb9e4cb54a22f6a28cf80 (patch) | |
tree | 9af300838e58e2e2c7aeaca5765e7dbbb30d8b6d /src/net/tmwa | |
parent | 3b7740f133e195b0a0b11090ea8c2b8a7b64411c (diff) | |
download | mana-f8551d9ef4a745327bccb9e4cb54a22f6a28cf80.tar.gz mana-f8551d9ef4a745327bccb9e4cb54a22f6a28cf80.tar.bz2 mana-f8551d9ef4a745327bccb9e4cb54a22f6a28cf80.tar.xz mana-f8551d9ef4a745327bccb9e4cb54a22f6a28cf80.zip |
Made the client able to successfully equip/unequip!
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/inventoryhandler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h index bbb734e7..15fa1fac 100644 --- a/src/net/tmwa/inventoryhandler.h +++ b/src/net/tmwa/inventoryhandler.h @@ -84,6 +84,16 @@ class EquipBackend : public Equipment::Backend inventoryWindow->updateButtons(); } + void triggerUnequip(int slotIndex) const + { + Item *item = getEquipment(slotIndex); + if (item) + item->doEvent(Event::DoUnequip); + } + + int getSlotNumber() const + { return EQUIP_VECTOR_END; } + private: int mEquipment[EQUIP_VECTOR_END]; }; |