X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fspecial%2Fmoving_object.h;h=0103878293caa957eafb2d34450f085e097999b7;hb=8e0bad9f82ccbc811a18edd7ce6c6f69c5bca082;hp=d04c3ef3cc8fa557f0af8e19bf46eb7adb1ff831;hpb=742f64dff3466f2b3ebab1851ee2993b4ac3072e;p=supertux.git diff --git a/lib/special/moving_object.h b/lib/special/moving_object.h index d04c3ef3c..010387829 100644 --- a/lib/special/moving_object.h +++ b/lib/special/moving_object.h @@ -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;