sauvegarde 4
[PACMAN.git] / engines / engine_physics.h
blobb398edcc077ad5c48104b6918574311194e972cb
1 #ifndef ENGINE_PHYSICS
2 #define ENGINE_PHYSICS
4 /*!
5 * \file engine_physics.h
6 * \brief Module in charge of computing the physic of the game
7 * \author Guélaud Lepetit
8 */
10 #include <cmath>
11 #include "box.h"
12 #include "entity.h"
14 /*!
15 * \namespace engine
17 * Namespace containing the "game engine" side of the project as a library
19 namespace engine
21 /*!
22 * \class Engine_physics
23 * \brief The module on charge of calculating the physic of the game
25 * In particular, calculation of collision between 2 game objects
26 * And moving a game object
29 class Engine_physics
31 public:
32 /*!
33 * \brief Tests if two game objects are colliding
34 * \param e1 First game object
35 * \param e2 Second game object
36 * \return true if and only if there both have a collider and are in contact
38 static bool is_collision(Entity &e1, Entity &e2);
43 #endif // ENGINE_PHYSICS