diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-20 18:24:35 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-20 18:24:35 +0000 |
commit | db69f96fbf5ac5321bdcb1e86ff07d1e35de9fec (patch) | |
tree | bc997c204e36807cc61736d971ec48d9826117b9 /src/game/base/weapon.h | |
parent | 75274ebd6ba90784f5aa837b7e5ea97fc6bfb720 (diff) |
Added func_drop, added spacemine template.
Diffstat (limited to 'src/game/base/weapon.h')
-rw-r--r-- | src/game/base/weapon.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |