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