Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Revision:
32:fe6359ef9916
Child:
33:4f3948dcd2f7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Entity/Collectibles/Health/Health.h	Mon May 06 08:56:48 2019 +0000
@@ -0,0 +1,31 @@
+#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, bool * doorways);
+    virtual void draw(N5110 &unused);
+    virtual void take_damage(int);
+
+private:
+    // Private Functions
+    int * get_frame();
+};
+
+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