Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Entity/Health/Health.h

Committer:
el17sm
Date:
2019-05-04
Revision:
29:6b8411bb040a
Parent:
28:98848e6a77a2

File content as of revision 29:6b8411bb040a:

#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 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