Yiu Fai Kwok / Mbed 2 deprecated el17yfk

Dependencies:   mbed FXOS8700CQ mbed-rtos

Revision:
27:4bcdfb212467
Parent:
26:c60becf3f840
Child:
28:a6726a3f8e6d
--- a/Game_three/Game_three.h	Tue Apr 30 09:40:35 2019 +0000
+++ b/Game_three/Game_three.h	Mon May 06 01:28:50 2019 +0000
@@ -25,12 +25,37 @@
     /** Deconstructor */
     ~Game_three();
 
-    void init(int r);
-    void draw(N5110 &lcd, int cha);    
+    void init(Gamepad &pad, int r);
+    void render(N5110 &lcd, int r);
+    void draw(N5110 &lcd, int r);
+    void read_input(Gamepad &pad);
+    void update(Gamepad &pad, int r);
+    
+    /**
+     * @brief Get count value
+     * @return The current count (int)
+     * @details The function returns the number of coins that have appeared in the game to terminate the game loop once count reaches 10
+     */
+    int get_count();
+    
+    int get_score();
+    
+    /**
+     * @brief Intruction 
+     * @details The function displays the instructions which describe game rules at the beginning of the game
+     */
+    void intro(Gamepad &pad, N5110 &lcd);
     
 private:
 
     void background(N5110 &lcd);
+    Score music;
+    Book book;
+    Message message;
+    int _set;
+    int _select;
+    int _count;
+    int _score;
 
 };