class for bullet in Car_race game
Bullet.h
- Committer:
- fy14aaz
- Date:
- 2017-04-15
- Revision:
- 6:581257752de1
- Parent:
- 5:fd945bf405dc
- Child:
- 8:89a98a3d7233
File content as of revision 6:581257752de1:
#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 clearBullet(N5110 &lcd); void update(N5110 &lcd,int _bulletDirection); // void accident(N5110 &lcd); private: Vector2D _CarHead; int _bullet_x; int _bullet_y; int _speed; }; #endif