Nemesis game, stats
Diff: Bullet.h
- Revision:
- 6:fb678d095e0a
- Parent:
- 5:b822aaa6200d
diff -r b822aaa6200d -r fb678d095e0a Bullet.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bullet.h Sun Apr 02 17:47:38 2017 +0000 @@ -0,0 +1,31 @@ +#ifndef BULLET_H +#define BULLET_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Friendly.h" + +class Bullet +{ + +public: + Bullet(); + ~Bullet(); + void init(N5110 &lcd, Gamepad &pad, int speed); + void draw(N5110 &lcd); + void update(); + + void set_velocity(Vector2D v); + Vector2D get_velocity(); + Vector2D get_pos(); + void set_pos(Vector2D p); + +private: + Friendly _friendly; + Vector2D _velocity; + int _x; + int _y; +}; + +#endif \ No newline at end of file