Yufan Zhong / Mbed 2 deprecated GOLD_MINER

Dependencies:   mbed

Revision:
7:5bb5cde8951a
Parent:
1:9c7bb3db32bc
Child:
8:c5969685cf02
--- a/MinerEngine/MinerEngine.h	Sat Apr 25 10:41:47 2020 +0000
+++ b/MinerEngine/MinerEngine.h	Sun Apr 26 07:30:22 2020 +0000
@@ -19,50 +19,61 @@
     MinerEngine();
     ~MinerEngine();
 
-    void init(int winch_width,int winch_height,int claw_size,int speed);
+    void init(int winch_width,int winch_height,int gold_num,int monster_speed);
+    void state_switch(Gamepad &pad, N5110 &lcd);
+    int get_select(Gamepad &pad);
+    void instruction(Gamepad &pad, N5110 &lcd);
+    void menu(Gamepad &pad, N5110 &lcd);
+    void options(Gamepad &pad, N5110 &lcd);
+    void game_run(Gamepad &pad, N5110 &lcd);
+    //void check_gold_collision(Gamepad &pad);
+    //void print_scores(N5110 &lcd);
+    void draw(N5110 &lcd);
     void read_input(Gamepad &pad);
     void update(Gamepad &pad);
-    void draw(N5110 &lcd);
+    //void check_monster_collision(Gamepad &pad);
+    //void check_claw_collision(Gamepad &pad);
+    void claw_down(Gamepad &pad);
     void welcome(Gamepad &pad, N5110 &lcd);
-    void MinerEngine::menu(Gamepad &pad, N5110 &lcd);
-    void MinerEngine::select(Gamepad &pad, N5110 &lcd);
-    int MinerEngine::get_select(Gamepad &pad);
-    void MinerEngine::setting(Gamepad &pad, N5110 &lcd);
-    int direction;
-    int game;
+    void game_over(Gamepad &pad, N5110 &lcd);
+    void play_music(Gamepad &pad);
+    void screen_rollup(Gamepad &pad, N5110 &lcd);
+    void loading(Gamepad &pad, N5110 &lcd);
+    void fix_x();
+   
     
 private:
-
-    void check_wall_collision(Gamepad &pad);
-    void check_winch_collisions(Gamepad &pad);
-    void check_goal(Gamepad &pad);
+    void check_gold_collision(Gamepad &pad);
+    void check_monster_collision(Gamepad &pad);
+    void check_claw_collision(Gamepad &pad);
+    void check_gold_reload();
     void print_scores(N5110 &lcd);
+    
+//////
   
     Winch _winch;
     Claw _claw;
     Gold _gold;
     Monster _monster;
     
+    //////////
+    
     int _winch_width;
     int _winch_height;
-    int _monster_width;
-    int _monster_height;
-    int _claw_size;
-    int _speed;
     int _gold_num;
     float _monster_speed;
-    // x positions of the winchs
-    int _winch_x;
-    int _monster_x;
-    int _claw_x;
     int _s;
     int _state;
-    
-    
+    int _catching;
+    int _claw_get;
+    int _monster_collision;
+    int _now_score;
+    int _highest_score;
+    ////////////////
     Direction _d;
     float _mag;
     ////////////
-    int s;
+    
 };
 
 #endif
\ No newline at end of file