1 #ifndef __MOVING_OBJECT_H__
2 #define __MOVING_OBJECT_H__
5 #include "game_object.h"
7 //#include "rectangle.h"
10 * Base class for all dynamic/moving game objects. This class contains things
11 * for handling the bounding boxes and collision feedback.
13 class MovingObject : public _GameObject
17 virtual ~MovingObject();
19 /** this function is called when the object collided with any other object
21 virtual void collision(const MovingObject& other_object,
22 int collision_type) = 0;
28 #if 0 // this will be used in my collision detection rewrite later
29 /// the current position of the object
31 /// the position we want to move until next frame
33 /// the bounding box relative to the current position
34 Rectangle bounding_box;