From f416e6b792e5dda143f60b7a2724db6b3ec33d75 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 28 Dec 2012 22:55:35 +0000 Subject: Support for rendering globes with rings, removed hardcoded 'corona' prefix for corona textures, added support for projectile fire sounds. --- src/game/base/weapon.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/game/base/weapon.h') 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 -- cgit v1.2.3