Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Committer:
el17sm
Date:
Tue May 07 03:47:39 2019 +0000
Revision:
37:a404860171a9
Parent:
34:1d5b4da3935e
Child:
58:c8d90bb7404a
Separated Health from rest of Entities (collectibles array)

Who changed what in which revision?

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