-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameSpace.h
executable file
·38 lines (33 loc) · 1.03 KB
/
gameSpace.h
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
#include "pieceSpecializations.h"
namespace gameSpace{
class cell{
private:
displayType currentDisplay;
piece* pieceInstance;
int pieceIndex;
bool wasAttacked;
public:
displayType getCurrentDisplay();
void setCurrentDisplay(displayType newDisplay);
piece* getPiece();
void setPiece(piece* newPiece);
int getPieceIndex();
void setPieceIndex(int id);
void setAttacked(bool attacked);
bool getAttacked();
cell();
~cell();
};
class playSpace{
private:
std::vector<std::vector<cell>> userBoard;
void setUserBoard();
public:
std::vector<std::vector<cell>> & getUserBoard();
cell & getBoardPosition (int posX, int posY);
void setBoardPosition (int posX, int posY, displayType display);
bool checkFreePosition(int x, int y);
playSpace();
~playSpace() = default;
};
}