Made invincibility sparkle a particle effect
[supertux.git] / src / moving_object.hpp
index cba449c..e6ae483 100644 (file)
@@ -117,6 +117,17 @@ public:
   }
 
   /**
+   * sets the moving object's bbox to a specific width. Be careful when
+   * using this function. There are no collision detection checks performed
+   * here so bad things could happen.
+   */
+  virtual void set_width(float w)
+  {
+    dest.set_width(w);
+    bbox.set_width(w);
+  }
+
+  /**
    * sets the moving object's bbox to a specific size. Be careful when
    * using this function. There are no collision detection checks performed
    * here so bad things could happen.