class for bullet in Car_race game
Bullet.h
- Committer:
- fy14aaz
- Date:
- 2017-04-07
- Revision:
- 3:7015c77e39a2
- Parent:
- 1:6bd0cbdf15f7
- Child:
- 4:a32443aee8f8
File content as of revision 3:7015c77e39a2:
#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(); // void accident(N5110 &lcd); private: int _bullet_x; int _bullet_y; int _speed; }; #endif