class for bullet in Car_race game
Bullet.h
- Committer:
- fy14aaz
- Date:
- 2017-04-11
- Revision:
- 4:a32443aee8f8
- Parent:
- 3:7015c77e39a2
- Child:
- 5:fd945bf405dc
File content as of revision 4:a32443aee8f8:
#ifndef BULLET_H #define BULLET_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Bullet { public: Bullet(); ~Bullet(); void init(Vector2D _CarHead); void draw(N5110 &lcd); // void clearCar(N5110 &lcd); void update(); // void accident(N5110 &lcd); private: Vector2D _CarHead; int _bullet_x; int _bullet_y; int _speed; }; #endif