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
9
class
Manager
;
10
11
class
HealthComponent :
public
Component
12
{
13
public
:
14
15
HealthComponent(
int
health) : health(health) {}
16
~HealthComponent() {}
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
28
private
:
29
30
int
health;
31
};
Manager
Is responsible for managing all entities.
Definition
Manager.h:23
include
HealthComponent.h
Generated by
1.13.2