Daniel Nguyen
Dependencies: 4DGL-uLCD-SE mbed
Diff: Bullet.h
- Revision:
- 0:7d7f6032c719
diff -r 000000000000 -r 7d7f6032c719 Bullet.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bullet.h Thu Nov 02 19:15:07 2017 +0000 @@ -0,0 +1,23 @@ +#ifndef BULLET_H_ +#define BULLET_H_ +#include <iostream> +#include "uLCD_4DGL.h" + +extern uLCD_4DGL uLCD; +class Bullet +{ + private: + int pos_x; + int pos_y; + + public: + + Bullet(); + int getPosX(); + void setPosX(int shipX); + int getPosY(); + void setPosY(int shipY); + void draw(); + void collide(); +}; +#endif \ No newline at end of file