mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 09:03:42 +00:00
19 lines
308 B
C++
19 lines
308 B
C++
#include "HealthComponent.h"
|
|
|
|
#include "Direction.h"
|
|
#include "Entity.h"
|
|
#include "GameInternal.h"
|
|
#include <cstdio>
|
|
|
|
void HealthComponent::init()
|
|
{}
|
|
|
|
void HealthComponent::modifyHealth(int health)
|
|
{
|
|
this->health += health;
|
|
}
|
|
|
|
void HealthComponent::setHealth(int health)
|
|
{
|
|
this->health = health;
|
|
} |