diff options
Diffstat (limited to 'src/game/globals.hpp')
| -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 |
