ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
20:a359092079b0
Child:
22:0d2ac98a8b48
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Enemy/Enemy.h	Thu Apr 25 11:34:01 2019 +0000
@@ -0,0 +1,26 @@
+#ifndef ENEMY_H
+#define ENEMY_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Bullet.h"
+
+class Enemy{
+public:
+    Enemy();
+    ~Enemy();
+    void init(float floor_pos_x, float floor_pos_y);
+    void draw(N5110 &lcd);
+    void update(float floor_pos_x, float floor_pos_y);
+    Vector2D get_position(); 
+    void set_position(Vector2D pos); // mutators
+    void set_score(int score);
+    
+private:
+    Vector2D _position;
+    Bullet b;
+    float bullet_pos_y;
+    int _radius;
+};
+#endif
\ No newline at end of file