ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Revision:
2:888634fff8ff
Child:
3:aa82968b7a8e
diff -r 2d3139578aca -r 888634fff8ff Player/Player.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Player/Player.h	Sat Apr 06 12:08:39 2019 +0000
@@ -0,0 +1,31 @@
+#ifndef PLAYER_H
+#define PLAYER_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class Player
+{
+public:
+
+    Player();
+    ~Player();
+    void init(int player_height,int player_width);
+    void draw(N5110 &lcd);
+    void update(Direction d,float mag);
+    void add_score();
+    int get_score();
+    Vector2D get_pos();
+
+private:
+
+    int _player_height;
+    int _player_width;
+    int _x;
+    int _y;
+    int _speed;
+    int _score;
+
+};
+#endif
\ No newline at end of file