Rally X
ELEN3009 Project by Justin Wernick and David Schneider
source/logic/Car.h
Go to the documentation of this file.
00001 #ifndef CAR_H
00002 #define CAR_H
00003 
00004 #include <cmath>
00005 using namespace std;
00006 
00007 #include "../presentation/BitmapStore.h"
00008 #include "../logic/GameObject.h"
00009 #include "../logic/MazeMath.h"
00010 
00020 class Car : public GameObject
00021 {
00022     public:
00031         Car(double x, double y, BitmapStore::Image image, Maze::Direction facing);
00032 
00033         //assignment and copy constructors have been left with the compiler generated versions
00034 
00040         double speed() const;
00041 
00042     protected:
00051         void move(const Maze& maze);
00052 
00053         double _speed; 
00054         static const double _baseSpeed = 0.1; 
00055 };
00056 
00057 #endif // CAR_H
 All Classes Files Functions Variables Typedefs Enumerations Enumerator