Mochu Yao explorer game

Dependencies:   mbed

Revision:
11:6740108a0825
Parent:
10:559487aac60e
Child:
21:349c70c8a7de
--- a/Surface/surface.h	Mon Apr 27 14:29:06 2020 +0000
+++ b/Surface/surface.h	Mon Apr 27 14:37:34 2020 +0000
@@ -1,3 +1,7 @@
+#ifndef LINE_H
+#define LINE_H
+
+#include "mbed.h"
 /** surface 
 * @the surface file has three functions
 //1 the leftside of the line move toward right then the rightside should also move to the right to keep the length
@@ -7,8 +11,15 @@
 * @author Yaomochu
 */
 
+struct Line {
+ int length;
+ int left;
+ int right;
+ int y;
+ };
+ //the line structer will have four main elements 
+ 
 /** Surface Class
-
 @code
 
 #include "mbed.h"
@@ -61,18 +72,7 @@
 @endcode
 */
 
-#ifndef LINE_H
-#define LINE_H
-
-#include "mbed.h"
 //the surface function is to creat the surface for player to stand on and move
-struct Line {
- int length;
- int left;
- int right;
- int y;
- };
- //the line structer will have four main elements 
  class Surface
 {
 public: