ELEC2645 (2018/19) / Mbed 2 deprecated el17zl

Dependencies:   mbed

Fork of el17zl by Zhenwen Liao

Revision:
4:750d3f9b54de
Child:
5:b50ce6160013
diff -r 9fa31396d89d -r 750d3f9b54de Ppl/Ppl.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Ppl/Ppl.h	Tue Apr 09 08:31:27 2019 +0000
@@ -0,0 +1,27 @@
+#ifndef PPL_H
+#define PPL_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+class Ppl
+{
+
+public:
+    Ppl();
+    ~Ppl();
+    void init(int x0, int y0);
+    void draw(N5110 &lcd);
+    void check();
+    /// accessors and mutators
+    Vector2D get_pos();
+    void set_pos(Vector2D p);
+    
+private:
+
+    int _x;
+    int _y;
+};
+#endif
\ No newline at end of file