Target Library
Dependents: GameProject_Prototype
Diff: Target.h
- Revision:
- 10:45a0af3e607c
- Child:
- 11:5b2be6934e1b
diff -r 002ea306683d -r 45a0af3e607c Target.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Target.h Tue May 02 15:47:15 2017 +0000 @@ -0,0 +1,28 @@ +#ifndef TARGET_H +#define TARGET_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + +class Target +{ + public: + Target(); + ~Target(); + void init(); + void draw(N5110 &lcd); + void update(); + Vector2D get_pos(); + void set_velocity(Vector2D v); + Vector2D get_velocity(); + + private: + int n; + int _x; + int _y; + Vector2D _velocity; + +}; +#endif \ No newline at end of file