added a bell object which is a new better way to do reset points
[supertux.git] / lib / special / moving_object.h
index e1974d7..0103878 100644 (file)
@@ -25,7 +25,9 @@
 #include "math/vector.h"
 #include "math/rectangle.h"
 
+class FlipLevelTransformer;
 class Sector;
+class CollisionGrid;
 
 namespace SuperTux
   {
@@ -61,8 +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;
       
       /** The bounding box of the object (as used for collision detection, this
        * isn't necessarily the bounding box for graphics)