diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-25 15:09:34 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-25 15:09:34 +0100 |
| commit | 67f48505819520f057ec933721a52a85868ee88f (patch) | |
| tree | c7360d20492b2d48e87f80aa498a3b94e67f5cbc /src | |
| parent | 02b51f560afcc6d5222ee91db592f8757b28cffe (diff) | |
experimental builds and header fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/globals.hpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/game/globals.hpp b/src/game/globals.hpp index 6dfd429..2616013 100644 --- a/src/game/globals.hpp +++ b/src/game/globals.hpp @@ -1,7 +1,25 @@ #ifndef GAME_HPP #define GAME_HPP -extern bool inGame; -void game(int diff); +#include <iostream> + +class Game { +private: + static constexpr int MAX_W = 32; + static constexpr int MAX_H = 32; + + int boardWidth; + int boardHeight; + + bool bombMap[MAX_H][MAX_W]; + int tileMap[MAX_H][MAX_W]; + + int mines; + +public: + void initDiff(int diff); + void initBoard(); + void displayBoard(); +}; #endif |
