ELEC2645 (2019/20)
/
ELEC2645_Project_el18jb
test 1 doc
Platform/Platform.h
- Committer:
- joebarhouch
- Date:
- 2020-05-27
- Revision:
- 15:9ea5269b4cd4
- Parent:
- 7:530ca713d2b2
File content as of revision 15:9ea5269b4cd4:
#ifndef PLATFORM_H #define PLATFORM_H #include "mbed.h" #include "N5110.h" #include <vector> struct Vector4 { int x; /**< float for x value */ int y; /**< float for y value */ int width; int height; }; class Platform { public: Platform(int x,int y,int w,int h); ~Platform(); void draw(N5110 &lcd); Vector4 get_pos(); int x; int y; int w; int h; private: int _x; int _y; int _width; int _height; }; #endif