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.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/games/Game.cpp b/src/games/Game.cpp
index 628f5d4..4f7b7a6 100644
--- a/src/games/Game.cpp
+++ b/src/games/Game.cpp
@@ -9,23 +9,23 @@
std::unique_ptr<Game>
-Game::Select(GameType type)
+Game::Select(GameType type, RenderGroup& render_group)
{
switch (type) {
case NO_GAME: {
return nullptr;
- }
+ } break;
case TETRIS: {
- return std::make_unique<Tetris>();
+ return std::make_unique<Tetris>(render_group);
} break;
case SNAKE: {
- return std::make_unique<Snake>();
+ return std::make_unique<Snake>(render_group);
} break;
case MINESWEEPER: {
- return std::make_unique<Minesweeper>();
+ return std::make_unique<Minesweeper>(render_group);
} break;
InvalidDefaultCase;
@@ -35,5 +35,7 @@ Game::Select(GameType type)
}
-Game::~Game() {}
+Game::~Game()
+{
+}