ELEC2645 (2018/19) / Mbed 2 deprecated el17cr

Dependencies:   mbed

Revision:
2:7f91a86b4dc0
Child:
3:5edefa83f8f0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Ball/Ball.h	Fri Apr 05 16:30:47 2019 +0000
@@ -0,0 +1,32 @@
+#ifndef BALL_H
+#define BALL_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+class Ball
+{
+    
+public:
+     Ball();
+    ~Ball();
+    void init(int y,int height,int width);
+    void draw(N5110 &lcd);
+    void update(Direction d,float mag);
+    Vector2D get_pos();
+    
+    
+private:
+
+    int _height;
+    int _width;
+    int _x;
+    int _y;
+    int _speed;
+};
+#endif
+    
+    
+    
\ No newline at end of file