1#ifndef PHYSICS_H
2#define PHYSICS_H
3
4#include "GameObject.h"
5#include <list>
6
7
8class Physics
9{
10private:
11 double gravity;
12 list<GameObject*> objects;
13 list<GameObject*>::iterator i;
14public:
15 Physics(void);
16 void ApplyPhysics(GameObject*);
17 void UpdatePhysics(int);
18 bool RectangleIntersect(SDL_Rect, SDL_Rect);
19 Vector2X CheckCollisions(Vector2X, GameObject*);
20};
21
22#endif // PHYSICS_H
23