Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Player/Player.h
- 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