ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
4:55a0509c4874
Child:
6:3e50f2cf4366
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bat/Bat.h	Tue Apr 16 09:48:37 2019 +0000
@@ -0,0 +1,46 @@
+#ifndef BAT_H
+#define BAT_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+/** Ball Class
+@author Dr Craig A. Evans, University of Leeds
+@brief Controls the ball in the Pong game 
+@date Febraury 2017
+*/ 
+class Bat
+{
+
+public:
+    Bat();
+    ~Bat();
+    void init(int x,int y);
+    void draw(N5110 &lcd);
+    void update();
+    /// accessors and mutators
+    //Vector2D get_velocity();
+    //Vector2D get_pos();
+    //void set_pos(Vector2D p);
+    //void start(N5110 &lcd);
+    //void get_direction(Gamepad &pad);
+    
+private:
+    //Gamepad pad;
+    /*struct Fielder{
+        int x;
+        int y;
+        int position;
+    };
+    */
+
+    //Vector2D _velocity;
+    //Fielder field[5];
+    //Direction _d;
+    int d;
+    int _size;
+    int _x;
+    int _y;
+};
+#endif
\ No newline at end of file