Yang Meng / Mbed 2 deprecated 207_program

Dependencies:   mbed N5110

Revision:
0:97418ec4c37d
Child:
1:85ab0d979b57
diff -r 000000000000 -r 97418ec4c37d Cylinder/Cylinder.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Cylinder/Cylinder.h	Tue Apr 23 16:04:18 2019 +0000
@@ -0,0 +1,55 @@
+#ifndef CYLINDER_H
+#define CYLINDER_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+struct Data {
+    int x1;
+    int x2;
+    int x3;
+    int height1;
+    int height2;
+    int height3;
+    int gap1;
+    int gap2;
+    int gap3;
+    };
+
+class Cylinder {
+    public:
+    void init();
+    void draw(N5110 &lcd);
+    void update();
+    void check();
+    void print_score(N5110 &lcd);
+    void print_yourscore(N5110 &lcd);
+    int get_highest_score(int high_score);
+    Data get_data();
+
+    
+    
+    
+    private:
+    int _a;
+    int _b;
+    int _c;
+    int _x1;
+    int _x2;
+    int _x3;
+    int _height1;
+    int _height2;
+    int _height3;
+    int _gap1;
+    int _gap2;
+    int _gap3;
+    int _score;
+    int _yourscore;
+    Data _data;
+
+};
+
+#endif
+    
+