aboutsummaryrefslogtreecommitdiff
path: root/src/games/minesweeper/Minesweeper.hpp
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-10-06 09:25:04 +0200
committerfschildt <florian.schildt@protonmail.com>2025-10-06 09:25:04 +0200
commit606d028dac5118329e7561af33b15988db84465f (patch)
tree8a5b92b51a88714fee71d7f908283426f70b7dc1 /src/games/minesweeper/Minesweeper.hpp
parent7d9500d27fc91356c580e365351ff6e1bc1c95e1 (diff)
make everything prettier
Diffstat (limited to 'src/games/minesweeper/Minesweeper.hpp')
-rw-r--r--src/games/minesweeper/Minesweeper.hpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/games/minesweeper/Minesweeper.hpp b/src/games/minesweeper/Minesweeper.hpp
index f29df14..867ca6a 100644
--- a/src/games/minesweeper/Minesweeper.hpp
+++ b/src/games/minesweeper/Minesweeper.hpp
@@ -7,29 +7,8 @@
#include <array>
-namespace std {
- template <>
- struct hash<V2ST> {
- size_t operator()(const V2ST& v) const {
- size_t h1 = hash<size_t>{}(v.x);
- size_t h2 = hash<size_t>{}(v.y);
- return h1 ^ (h2 << 1);
- }
- };
-}
-
-
-
class Minesweeper : public Game {
public:
- enum RunState {
- start,
- pause,
- resume,
- game_over,
- exit
- };
-
enum Difficulty {
beginner,
intermediate,
@@ -66,8 +45,6 @@ private:
private:
void DrawBoard();
void DrawStartMenu();
- void DrawPauseMenu();
- void DrawGameOverMenu();
private:
@@ -77,16 +54,13 @@ private:
private:
- RunState m_run_state = start;
Difficulty m_difficulty = beginner;
float m_world_width = 4.0f;
float m_world_height = 3.0f;
int32_t m_grid_width;
- int32_t m_grid_height;
-
- V2F32 m_grid_pos;
+ int32_t m_grid_height; V2F32 m_grid_pos;
V2F32 m_cell_outer_size;
V2F32 m_cell_inner_size;