Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MotionSensor
Entity/Collectibles/Health/Health.h
- Committer:
- el17sm
- Date:
- 2019-05-06
- Revision:
- 33:4f3948dcd2f7
- Parent:
- 32:fe6359ef9916
- Child:
- 34:1d5b4da3935e
File content as of revision 33:4f3948dcd2f7:
#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 void draw(N5110 &unused);
virtual void take_damage(int);
private:
// Private Functions
char * get_frame();
};
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