src/Projectile.hh
changeset 434 a8ba81432ddd
parent 417 c503e0c6a740
--- a/src/Projectile.hh	Mon Jan 26 23:39:08 2009 +0200
+++ b/src/Projectile.hh	Tue Jan 27 00:02:34 2009 +0200
@@ -52,17 +52,26 @@
      *
      * @return Damage inflicted by projectile.
      */
-    Health getDamage ();
+    Health getDamage (void);
 
     /**
      * Adds one kill to projectile owner.
      */
-    void addKillToOwner ();
+    void addKillToOwner (void);
 
     /**
      * Return the owner of the projectile.
      */
-    const Player* getOwner (); 
+    const Player* getOwner (void) const {
+        return player;
+    }
+
+    /**
+     * Return the weapon that fired this Projectile
+     */
+    const Weapon* getWeapon (void) const {
+        return weapon;
+    }
 
 protected:
     /**