Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Floors/Floors.h
- Revision:
- 1:0001cb3eb053
- Child:
- 2:360a6c301a4e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Floors/Floors.h Tue Apr 09 20:15:33 2019 +0000 @@ -0,0 +1,26 @@ +#ifndef FLOORS_H +#define FLOORS_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +class Floors{ +public: + Floors(); + ~Floors(); + void init(int height, int width); + void draw(N5110 &lcd); + Vector2D get_velocity(); //accesors + Vector2D get_pos(); + void set_pos(Vector2D p); // mutators + void set_velocity (Vector2D v); + +private: + int _height; + int _width; + int _x; + int _y; + Vector2D _velocity; + +}; +#endif \ No newline at end of file