Fix compiling, use enum class
This commit is contained in:
parent
b28b81f538
commit
e24b8d0591
3 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
#include <Arduino.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Set to true to enable debug prints (via serial console) and false to disable.
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,7 @@ Game::Game(Debugger* debugger, Randomiser* randomiser)
|
|||
state(State::MENU),
|
||||
currentDelay(DELAY_START),
|
||||
currentScore(0),
|
||||
waitingBeeps({}),
|
||||
waitingBeeps{},
|
||||
waitingBeepsAmount(0) {
|
||||
debugger->print("Initialising new game...");
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "debugger.hpp"
|
||||
#include "randomiser.hpp"
|
||||
|
||||
enum State { MENU, GAME, SCORE };
|
||||
enum class State { MENU, GAME, SCORE };
|
||||
|
||||
class Game {
|
||||
Debugger* debugger;
|
||||
|
|
Reference in a new issue