bird

Dependencies:   mbed

Revision:
6:9bf0273ee25f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/structure_2/structure2.h	Mon May 06 05:02:25 2019 +0000
@@ -0,0 +1,56 @@
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+/**
+*@brief Data struct includes the structure position.
+*/
+
+struct Data2{
+    int mm; /**<int the position of the first structure */
+    int nn; /**<int the position of the first channel */
+    int qq; /**<int the position of the second structure */
+    int oo; /**<int the position of the second channel */
+    int pp; /**<int the position of the third structure */
+    int ee; /**<int the position of the third channel */
+    int tt;/**<int the position of the third channel */
+    };
+/** structure2 Class
+*@brief Data used to make the structure
+*@author Zhou Yongzhi
+*@date May 2019
+*/   
+class structure2
+{
+public:
+     /**
+   *@brief initialise the parameters
+   *@param size,speed
+   */
+   void init(int size,int speed);
+   /**
+   *@brief initialise the parameters
+   *@param lcd
+   *@details The function in N5110 is used
+   */
+   void draw(N5110 &lcd);
+   /**
+   *@brief initialise the parameters
+   */
+   void init();
+        /**
+   *@brief The data which are sent to main.cpp
+   */
+   Data2 get_data2();
+
+    
+private:
+  int _mm; //障碍物左上角的点的横坐标
+  int _nn; // 障碍物间隔左上角点的纵坐标
+  int _qq; //the second
+  int _oo; // the third
+  int _pp; // the second  heng zuobiao
+  int _ee; // the third  heng zuobiao
+  int _tt; // the score
+  Data2 _data2;
+};
\ No newline at end of file