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