-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboard.h
More file actions
43 lines (40 loc) · 917 Bytes
/
board.h
File metadata and controls
43 lines (40 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Created by Pablo Sabogal on 4/22/2024.
//
#ifndef MINESWEEPER_BOARD_H
#define MINESWEEPER_BOARD_H
#include "tile.h"
#include "TextureManager.h"
#include <vector>
using namespace std;
class Board{
private:
int mineCount = 0;
int flagCount = 0;
vector<Tile> board;
int width;
int length;
int mine;
bool debug = false;
bool end = false;
bool victory = false;
public:
Board(int width1, int length1, int mine1);
void Initialize();
void Debug();
void GameOver();
void RevealTile(Tile* tile);
void AddFlag(Tile* tile);
Tile& GetTile(int tile);
int TileCount();
int GetMineCount();
void SetNumber();
void SetNeighbor();
bool GetVictory();
void SetMineCount(int mineCount1);
void Clear();
bool GetEnd();
void SetTile();
void UnsetTile();
};
#endif //MINESWEEPER_BOARD_H