[Super-tux-commit] supertux/lib/special moving_object.h,1.7,1.8
Brought to you by:
wkendrick
From: Matze B. <mat...@us...> - 2005-03-30 01:52:53
|
Update of /cvsroot/super-tux/supertux/lib/special In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13952/lib/special Modified Files: moving_object.h Log Message: added a bell object which is a new better way to do reset points Index: moving_object.h =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/special/moving_object.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- moving_object.h 25 Mar 2005 20:39:48 -0000 1.7 +++ moving_object.h 30 Mar 2005 01:52:12 -0000 1.8 @@ -63,10 +63,18 @@ 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) |