contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

Revision:
29:e660274d8222
Parent:
28:39607fb67e88
Child:
33:24ef796ff2c8
--- a/GameTests/tests.h	Wed Apr 24 10:19:07 2019 +0000
+++ b/GameTests/tests.h	Thu Apr 25 10:44:53 2019 +0000
@@ -42,6 +42,8 @@
      test.test_loading_menu(lcd);
      test.test_InstructionsMenu(pad,lcd);
      test.test_Game_Loop(pad,lcd);
+     test.test_Joystick_position(pad);
+     test.test_Generate_New_Enemy();
     
     
     
@@ -56,7 +58,16 @@
 class tests{
     
     public:
+    /**
+  * @brief Default Constructor
+  *  @details Creates the object of class tests
+  */
     tests();
+     /**
+  * @brief Default destructor
+  *  @details destroys the object of class tests
+  */
+    ~tests();
     /**
   * @brief method to test welcome menu
   * @param pad @details calls the Gamepad object to be passed to the methods called inside this method
@@ -102,6 +113,16 @@
   * @param pad @details calls the Gamepad object to be passed to the methods called inside this method
   */
   void test_Game_Loop(Gamepad &pad,N5110 &lcd);
+  /**
+  * @brief method to test  the position of the joystick and prints its current state
+  * @param pad @details calls the Gamepad object to be passed to the methods called inside this method
+  */
+  bool test_Joystick_position(Gamepad &pad);
+  /**
+  * @brief method to test generated numbers
+  * @details it tests if the randomly genrated number is 1,2 or 3 and returns true otherwise false 
+  */
+  bool test_Generate_New_Enemy();
   
   private:
   Menus menu;