Format betterer
This commit is contained in:
parent
0e6a5b0ac6
commit
b28b81f538
2 changed files with 9 additions and 12 deletions
15
src/game.cpp
15
src/game.cpp
|
@ -5,13 +5,14 @@
|
|||
#include "debugger.hpp"
|
||||
#include "randomiser.hpp"
|
||||
|
||||
Game::Game(Debugger* debugger, Randomiser* randomiser) : debugger(debugger),
|
||||
randomiser(randomiser),
|
||||
state(State::MENU),
|
||||
currentDelay(DELAY_START),
|
||||
currentScore(0),
|
||||
waitingBeeps({}),
|
||||
waitingBeepsAmount(0) {
|
||||
Game::Game(Debugger* debugger, Randomiser* randomiser)
|
||||
: debugger(debugger),
|
||||
randomiser(randomiser),
|
||||
state(State::MENU),
|
||||
currentDelay(DELAY_START),
|
||||
currentScore(0),
|
||||
waitingBeeps({}),
|
||||
waitingBeepsAmount(0) {
|
||||
debugger->print("Initialising new game...");
|
||||
}
|
||||
|
||||
|
|
|
@ -2,11 +2,7 @@
|
|||
#include "debugger.hpp"
|
||||
#include "randomiser.hpp"
|
||||
|
||||
enum State {
|
||||
MENU,
|
||||
GAME,
|
||||
SCORE
|
||||
};
|
||||
enum State { MENU, GAME, SCORE };
|
||||
|
||||
class Game {
|
||||
Debugger* debugger;
|
||||
|
|
Reference in a new issue