aboutsummaryrefslogtreecommitdiff
path: root/src/games/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/games/Game.cpp')
-rw-r--r--src/games/Game.cpp37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/games/Game.cpp b/src/games/Game.cpp
index 5619c8a..7ed94eb 100644
--- a/src/games/Game.cpp
+++ b/src/games/Game.cpp
@@ -1,8 +1,8 @@
-#include <basic/defs.hpp>
#include <games/Game.hpp>
#include <games/tetris/Tetris.hpp>
#include <games/snake/Snake.hpp>
#include <games/minesweeper/Minesweeper.hpp>
+#include <games/breakout/Breakout.hpp>
#include <assert.h>
#include <memory>
@@ -12,30 +12,29 @@ std::unique_ptr<Game>
Game::Select(GameType type)
{
switch (type) {
- case NO_GAME: {
- return nullptr;
- } break;
+ case no_game: {
+ return nullptr;
+ } break;
- case TETRIS: {
- return std::make_unique<Tetris>();
- } break;
+ case tetris: {
+ return std::make_unique<Tetris>();
+ } break;
- case SNAKE: {
- return std::make_unique<Snake>();
- } break;
+ case snake: {
+ return std::make_unique<Snake>();
+ } break;
- case MINESWEEPER: {
- return std::make_unique<Minesweeper>();
- } break;
+ case minesweeper: {
+ return std::make_unique<Minesweeper>();
+ } break;
- InvalidDefaultCase;
+ case breakout: {
+ return std::make_unique<Breakout>();
+ } break;
+
+ InvalidDefaultCase;
}
return nullptr;
}
-
-Game::~Game()
-{
-}
-