5

Dependents:   Labirint

Revision:
4:19e1f1be1864
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lab.h	Thu May 04 06:39:31 2017 +0000
@@ -0,0 +1,36 @@
+#ifndef LAB_H
+#define LAB_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Ball.h"
+
+class lab
+{
+public:
+
+    lab();
+    ~lab();
+    void init(int x, int y, int height,int width, int speedp);
+    void draw(N5110 &lcd);
+    void update(Direction d,float mag);
+    void set_velocity(Vector2D v);
+    void add_score();
+    int get_score();
+    Vector2D get_pos();
+    Vector2D get_velocity();
+    
+    
+private:
+
+    Vector2D _velocity;
+    int _height;
+    int _width;
+    int _x;
+    int _y;
+    int _speedp;
+    int _score;
+
+};
+#endif
\ No newline at end of file