ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
4:55a0509c4874
Parent:
3:bd3465a70a5a
Child:
6:3e50f2cf4366
diff -r bd3465a70a5a -r 55a0509c4874 Ball/Ball.h
--- a/Ball/Ball.h	Mon Apr 15 13:40:49 2019 +0000
+++ b/Ball/Ball.h	Tue Apr 16 09:48:37 2019 +0000
@@ -29,10 +29,17 @@
     void set_field(N5110 &lcd);
     
 private:
+    Gamepad pad;
+    struct Fielder{
+        int x;
+        int y;
+        int position;
+    };
 
     Vector2D _velocity;
-    Vector2D fielders[5];
+    Fielder field[5];
     Direction _d;
+    int d;
     int _size;
     int _x;
     int _y;