summaryrefslogtreecommitdiff
path: root/src/Game.hpp
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-02-09 14:21:23 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-02-09 14:21:23 +0100
commitc72d094dec277fe99089422c1e7fd990e5e086da (patch)
tree1ed237764f8894d7e8199ff5144a10f308a0a548 /src/Game.hpp
parent65e7a56dbd3e6c1f02d421a03bb9848f3257ae16 (diff)
Fixed flags displaying and revealement logic for flags handling
Diffstat (limited to 'src/Game.hpp')
-rw-r--r--src/Game.hpp7
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();
};