ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
9:a81db6a703b7
Parent:
7:a1a6bff238c1
Child:
10:6c6e09023942
--- a/Ball/Ball.h	Thu Apr 18 13:04:37 2019 +0000
+++ b/Ball/Ball.h	Sun Apr 21 17:35:15 2019 +0000
@@ -29,6 +29,8 @@
     void set_field(N5110 &lcd);
     void update_ball(int checkHit, Direction dir);
     int bowler_start();
+    void draw_field(N5110 &lcd);
+    void reset();
     
 private:
     Gamepad pad;
@@ -37,10 +39,13 @@
         int y;
         int position;
     };
+    int fieldNumbers[10];
     Bat bat;
     int ballHit;
     Vector2D _velocity;
     Fielder field[5];
+    int direction_set;
+    Direction ball_direction;
     Direction _d;
     int bowled;
     int d;