Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Entity/Collectibles/Health/Health.h

Committer:
el17sm
Date:
2019-05-06
Revision:
34:1d5b4da3935e
Parent:
33:4f3948dcd2f7
Child:
37:a404860171a9

File content as of revision 34:1d5b4da3935e:

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

private:
    // Private Functions
    char * get_frame();
};

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