From bd56bf8afdab16383ed8ad08412a8c807f84af85 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sun, 22 Jan 2006 13:31:13 +0000 Subject: Merged NETWORK branch (includes BEING_OVERHAUL). --- src/equipment.h | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) (limited to 'src/equipment.h') 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 - 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 -- cgit v1.2.3-70-g09d2