Target Library
Dependents: GameProject_Prototype
Target.h
- Committer:
- ll14c4p
- Date:
- 2017-05-02
- Revision:
- 11:5b2be6934e1b
- Parent:
- 10:45a0af3e607c
- Child:
- 13:828ede9cf8a5
File content as of revision 11:5b2be6934e1b:
#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(); void set_pos(Vector2D p); private: int n; int _x; int _y; Vector2D _velocity; }; #endif