Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-14 10:25:33 +0000
committerStijn Buys <ingar@osirion.org>2012-10-14 10:25:33 +0000
commit4798ff98e23a8f56622b8ca448b997b84ecbd7d5 (patch)
treeeade67b796a595a3e4d127a1cd5ee937bf56f56f /src/game/base/weapon.h
parentfdd6655f2ce1fa5332c5e23f1a76e25e26733a61 (diff)
Add a stackable flag for weapons, load a default model for spacemines.
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