FINAL VERSION

Dependencies:   mbed

Revision:
28:d058f7f5885d
Child:
36:cb73014d3a99
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Laser/Laser.h	Wed Apr 24 05:18:11 2019 +0000
@@ -0,0 +1,33 @@
+#ifndef LASER_H
+#define LASER_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Paddle.h"
+
+/** Laser Class
+@author Dr Craig A. Evans, University of Leeds
+@brief Controls the Laser in the Pong game 
+@date Febraury 2017
+*/ 
+class Laser
+{
+
+public:
+    Laser();
+    ~Laser();
+    void init(int x);
+    void draw(N5110 &lcd);
+    void update();
+    /// accessors and mutators
+    Vector2D get_pos();
+    void set_pos(Vector2D p);
+    
+private:
+
+    Vector2D _velocity;
+    int _x;
+    int _y;
+};
+#endif
\ No newline at end of file