Refactored out the main_loop so that it's not tightly coupled inside builder, and in the process found I was accidentally copying GUI and GameEngine because Builder wasn't using a &ref for them. Now they don't have a copy constructor to catch that.
This commit is contained in:
parent
a7c5de6ac3
commit
fff182b457
7 changed files with 27 additions and 34 deletions
|
@ -23,6 +23,9 @@ class GameEngine {
|
|||
|
||||
GameEngine(int hp);
|
||||
|
||||
// FOUND BUG: I was accidentally copying this and shouldn't have been
|
||||
GameEngine(GameEngine &g) = delete;
|
||||
|
||||
int determine_damage(string &type);
|
||||
|
||||
void start_round();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue