diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-09 14:21:23 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-09 14:21:23 +0100 |
| commit | c72d094dec277fe99089422c1e7fd990e5e086da (patch) | |
| tree | 1ed237764f8894d7e8199ff5144a10f308a0a548 /src/Game.hpp | |
| parent | 65e7a56dbd3e6c1f02d421a03bb9848f3257ae16 (diff) | |
Fixed flags displaying and revealement logic for flags handling
Diffstat (limited to 'src/Game.hpp')
| -rw-r--r-- | src/Game.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Game.hpp b/src/Game.hpp index 599259f..15eadd3 100644 --- a/src/Game.hpp +++ b/src/Game.hpp @@ -1,3 +1,5 @@ +#include <string> + #pragma once class Game { @@ -8,6 +10,8 @@ private: int boardWidth; int boardHeight; + std::string msg; + bool bombMap[MAX_H][MAX_W]; int tileMap[MAX_H][MAX_W]; bool revealedMap[MAX_H][MAX_W]; @@ -23,7 +27,10 @@ public: void initBoard(); void updateBoard(); void displayBoard(); + int bombCheck(int x, int y); + + void revealTile(int x, int y); void input(); }; |
