ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
6:3e50f2cf4366
Parent:
4:55a0509c4874
Child:
13:924891519a95
--- a/Bat/Bat.h	Tue Apr 16 10:17:21 2019 +0000
+++ b/Bat/Bat.h	Thu Apr 18 09:31:52 2019 +0000
@@ -19,6 +19,8 @@
     void init(int x,int y);
     void draw(N5110 &lcd);
     void update();
+    int get_hitBall();
+    Direction Bat::get_ballDirection();
     /// accessors and mutators
     //Vector2D get_velocity();
     //Vector2D get_pos();
@@ -38,7 +40,10 @@
     //Vector2D _velocity;
     //Fielder field[5];
     //Direction _d;
+    Gamepad batPad;
+    int _hitBall;
     int d;
+    Direction _d;
     int _size;
     int _x;
     int _y;