ELEC2645 (2018/19) / Mbed 2 deprecated el17ph

Dependencies:   mbed

Revision:
0:8fb740fa6356
Child:
1:679d7ada8de7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Maintank/MainTank.h	Sat May 11 14:58:43 2019 +0000
@@ -0,0 +1,31 @@
+#ifndef __MAIN_TANK__
+#define __MAIN_TANK__
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+class MainTank 
+{
+public:
+    MainTank();
+    ~MainTank();
+    void update(Direction d,float mag);
+    void init();
+    void draw(N5110 &lcd);
+    void add_score();
+    int get_score();
+    void lose_life();
+    int remain_life();
+    Vector2D get_pos();
+private:
+    int m_x;
+    int m_y;
+    int m_speed;
+    int m_score;
+    int m_life;
+};
+
+
+#endif
\ No newline at end of file