Shell code for the Tanks game
Dependencies: 4DGL-uLCD-SE EthernetInterface Game_Synchronizer MMA8452 SDFileSystem mbed-rtos mbed wave_player
Diff: Bullet/bullet.h
- Revision:
- 17:7bc7127782e4
- Parent:
- 15:4b27a3a95772
- Child:
- 21:edfeb289b21f
diff -r b73f0842d3cd -r 7bc7127782e4 Bullet/bullet.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bullet/bullet.h Wed Oct 28 04:30:22 2015 +0000 @@ -0,0 +1,25 @@ +#ifndef BULLET_H__ +#define BULLET_H__ + +#include "tank.h" + +class Bullet{ + public: + int x0; + int y0; + float vx0; + float vy0; + int x; + int y; + int speed; + float time; + bool in_flight; + + Tank* tank; + + Bullet(Tank* t); + void shoot(void); + int time_step(float dt); +}; + +#endif \ No newline at end of file