src/Projectile.hh
changeset 224 e6faefba2ec1
parent 223 2fcaf54ed37b
child 233 ff4ecea83cf5
--- a/src/Projectile.hh	Sat Dec 06 18:49:51 2008 +0000
+++ b/src/Projectile.hh	Sat Dec 06 19:14:58 2008 +0000
@@ -24,7 +24,21 @@
     virtual void draw (CL_GraphicContext *gc) const;
 
 protected:
+    /*
+     * Removes ground at given position if applicable, and destroys this PhysicsObject.
+     *
+     * This is overriden by Network.
+     */
+    virtual void onDestroy (Vector position, bool removeGround);
+    
+    /*
+     * Call onDestroy, removingGround
+     */
     virtual void onCollision (void);
+
+    /*
+     * If we have expired, call onDestory without removingGround
+     */
     virtual void tick (TimeMS dt);
 };