updating Nolok contrib templates
[supertux.git] / lib / special / moving_object.h
index d04c3ef..0103878 100644 (file)
@@ -25,7 +25,9 @@
 #include "math/vector.h"
 #include "math/rectangle.h"
 
+class FlipLevelTransformer;
 class Sector;
+class CollisionGrid;
 
 namespace SuperTux
   {
@@ -61,6 +63,15 @@ 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;