diff options
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 |