aboutsummaryrefslogtreecommitdiff
path: root/src/games/minesweeper/Minesweeper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/games/minesweeper/Minesweeper.hpp')
-rw-r--r--src/games/minesweeper/Minesweeper.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/games/minesweeper/Minesweeper.hpp b/src/games/minesweeper/Minesweeper.hpp
index 4906464..b081806 100644
--- a/src/games/minesweeper/Minesweeper.hpp
+++ b/src/games/minesweeper/Minesweeper.hpp
@@ -1,6 +1,10 @@
#pragma once
#include <games/Game.hpp>
+#include <common/Font.hpp>
+
+#include <array>
+
namespace std {
template <>
@@ -13,6 +17,7 @@ namespace std {
};
}
+
enum class MinesweeperRunState {
Resume,
Pause,
@@ -21,6 +26,7 @@ enum class MinesweeperRunState {
Exit
};
+
class Minesweeper : public Game {
public:
Minesweeper();
@@ -76,6 +82,9 @@ class Minesweeper : public Game {
uint32_t m_IsFlaggedBitmap[MAX_MAP_HEIGHT] {};
uint32_t m_IsMineBitmap[MAX_MAP_HEIGHT] {};
int32_t m_AdjacentMineCounters[MAX_MAP_WIDTH * MAX_MAP_HEIGHT] {};
+
+ Font m_Font;
+ std::array<Glyph, 9> m_DigitGlyphs;
};