ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
18:a260ce8db9e7
Parent:
15:81a3aaf52647
Child:
20:9d21599fe350
--- a/Ball/Ball.h	Wed Apr 24 21:17:22 2019 +0000
+++ b/Ball/Ball.h	Sat Apr 27 15:42:36 2019 +0000
@@ -25,10 +25,13 @@
     /// accessors and mutators
     int ball_start(Gamepad &pad);
     void get_direction(Gamepad &pad);
+    int get_ball_count();
+    void reset_ball_count();
 
     //void update_ball(int checkHit, Direction dir);
     int update_ball(int expected_x,int expected_y);
     int bowler_start(Gamepad &pad);
+    void increment_ball_count();
     
 private:
     Gamepad pad;
@@ -41,6 +44,7 @@
     int fieldNumbers[10];
     Bat bat;
     int ballHit;
+    int _ball_count;
     Vector2D _velocity;
     Direction ball_direction;
     Direction _d;