class for bullet in Car_race game
Diff: Bullet.h
- Revision:
- 11:61bbec4ede2c
- Parent:
- 8:89a98a3d7233
- Child:
- 13:dd1ccafe3972
--- a/Bullet.h Fri Apr 21 21:45:54 2017 +0000 +++ b/Bullet.h Mon May 01 22:27:40 2017 +0000 @@ -12,16 +12,15 @@ public: Bullet(); ~Bullet(); - void init(Vector2D _CarHead); + void init(Vector2D CarHead); void draw(N5110 &lcd); + void update(N5110 &lcd,int bulletDirection); void clearBullet(N5110 &lcd); - void update(N5110 &lcd,int _bulletDirection); void destroyObstacles(N5110 &lcd); // void accident(N5110 &lcd); private: - Vector2D _CarHead; int _bullet_x; int _bullet_y; int _speed;