#include <stdint.h>
-#include "math/rect.hpp"
+#include "math/rectf.hpp"
#include "supertux/collision_hit.hpp"
#include "supertux/game_object.hpp"
}
/** returns the bounding box of the Object */
- const Rect& get_bbox() const
+ const Rectf& get_bbox() const
{
return bbox;
}
friend class CollisionGrid;
friend class Platform;
- void set_group(CollisionGroup group)
+ void set_group(CollisionGroup group_)
{
- this->group = group;
+ this->group = group_;
}
/** The bounding box of the object (as used for collision detection,
this isn't necessarily the bounding box for graphics) */
- Rect bbox;
+ Rectf bbox;
/** The movement that will happen till next frame */
Vector movement;
private:
/** this is only here for internal collision detection use (don't touch this
from outside collision detection code)
-
+
This field holds the currently anticipated destination of the object
during collision detection */
- Rect dest;
+ Rectf dest;
};
#endif