diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-31 21:29:00 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-31 21:29:00 +0000 |
commit | 36d28236321b6a2824ad4f394faeabbf79626808 (patch) | |
tree | 7d2475acf84852f2a21cc29eecbf7524cd58ff52 /src/equipment.h | |
parent | c9f930c759004e179545c3b82992e3f8a12345f2 (diff) | |
download | mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.gz mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.bz2 mana-36d28236321b6a2824ad4f394faeabbf79626808.tar.xz mana-36d28236321b6a2824ad4f394faeabbf79626808.zip |
Removed legacy inventory code. Added display of equipment.
Diffstat (limited to 'src/equipment.h')
-rw-r--r-- | src/equipment.h | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/src/equipment.h b/src/equipment.h index db9cf27d..f178e0ca 100644 --- a/src/equipment.h +++ b/src/equipment.h @@ -39,41 +39,17 @@ class Equipment /** * Get equipment at the given slot. */ - Item* - getEquipment(int index) { return mEquipment[index]; } + int getEquipment(int index) + { return mEquipment[index]; } /** * Set equipment at the given slot. */ - void - setEquipment(int index, Item *item); + void setEquipment(int index, int id) + { mEquipment[index] = id; } - /** - * Remove equipment from the given slot. - */ - void - removeEquipment(int index) { mEquipment[index] = 0; } - - /** - * Remove the given item from equipment. - */ - void removeEquipment(Item *item); - - /** - * Get the item used in the arrow slot. - */ - Item* - getArrows() { return mArrows; } - - /** - * Set the item used in the arrow slot. - */ - void - setArrows(Item *arrows) { mArrows = arrows; } - - protected: - Item *mEquipment[EQUIPMENT_SIZE]; - Item *mArrows; + private: + int mEquipment[EQUIPMENT_SIZE]; }; #endif |