Mochu Yao explorer game

Dependencies:   mbed

Revision:
14:5e73a6e34c17
Parent:
13:30330d61f09c
Child:
17:1b4ecc01b79f
--- a/explorer/explorer.h	Tue Apr 28 11:51:39 2020 +0000
+++ b/explorer/explorer.h	Tue Apr 28 11:55:05 2020 +0000
@@ -1,3 +1,17 @@
+#ifndef EXPLORER_H
+#define EXPLORER_H
+
+
+#include "mbed.h"
+#include "Gamepad.h"
+#include "surface.h"
+//use the enum to define the value we need for the explorer
+enum Explorer_sprite {Move_right,Move_left,Stand_left, Stand_right};
+//we have four sprite form so we can define the sprite on the screen by using these enum
+//the explorer's direction
+enum Player_direction {right,left};
+
+/** Explorer Class
 /** explorer 
 * @the explorer file has three functions
   1 the movement of a explorer to jump and move in left or right direction
@@ -5,11 +19,7 @@
   3 reset the game
 * @date April 15th 2020
 * @author Yaomochu
-*/
-#ifndef EXPLORER_H
-#define EXPLORER_H
 
-/** Explorer Class
 @code
 
 #include "mbed.h"
@@ -66,15 +76,6 @@
 @endcode
 */
 
-#include "mbed.h"
-#include "Gamepad.h"
-#include "surface.h"
-//use the enum to define the value we need for the explorer
-enum Explorer_sprite {Move_right,Move_left,Stand_left, Stand_right};
-//we have four sprite form so we can define the sprite on the screen by using these enum
-//the explorer's direction
-enum Player_direction {right,left};
-
 class Explorer {
  public:
  Explorer();