Yang Meng / Mbed 2 deprecated 207_program

Dependencies:   mbed N5110

Revision:
1:85ab0d979b57
Parent:
0:97418ec4c37d
Child:
4:ed68b20e2075
diff -r 97418ec4c37d -r 85ab0d979b57 Cylinder/Cylinder.h
--- a/Cylinder/Cylinder.h	Tue Apr 23 16:04:18 2019 +0000
+++ b/Cylinder/Cylinder.h	Sat May 04 08:53:09 2019 +0000
@@ -1,9 +1,7 @@
 #ifndef CYLINDER_H
 #define CYLINDER_H
 
-#include "mbed.h"
-#include "N5110.h"
-#include "Gamepad.h"
+#include "Bird.h"
 
 struct Data {
     int x1;
@@ -20,6 +18,7 @@
 class Cylinder {
     public:
     void init();
+    void select(N5110 &lcd, Gamepad &pad);
     void draw(N5110 &lcd);
     void update();
     void check();
@@ -46,8 +45,12 @@
     int _gap3;
     int _score;
     int _yourscore;
+    int _state;
+    int _speed;
+    Bird _bird;
     Data _data;
 
+
 };
 
 #endif