Make the game engine use a start/end round and do healing if you don't make any mistakes.
This commit is contained in:
parent
e35536c7e3
commit
c52bc8fafd
4 changed files with 25 additions and 8 deletions
|
@ -36,14 +36,19 @@ class GameEngine {
|
|||
|
||||
public:
|
||||
int hit_points = 0;
|
||||
int hits_taken = 0;
|
||||
|
||||
GameEngine(int hp);
|
||||
|
||||
int determine_damage(string &type);
|
||||
|
||||
void start_round();
|
||||
|
||||
void end_round();
|
||||
|
||||
bool hit(string &type);
|
||||
|
||||
bool is_dead();
|
||||
|
||||
void heal(int amount);
|
||||
void heal();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue