aboutsummaryrefslogtreecommitdiff
path: root/src/games/minesweeper/Minesweeper.hpp
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-10-16 15:33:06 +0200
committerfschildt <florian.schildt@protonmail.com>2025-10-16 15:33:06 +0200
commita873df7a66dc1831cee4eae2d998abed88246268 (patch)
treec19cd079ce106e1431d64c34babf4ef59cf71723 /src/games/minesweeper/Minesweeper.hpp
parent9f2845b12135c32dde91e58afc1193d54333ec9f (diff)
renderer: introduce text rendering
Diffstat (limited to 'src/games/minesweeper/Minesweeper.hpp')
-rw-r--r--src/games/minesweeper/Minesweeper.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/games/minesweeper/Minesweeper.hpp b/src/games/minesweeper/Minesweeper.hpp
index 24672f0..fbdcb30 100644
--- a/src/games/minesweeper/Minesweeper.hpp
+++ b/src/games/minesweeper/Minesweeper.hpp
@@ -4,8 +4,6 @@
#include <common/math.hpp>
#include <common/Font.hpp>
-#include <array>
-
class Minesweeper : public Game {
public:
@@ -21,11 +19,11 @@ public:
bool Update(std::vector<SDL_Event>& events) override;
+
+private:
void ProcessEventDuringPause(SDL_Event& event);
void ProcessEventDuringResume(SDL_Event& event);
-
-private:
void Reset(Difficulty Difficulty);
void InitIsMineBitmap(int32_t mine_count);
void InitAdjacentMineCounters();
@@ -50,7 +48,6 @@ private:
private:
static constexpr int32_t max_map_height = 32;
static constexpr int32_t max_map_width = 32;
- static constexpr const char* s_font_filepath = "./fonts/dejavu_ttf/DejaVuSans.ttf";
private: