aboutsummaryrefslogtreecommitdiff
path: root/src/games/minesweeper/Minesweeper.hpp
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-12-11 02:26:56 +0100
committerfschildt <florian.schildt@protonmail.com>2025-12-11 02:56:04 +0100
commit6fffbbed46b903223f752faee7bbb870557665c9 (patch)
tree11c52ccd5fc3a6e3bae142052fa54c49bc6ba853 /src/games/minesweeper/Minesweeper.hpp
parent69f46d34e9c6a25c63668423fd984d07c1f099a3 (diff)
refactor Game.hpp, add unfinished pong
Diffstat (limited to 'src/games/minesweeper/Minesweeper.hpp')
-rw-r--r--src/games/minesweeper/Minesweeper.hpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/games/minesweeper/Minesweeper.hpp b/src/games/minesweeper/Minesweeper.hpp
index 9088d10..8f8a2d2 100644
--- a/src/games/minesweeper/Minesweeper.hpp
+++ b/src/games/minesweeper/Minesweeper.hpp
@@ -13,18 +13,22 @@ public:
expert
};
+
public:
Minesweeper();
~Minesweeper() = default;
- bool Update(std::vector<SDL_Event>& events) override;
-
private:
- void ProcessEventDuringPause(SDL_Event& event);
- void ProcessEventDuringResume(SDL_Event& event);
+ void Start() override;
+ void ProcessEvent(SDL_Event& event) override;
+ void FinishUpdate(float dt) override;
+ void Draw() override;
+
+ void DrawGameStartMenu() override;
+ void DrawGameOverMenu() override;
+
- void Reset(Difficulty Difficulty);
void InitIsMineBitmap();
void InitAdjacentMineCounters();
bool IsWon();
@@ -42,12 +46,6 @@ private:
private:
- void DrawBoard();
- void DrawStartMenu();
- void DrawGameOverMenu();
-
-
-private:
static constexpr int32_t s_max_grid_height = 32;
static constexpr int32_t s_max_grid_width = 32;