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.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/game/base/weapon.h b/src/game/base/weapon.h
index 746a9ad..31ce5de 100644
--- a/src/game/base/weapon.h
+++ b/src/game/base/weapon.h
@@ -75,6 +75,14 @@ public:
{
return weapon_projectile_modelname;
}
+
+ /**
+ * @brief name of the sound used when a projectile is fired by this weapon
+ * */
+ inline const std::string & projectile_soundname() const
+ {
+ return weapon_projectile_soundname;
+ }
/* --- mutators -------------------------------------------- */
@@ -117,12 +125,20 @@ public:
}
/**
- * @brief set_projectile model name
+ * @brief set projectile model name
* */
inline void set_projectile_modelname(const std::string & projectile_modelname)
{
weapon_projectile_modelname.assign(projectile_modelname);
}
+
+ /**
+ * @brief set the projectile sound name
+ * */
+ inline void set_projectile_soundname(const std::string soundname)
+ {
+ weapon_projectile_soundname.assign(soundname);
+ }
/**
* @brief generate specifications info.
@@ -161,6 +177,8 @@ private:
float weapon_damage;
std::string weapon_projectile_modelname;
+
+ std::string weapon_projectile_soundname;
};
} // namespace game