From db69f96fbf5ac5321bdcb1e86ff07d1e35de9fec Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 20 Oct 2012 18:24:35 +0000 Subject: Added func_drop, added spacemine template. --- src/game/base/weapon.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/game/base/weapon.h') diff --git a/src/game/base/weapon.h b/src/game/base/weapon.h index 247a3e7..01a135b 100644 --- a/src/game/base/weapon.h +++ b/src/game/base/weapon.h @@ -14,9 +14,14 @@ namespace game class Weapon : public core::Info { public: + enum SubType {Ammo = 0, Cannon = 1, Turret = 2, Mine = 3 }; + Weapon(); ~Weapon(); + inline SubType subtype() const { + return weapon_subtype; + } inline bool stackable() const { return weapon_stackable; } @@ -29,6 +34,8 @@ public: void set_level(const int level); + void set_subtype(const SubType subtype); + /* --- static registry functions ---------------------------------- */ static Weapon *find(const std::string & label); @@ -49,6 +56,8 @@ private: int weapon_level; bool weapon_stackable; + + SubType weapon_subtype; }; } // namespace game -- cgit v1.2.3