Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/weapon.h')
-rw-r--r--src/game/base/weapon.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/base/weapon.h b/src/game/base/weapon.h
index 4e99493..b263266 100644
--- a/src/game/base/weapon.h
+++ b/src/game/base/weapon.h
@@ -17,16 +17,22 @@ public:
Weapon();
~Weapon();
+ inline bool stackable() const {
+ return weapon_stackable;
+ }
+
inline int level() const {
return weapon_level;
}
+ inline void set_stackable(bool stackable) {
+ weapon_stackable = stackable;
+ }
+
inline void set_level(const int level) {
weapon_level = level;
}
-
-
/* --- static registry functions ---------------------------------- */
static Weapon *find(const std::string & label);
@@ -45,6 +51,8 @@ private:
static core::InfoType *weapon_infotype;
int weapon_level;
+
+ bool weapon_stackable;
};
} // namespace game