More refactoring in prep for a real design.

This commit is contained in:
Zed A. Shaw 2024-08-21 18:34:46 -04:00
parent b9e9119832
commit e35536c7e3
10 changed files with 229 additions and 186 deletions

View file

@ -144,6 +144,10 @@ bool GameEngine::hit(string &type) {
return is_dead();
}
void GameEngine::heal(int amount) {
hit_points += amount;
}
bool GameEngine::is_dead() {
return hit_points <= 0;
}