More refactoring in prep for a real design.
This commit is contained in:
parent
b9e9119832
commit
e35536c7e3
10 changed files with 229 additions and 186 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue