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