Ahmed Hedait / Mbed 2 deprecated el16ah

Dependencies:   mbed

Revision:
24:166d726b0f13
Parent:
22:745b4d352183
diff -r 6733f8b9c321 -r 166d726b0f13 MazeEngine/MazeEngine.h
--- a/MazeEngine/MazeEngine.h	Tue May 08 13:13:20 2018 +0000
+++ b/MazeEngine/MazeEngine.h	Tue May 08 13:39:31 2018 +0000
@@ -7,29 +7,49 @@
 #include "Maze.h"
 #include "Ball.h"
 
+/** MazeEngine Class
+@author Ahmed Hedait, University of Leeds
+@brief  When goal is reaches at end of the game.
+@date May 2018
+*/
+
 class MazeEngine
 {
 public:
 
+    /** Constructor */
     MazeEngine();
+
+    /** Destructor */
     ~MazeEngine();
 
     void init();
+
+    /** Read the inputs of the game.
+    */
     void read_input(Gamepad &pad);
+
+    /** Intialising the drawing of the ball and maze
+    */
     void draw(N5110 &lcd);
+
+    /** Updating when the ball goes through the opening hole
+    * @brief Print out that the game is finished and re-start if needed
+    * controlled within the Gamepad Joystick
+    */
     void update(Gamepad &pad);
 
 private:
 
     void check_goal(Gamepad &pad);
-    void print_win(N5110 &lcd); 
+    void print_win(N5110 &lcd);
     void check_wall_collision(Gamepad &pad);
 
     Maze _maze;
     Direction _dir;
     Ball _ball;
     Vector2D ball_pos;
-    
+
     int _a;
     int _b;
     int _c;