Rally X
ELEN3009 Project by Justin Wernick and David Schneider
source/logic/CollisionDetector.h
Go to the documentation of this file.
00001 #ifndef COLLISIONDETECTOR_H
00002 #define COLLISIONDETECTOR_H
00003 
00004 #include <list>
00005 using namespace std;
00006 
00007 #include "../logic/PlayerCar.h"
00008 #include "../logic/EnemyCar.h"
00009 #include "../logic/Checkpoint.h"
00010 #include "../logic/Rock.h"
00011 #include "../logic/Smokescreen.h"
00012 
00022 class CollisionDetector
00023 {
00024     public:
00037         void checkCollisions(list<PlayerCar>& players, list<EnemyCar>& enemies, list<Checkpoint>& checkpoints, list<Rock>& rocks, list<Smokescreen>& smokescreens);
00038 
00039         //assignment and copy constructors have been left with the compiler generated versions
00040 
00041     private:
00048         void collision(PlayerCar& player, Checkpoint& checkpoint);
00049 
00056         void collision(PlayerCar& player, EnemyCar& enemy);
00057 
00064         void collision(PlayerCar& player, Rock& rock);
00065 
00072         void collision(EnemyCar& enemy, Smokescreen& smokescreen);
00073 };
00074 
00075 #endif // COLLISIONDETECTOR_H
 All Classes Files Functions Variables Typedefs Enumerations Enumerator