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.
|
* 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),
|
state(State::MENU),
|
||||||
currentDelay(DELAY_START),
|
currentDelay(DELAY_START),
|
||||||
currentScore(0),
|
currentScore(0),
|
||||||
waitingBeeps({}),
|
waitingBeeps{},
|
||||||
waitingBeepsAmount(0) {
|
waitingBeepsAmount(0) {
|
||||||
debugger->print("Initialising new game...");
|
debugger->print("Initialising new game...");
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "debugger.hpp"
|
#include "debugger.hpp"
|
||||||
#include "randomiser.hpp"
|
#include "randomiser.hpp"
|
||||||
|
|
||||||
enum State { MENU, GAME, SCORE };
|
enum class State { MENU, GAME, SCORE };
|
||||||
|
|
||||||
class Game {
|
class Game {
|
||||||
Debugger* debugger;
|
Debugger* debugger;
|
||||||
|
|
Reference in a new issue