diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-22 13:31:13 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-22 13:31:13 +0000 |
commit | bd56bf8afdab16383ed8ad08412a8c807f84af85 (patch) | |
tree | 0e963ada63bcbe3c50dd77986aaa15b9ba49816a /src/equipment.h | |
parent | 5359640b6f271af31f6423df9d661433eff89a3e (diff) | |
download | mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.gz mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.bz2 mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.xz mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.zip |
Merged NETWORK branch (includes BEING_OVERHAUL).
Diffstat (limited to 'src/equipment.h')
-rw-r--r-- | src/equipment.h | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/equipment.h b/src/equipment.h index 2bb53e42..cc805004 100644 --- a/src/equipment.h +++ b/src/equipment.h @@ -24,8 +24,6 @@ #ifndef _TMW_EQUIPMENT_H_ #define _TMW_EQUIPMENT_H_ -#include <stdlib.h> - class Item; #define EQUIPMENT_SIZE 10 @@ -34,9 +32,14 @@ class Equipment { public: /** - * Retrieve an instance of the equipment class. + * Constructor. + */ + Equipment(); + + /** + * Destructor. */ - static Equipment* getInstance(); + ~Equipment(); /** * Get equipment at the given slot. @@ -48,13 +51,13 @@ class Equipment * Set equipment at the given slot. */ void - setEquipment(int index, Item *item) { mEquipment[index] = item; } + setEquipment(int index, Item *item); /** * Remove equipment from the given slot. */ void - removeEquipment(int index) { mEquipment[index] = NULL; } + removeEquipment(int index) { mEquipment[index] = 0; } /** * Remove the given item from equipment. @@ -74,21 +77,8 @@ class Equipment setArrows(Item *arrows) { mArrows = arrows; } protected: - /** - * Constructor. - */ - Equipment(); - - /** - * Destructor. - */ - ~Equipment(); - Item *mEquipment[EQUIPMENT_SIZE]; Item *mArrows; - - private: - static Equipment *mInstance; }; #endif |