Zeyu Feng 201377605

Dependencies:   mbed

On Minerva

Revision:
19:5083339b55e8
Parent:
17:ba4d9cd1e347
Child:
20:a36ab1560e73
--- a/Interface/Interface.h	Thu May 21 15:20:33 2020 +0000
+++ b/Interface/Interface.h	Thu May 21 17:07:46 2020 +0000
@@ -33,13 +33,13 @@
     void Welcome(N5110 &lcd,Gamepad &pad);
         
     /** set an option menu*/
-    int menu(N5110 &lcd,Gamepad &pad,int option_flag);
+    void menu(N5110 &lcd,Gamepad &pad);
     
     /** set an user-defined menu*/
-    int undefined_rate(N5110 &lcd,Gamepad &pad,int option_flag);
+    void undefined_rate(N5110 &lcd,Gamepad &pad);
     
     /** set an user-defined menu*/
-    int undefined_max(N5110 &lcd,Gamepad &pad,int option_flag);
+    void undefined_max(N5110 &lcd,Gamepad &pad);
         
     /** if health of people is zero, game over~*/
     void game_over(N5110 &lcd,Gamepad &pad);
@@ -48,7 +48,7 @@
     int check_pause(N5110 &lcd,Gamepad &pad,int paused_flag,float increment,int max);
         
     /** count down and draw in lcd*/
-    int count_down(N5110 &lcd,int count_flag);
+    void count_down(N5110 &lcd);
     
     /** Exit interface*/
     void exit(N5110 &lcd,Gamepad &pad);
@@ -59,22 +59,33 @@
     /** make the game simple*/
     void simple_game(N5110 &lcd,Gamepad &pad);
     
+    void set_count_down(int count_down);
+    
+    int get_menu_flag();
+    
+    int get_rate_flag();
+    
+    int get_max_flag();
+    
     int get_sim_flag();
     
     int get_gameover_flag();
     
     int get_victory_flag();
-        
+
 private:
     
     Sound _sound;
     Timer _timer;
     Direction _d;
+    int _menu_flag;
+    int _defined_rate_flag;
+    int _defined_max_flag;
     int _sim_flag;
     int _gameover_flag;
+    int _count_down;
     int _victory_flag;
     char _buffer1[14];
-    char _buffer2[14];
-        
+    char _buffer2[14];  
 };
 #endif
\ No newline at end of file