ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
12:954da4f4e565
Parent:
11:f481ec642cc5
Child:
13:924891519a95
--- a/Ball/Ball.h	Mon Apr 22 19:57:01 2019 +0000
+++ b/Ball/Ball.h	Tue Apr 23 12:46:34 2019 +0000
@@ -21,12 +21,14 @@
     Vector2D get_pos();
     void set_pos(Vector2D p);
     
-    void update();
     /// accessors and mutators
     int ball_start();
     void get_direction(Gamepad &pad);
 
-    void update_ball(int checkHit, Direction dir);
+    //void update_ball(int checkHit, Direction dir);
+    void update_ball_x(int expected_x);
+    void update_ball_y(int expected_y);
+    
     int bowler_start();
     void reset();