class for obstacles in Car_race game

Revision:
9:d5f90988545e
Parent:
8:c8007ccac5c0
Child:
10:515df7535b2f
--- a/Obstacles.h	Wed Apr 19 20:55:18 2017 +0000
+++ b/Obstacles.h	Fri Apr 21 21:45:49 2017 +0000
@@ -18,15 +18,16 @@
    void draw(N5110 &lcd,int seed);
    void update(N5110 &lcd);
    void addScore(N5110 &lcd);
-   void resetScore();
+   void updateScore(int Event);
    int getScore();
-   
+   int getTotalScore();
     
   private:
    
    
    int _Obstacle_x;
    int _score;
+   int _totalscore;
 };
 
 #endif
\ No newline at end of file