Zeyu Feng 201377605

Dependencies:   mbed

On Minerva

Revision:
13:eb60628db8bf
Parent:
12:009895f6b6e4
Child:
14:42b8a91e463c
--- a/Interface/Interface.h	Mon May 11 14:43:16 2020 +0000
+++ b/Interface/Interface.h	Thu May 14 16:45:20 2020 +0000
@@ -6,10 +6,11 @@
 #include "N5110.h"
 
 /** Interface class
-    @welcome,meun,pause interface
-    @author Zeyu Feng
-    @10 MAY 2020
-   */
+*@welcome,meun,pause interface
+*@author Zeyu Feng
+*@10 MAY 2020
+*/
+/**struct of fsm for menu option*/
 struct State{
     int option;
     int next_state[2];
@@ -19,34 +20,36 @@
     
 public:
     
-    Interface();//Constructor
-        
-    ~Interface();//Destructor
+    /**Constructor*/
+    Interface();
+    
+    /**Destructor*/
+    ~Interface();
         
     void init();
         
-        //set a welcome interface for my game
+    /** set a welcome interface for my game*/
     void Welcome(N5110 &lcd,Gamepad &pad);
         
-        //set an option menu
+    /** set an option menu*/
     int menu(N5110 &lcd,Gamepad &pad,int option_flag);
         
-        //if health of people is zero, game over~
+    /** if health of people is zero, game over~*/
     void game_over(N5110 &lcd,Gamepad &pad);
         
-        //check pause for start botton
+    /** check pause for start botton*/
     int check_pause(N5110 &lcd,Gamepad &pad,int paused_flag);
         
-        //count down and draw in lcd
+    /** count down and draw in lcd*/
     int count_down(N5110 &lcd,int count_flag);
     
-        //Exit interface
+    /** Exit interface*/
     void exit(N5110 &lcd,Gamepad &pad);
         
-        //Victory interface
+    /** Victory interface*/
     void victory(N5110 &lcd,Gamepad &pad);
     
-        //make the game simple
+    /** make the game simple*/
     void simple_game(N5110 &lcd,Gamepad &pad);
     
     int get_sim_flag();