class for bullet in Car_race game

Revision:
4:a32443aee8f8
Parent:
3:7015c77e39a2
Child:
5:fd945bf405dc
--- a/Bullet.h	Fri Apr 07 10:56:15 2017 +0000
+++ b/Bullet.h	Tue Apr 11 22:37:46 2017 +0000
@@ -12,14 +12,15 @@
 public:
     Bullet();
     ~Bullet();
-    void init(int car_x,int car_y);
+    void init(Vector2D _CarHead);
     void draw(N5110 &lcd);
  //   void clearCar(N5110 &lcd);
     void update();
   //  void accident(N5110 &lcd);
 
 private:
-
+    
+    Vector2D _CarHead;
     int _bullet_x;
     int _bullet_y;
     int _speed;