diff options
Diffstat (limited to 'src/games/minesweeper/Minesweeper.hpp')
| -rw-r--r-- | src/games/minesweeper/Minesweeper.hpp | 28 |
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; |
