aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/enemy.cpp
blob: b20a90dd5bb4e89c8916e70bf4bed743dcf01ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "enemy.hpp"

int Enemy::get_health() const noexcept
{
	return _health;
}

void Enemy::do_damage(int damage) noexcept
{
	_health -= damage;
}