class for obstacles in Car_race game

Revision:
8:c8007ccac5c0
Parent:
1:a735e7396af4
Child:
9:d5f90988545e
--- a/Obstacles.h	Mon Apr 17 20:45:19 2017 +0000
+++ b/Obstacles.h	Wed Apr 19 20:55:18 2017 +0000
@@ -17,11 +17,16 @@
    void init(int seed);
    void draw(N5110 &lcd,int seed);
    void update(N5110 &lcd);
+   void addScore(N5110 &lcd);
+   void resetScore();
+   int getScore();
+   
     
   private:
    
    
    int _Obstacle_x;
+   int _score;
 };
 
 #endif
\ No newline at end of file