Yuheng Huo / Mbed 2 deprecated hyh_copy

Dependencies:   mbed FXOS8700CQ

Revision:
3:31ff7b3e2005
Parent:
2:cc9d8ec2e1f4
--- a/Engine/engine.h	Fri May 15 17:44:25 2020 +0000
+++ b/Engine/engine.h	Fri May 15 20:32:27 2020 +0000
@@ -1,3 +1,8 @@
+/** My Life Class
+* @dudge the situation of the game 
+* @author Huo Yuheng
+* @date May, 2020
+*/
 #ifndef ENGINE_H
 #define ENGINE_H
 
@@ -7,7 +12,7 @@
 #include "N5110.h"
 #include "Gamepad.h"
 
-
+/** details of obscale */
 struct obs{
     int x;
     int y;
@@ -16,18 +21,17 @@
     int *data;
 };
 
-
+/** the situation of the player */
 enum events{
     DEAD,
-    FIRE,
-    ELMININATE,
     NONE,
 };
 class engine{
     public:
     void init();
-    events evet_check(chara &p, obs &b, Gamepad &pad);
-    void fire(int x,int y);
+    /** check situation */
+    events event_check(chara &p, obs &b, Gamepad &pad);
+    /** making random obscale */
     int randomobs();
 };
 #endif