test 1 doc

Dependencies:   mbed Gamepad2

Committer:
joebarhouch
Date:
Wed May 27 07:52:55 2020 +0000
Revision:
15:9ea5269b4cd4
Parent:
7:530ca713d2b2
el18jb; VOLATILE!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joebarhouch 5:928c2eee4109 1 #ifndef PLATFORM_H
joebarhouch 5:928c2eee4109 2 #define PLATFORM_H
joebarhouch 5:928c2eee4109 3
joebarhouch 5:928c2eee4109 4 #include "mbed.h"
joebarhouch 5:928c2eee4109 5 #include "N5110.h"
joebarhouch 6:00d20886e4f8 6 #include <vector>
joebarhouch 5:928c2eee4109 7
joebarhouch 6:00d20886e4f8 8 struct Vector4 {
joebarhouch 6:00d20886e4f8 9 int x; /**< float for x value */
joebarhouch 6:00d20886e4f8 10 int y; /**< float for y value */
joebarhouch 6:00d20886e4f8 11 int width;
joebarhouch 6:00d20886e4f8 12 int height;
joebarhouch 6:00d20886e4f8 13 };
joebarhouch 5:928c2eee4109 14
joebarhouch 5:928c2eee4109 15 class Platform
joebarhouch 5:928c2eee4109 16 {
joebarhouch 5:928c2eee4109 17 public:
joebarhouch 6:00d20886e4f8 18 Platform(int x,int y,int w,int h);
joebarhouch 5:928c2eee4109 19 ~Platform();
joebarhouch 7:530ca713d2b2 20 void draw(N5110 &lcd);
joebarhouch 6:00d20886e4f8 21 Vector4 get_pos();
joebarhouch 6:00d20886e4f8 22
joebarhouch 5:928c2eee4109 23 int x;
joebarhouch 5:928c2eee4109 24 int y;
joebarhouch 6:00d20886e4f8 25 int w;
joebarhouch 6:00d20886e4f8 26 int h;
joebarhouch 5:928c2eee4109 27
joebarhouch 5:928c2eee4109 28 private:
joebarhouch 5:928c2eee4109 29 int _x;
joebarhouch 5:928c2eee4109 30 int _y;
joebarhouch 5:928c2eee4109 31 int _width;
joebarhouch 5:928c2eee4109 32 int _height;
joebarhouch 6:00d20886e4f8 33
joebarhouch 5:928c2eee4109 34 };
joebarhouch 5:928c2eee4109 35
joebarhouch 5:928c2eee4109 36
joebarhouch 7:530ca713d2b2 37
joebarhouch 5:928c2eee4109 38 #endif