aboutsummaryrefslogtreecommitdiff
path: root/src/games/Game.cpp
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-09-28 11:23:04 +0200
committerfschildt <florian.schildt@protonmail.com>2025-09-28 11:23:04 +0200
commit4537e9bee3d054786857fa92824e2d9e8385bb36 (patch)
tree92ee1fea597f8164d09885286b71d812f6890259 /src/games/Game.cpp
parent3d30e1ee9d1c9fb67cca8e3f178ba5fd05a2726e (diff)
minesweeper: now playable
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()
+{
+}