ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jgb

Dependencies:   mbed

Revision:
5:c37f4ed2cad3
Parent:
4:6f898b000797
Child:
6:d560ecc21ae6
--- a/Eng.h	Thu May 14 16:16:49 2020 +0000
+++ b/Eng.h	Sun May 17 13:11:55 2020 +0000
@@ -4,7 +4,7 @@
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
-#include "Basket.h"
+#include "Aim.h"
 #include "Heston.h"
 
 // gap from edge of screen
@@ -14,7 +14,7 @@
 {
 
 public:
-    Eng);
+    Eng();
     ~Eng();
 
     void init();
@@ -24,26 +24,26 @@
     
 private:
 
-    void check_hitGamepad &pad);
-    void check_miss(Gamepad &pad);
-    void print_scores(N5110 &lcd);
+    void check_hit(Gamepad &pad);
+    //void check_miss(Gamepad &pad);
+    //void print_scores(N5110 &lcd);
     
     Heston _h1;
-    Heston _h2;
-    Heston _h3;
+    //Heston _h2;
+    //Heston _h3;
      
-    int _paddle_width;
-    int _paddle_height;
-    int _ball_size;
-    int _speed;
+    int _hest_width;
+    int _hest_height;
+    //int _ball_size;
+    //int _speed;
     
     // positions
     int _h1x;
-    int _h2x;
-    int _h3x;
-    int _h2y;
+    //int _h2x;
+    //int _h3x;
+    //int _h2y;
     int _h1y;
-    int _h3y;
+    //int _h3y;
     
     Aim _aim;