0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 12:33:43 +00:00
SDL_Minigame/src/HealthComponent.cpp

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;
}