Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Committer:
el17sm
Date:
Sat May 04 15:39:20 2019 +0000
Revision:
29:6b8411bb040a
Parent:
28:98848e6a77a2
added Room complete;; started Floor engine;; ; To do:; Floor generation;; More enemies;; Bosses;; Title Screen;; Score;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17sm 28:98848e6a77a2 1 #ifndef HEALTH_H
el17sm 28:98848e6a77a2 2 #define HEALTH_H
el17sm 28:98848e6a77a2 3 #include "Entity.h"
el17sm 28:98848e6a77a2 4
el17sm 28:98848e6a77a2 5 class Health : public Entity
el17sm 28:98848e6a77a2 6 {
el17sm 28:98848e6a77a2 7 public:
el17sm 28:98848e6a77a2 8 // Constructor
el17sm 28:98848e6a77a2 9 Health(float, float);
el17sm 28:98848e6a77a2 10
el17sm 28:98848e6a77a2 11 // Functions
el17sm 29:6b8411bb040a 12 virtual void move(float, float, int * map, bool * doorways);
el17sm 28:98848e6a77a2 13 virtual int * get_frame();
el17sm 28:98848e6a77a2 14 virtual void take_damage(int);
el17sm 28:98848e6a77a2 15
el17sm 28:98848e6a77a2 16 private:
el17sm 28:98848e6a77a2 17 };
el17sm 28:98848e6a77a2 18
el17sm 28:98848e6a77a2 19 const int health_sprite[7][7] = {
el17sm 28:98848e6a77a2 20 {0,1,1,0,1,1,0},
el17sm 28:98848e6a77a2 21 {1,1,1,1,1,1,1},
el17sm 28:98848e6a77a2 22 {1,0,1,1,1,1,1},
el17sm 28:98848e6a77a2 23 {1,0,1,1,1,1,1},
el17sm 28:98848e6a77a2 24 {0,1,0,1,1,1,0},
el17sm 28:98848e6a77a2 25 {0,0,1,1,1,0,0},
el17sm 28:98848e6a77a2 26 {0,0,0,1,0,0,0}
el17sm 28:98848e6a77a2 27 };
el17sm 28:98848e6a77a2 28
el17sm 28:98848e6a77a2 29 #endif