src/Network/Client.hh
changeset 296 4d3ebaa29430
parent 294 fd58e7d01bec
child 302 e734d8e9bbb5
--- a/src/Network/Client.hh	Mon Dec 08 16:46:48 2008 +0000
+++ b/src/Network/Client.hh	Mon Dec 08 17:24:40 2008 +0000
@@ -233,12 +233,23 @@
          * so that we can remove the ground reliably
          */
         virtual void onDestroy (Vector position, bool removeGround);
+        
+        /**
+         * Overrides Projectile::onHitPlayer to ignore this, as we must wait for the server to tell us if it really did
+         * happen.
+         */
+        virtual void onHitPlayer (Player *player, Health damage);
 
     private:
         /**
          * NETMSG_PROJECTILE_DESTROY -> Projectile::onDestory
          */
         void on_destroy (NetworkPacketInput &pkt);
+
+        /**
+         * NETMSG_PROJECTILE_HIT_PLAYER -> Projectile::onHitPlayer
+         */
+        void on_hit_player (NetworkPacketInput &pkt);
 };
 
 #endif