ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
15:81a3aaf52647
Parent:
14:122eaa3b7a50
Child:
17:b2b651acffae
Child:
18:a260ce8db9e7
--- a/Ball/Ball.h	Tue Apr 23 20:57:15 2019 +0000
+++ b/Ball/Ball.h	Wed Apr 24 21:17:22 2019 +0000
@@ -23,12 +23,12 @@
     void reset();
     
     /// accessors and mutators
-    int ball_start();
+    int ball_start(Gamepad &pad);
     void get_direction(Gamepad &pad);
 
     //void update_ball(int checkHit, Direction dir);
     int update_ball(int expected_x,int expected_y);
-    int bowler_start();
+    int bowler_start(Gamepad &pad);
     
 private:
     Gamepad pad;
@@ -45,6 +45,7 @@
     Direction ball_direction;
     Direction _d;
     int bowled;
+    int set_tone;
     int d;
     int _size;
     int _x;