Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Revision:
28:98848e6a77a2
Child:
29:6b8411bb040a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Entity/Health/Health.h	Thu May 02 21:30:49 2019 +0000
@@ -0,0 +1,29 @@
+#ifndef HEALTH_H
+#define HEALTH_H
+#include "Entity.h"
+
+class Health : public Entity
+{
+public:
+    // Constructor
+    Health(float, float);
+
+    // Functions
+    virtual void move(float, float, int * map);
+    virtual int * get_frame();
+    virtual void take_damage(int);
+
+private:
+};
+
+const int health_sprite[7][7] = {
+    {0,1,1,0,1,1,0},
+    {1,1,1,1,1,1,1},
+    {1,0,1,1,1,1,1},
+    {1,0,1,1,1,1,1},
+    {0,1,0,1,1,1,0},
+    {0,0,1,1,1,0,0},
+    {0,0,0,1,0,0,0}
+};
+
+#endif
\ No newline at end of file