class for bullet in Car_race game

Revision:
1:6bd0cbdf15f7
Parent:
0:aca013532788
Child:
3:7015c77e39a2
diff -r aca013532788 -r 6bd0cbdf15f7 Bullet.h
--- a/Bullet.h	Thu Mar 30 22:30:02 2017 +0000
+++ b/Bullet.h	Fri Mar 31 22:25:35 2017 +0000
@@ -0,0 +1,28 @@
+#ifndef BULLET_H
+#define BULLET_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+class Bullet
+{
+
+public:
+    Bullet();
+    ~Bullet();
+    void init(int car_x,int car_y);
+    void draw(N5110 &lcd);
+ //   void clearCar(N5110 &lcd);
+  //  void update(Direction d,float mag);
+  //  void accident(N5110 &lcd);
+
+private:
+
+    int _bullet_x;
+    int _bullet_y;
+    int _speed;
+    
+};
+#endif
\ No newline at end of file