VEGO-Engine  0.1
Loading...
Searching...
No Matches
HealthComponent.h
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include "Direction.h"
7#include "Component.h"
8
9class Manager;
10
12{
13public:
14
15 HealthComponent(int health) : health(health) {}
17
18 void modifyHealth(int health = -1);
19 void setHealth(int health);
20 int getHealth() { return this->health; }
21
22 void init() override;
23
24 void refreshHearts();
25 void createHeartComponents(int x);
26
27
28private:
29
30 int health;
31};
Definition Component.h:6
Definition HealthComponent.h:12
Is responsible for managing all entities.
Definition Manager.h:23