blob: 392379411c1148b07be3203ce018a48059a46f89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "enemy.hpp"
Enemy::Enemy(int health) noexcept : _health(health) {}
int Enemy::get_health() const noexcept
{
return _health;
}
void Enemy::do_damage(int damage) noexcept
{
_health -= damage;
}
|