class for obstacles in Car_race game
Obstacles.h
- Committer:
- fy14aaz
- Date:
- 2017-05-02
- Revision:
- 10:515df7535b2f
- Parent:
- 9:d5f90988545e
- Child:
- 11:c0922d4fda7b
File content as of revision 10:515df7535b2f:
#ifndef OBSTACLES_H #define OBSTACLES_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Obstacles { public: Obstacles(); ~Obstacles(); void init(int seed); void draw(N5110 &lcd,int seed); void update(N5110 &lcd); void addScore(N5110 &lcd); void updateScore(); int getScore(); int getTotalScore(); private: int _Obstacle_x; int _score; int _totalscore; }; #endif