added a bell object which is a new better way to do reset points
[supertux.git] / lib / special / moving_object.h
index 0ac6844..0103878 100644 (file)
@@ -63,10 +63,18 @@ namespace SuperTux
         return movement;
       }
 
+      /** places the moving object at a specific position. Be carefull when
+       * using this function. There are no collision detection checks performed
+       * here so bad things could happen.
+       */
+      virtual void set_pos(const Vector& pos)
+      {
+        bbox.set_pos(pos);
+      }
+
     protected:
       friend class Sector;
       friend class CollisionGrid;
-      friend class FlipLevelTransformer;
       
       /** The bounding box of the object (as used for collision detection, this
        * isn't necessarily the bounding box for graphics)