Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Entity/Collectibles/Health/Health.h

Committer:
el17sm
Date:
2019-05-07
Revision:
37:a404860171a9
Parent:
34:1d5b4da3935e
Child:
58:c8d90bb7404a

File content as of revision 37:a404860171a9:

#ifndef HEALTH_H
#define HEALTH_H
#include "Entity.h"

class Health : public Entity
{
public:
    // Constructor
    Health(float, float);

    // Functions
    virtual void move(float, float, char * map, bool * doorways);
    virtual void draw(N5110 &unused);
    virtual void take_damage(int);
};

const char 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