ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
26:6427f09cf8d3
Parent:
20:9d21599fe350
Child:
28:d0b0a64a832d
diff -r ead0e7bd1569 -r 6427f09cf8d3 Ball/Ball.h
--- a/Ball/Ball.h	Wed May 01 09:08:03 2019 +0000
+++ b/Ball/Ball.h	Wed May 01 11:56:36 2019 +0000
@@ -6,9 +6,9 @@
 #include "Gamepad.h"
 #include "Bat.h"
 /** Ball Class
-@author Dr Craig A. Evans, University of Leeds
-@brief Controls the ball in the Pong game 
-@date Febraury 2017
+@author Shahid Zubin Sajid
+@brief Controls the ball in the Hero Cricket Game 
+@date May 2019
 */ 
 class Ball
 {
@@ -18,15 +18,13 @@
     ~Ball();
     void init(int size,int speed);
     void draw(N5110 &lcd);
-    Vector2D get_pos();
-    void set_pos(Vector2D p);
     void reset();
+    void reset_ball_count();
     
     /// 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);
@@ -42,13 +40,9 @@
     };
     int fieldNumbers[10];
     Bat bat;
-    int ballHit;
     int _ball_count;
-    Vector2D _velocity;
-    Direction ball_direction;
-    Direction _d;
-    int bowled;
-    int set_tone;
+    int _bowled;
+    int _set_tone;
     int d;
     int _size;
     int _x;