class for obstacles in Car_race game

Committer:
fy14aaz
Date:
Tue Mar 14 10:13:40 2017 +0000
Revision:
1:a735e7396af4
Parent:
0:f8968ec0ec1b
Child:
8:c8007ccac5c0
successfully managed to shift the screen. Need now to make the interaction conditions of objects and extras

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fy14aaz 0:f8968ec0ec1b 1 #ifndef OBSTACLES_H
fy14aaz 0:f8968ec0ec1b 2 #define OBSTACLES_H
fy14aaz 0:f8968ec0ec1b 3
fy14aaz 0:f8968ec0ec1b 4 #include "mbed.h"
fy14aaz 0:f8968ec0ec1b 5 #include "N5110.h"
fy14aaz 0:f8968ec0ec1b 6 #include "Gamepad.h"
fy14aaz 0:f8968ec0ec1b 7
fy14aaz 0:f8968ec0ec1b 8 class Obstacles
fy14aaz 0:f8968ec0ec1b 9
fy14aaz 0:f8968ec0ec1b 10 {
fy14aaz 0:f8968ec0ec1b 11
fy14aaz 0:f8968ec0ec1b 12 public:
fy14aaz 0:f8968ec0ec1b 13
fy14aaz 0:f8968ec0ec1b 14 Obstacles();
fy14aaz 0:f8968ec0ec1b 15 ~Obstacles();
fy14aaz 0:f8968ec0ec1b 16
fy14aaz 0:f8968ec0ec1b 17 void init(int seed);
fy14aaz 1:a735e7396af4 18 void draw(N5110 &lcd,int seed);
fy14aaz 1:a735e7396af4 19 void update(N5110 &lcd);
fy14aaz 0:f8968ec0ec1b 20
fy14aaz 0:f8968ec0ec1b 21 private:
fy14aaz 0:f8968ec0ec1b 22
fy14aaz 1:a735e7396af4 23
fy14aaz 0:f8968ec0ec1b 24 int _Obstacle_x;
fy14aaz 0:f8968ec0ec1b 25 };
fy14aaz 0:f8968ec0ec1b 26
fy14aaz 0:f8968ec0ec1b 27 #endif