--- a/src/Weapon.hh Tue Dec 09 00:45:41 2008 +0000
+++ b/src/Weapon.hh Tue Dec 09 00:58:49 2008 +0000
@@ -77,11 +77,16 @@
*/
float bounce;
+ /**
+ * Projectile mass
+ */
+ float mass;
+
public:
/**
* Create a weapon with the given parameters
*/
- Weapon (WeaponID id, TickCount expire, float velocity, float recoil, int damage, float explosionRadius, float radius, TimeMS reloadTime, std::string name, float bounce);
+ Weapon (WeaponID id, TickCount expire, float velocity, float recoil, int damage, float explosionRadius, float radius, TimeMS reloadTime, std::string name, float bounce, float mass);
/**
* Decrement the reload timer, if it's still going
@@ -105,6 +110,7 @@
float getRadius (void) const { return radius; }
TickCount getExpire (void) const { return expire; }
float getBounce (void) const { return bounce; }
+ float getMass (void) const { return mass; }
int getReloadTimer(void) const { return reloadTimer; }
int getReloadTime(void) const { return reloadTime; }