-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardMain.h
37 lines (30 loc) · 1020 Bytes
/
BoardMain.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
/*
This class describes main game board. It includes vector with the positions of cells (board) and vectors of notifications.
void clearBoard() is used for initialize new game. There are the idPieces on board is cleared. The object of this class is used for checking legal move of pieces.
*/
#pragma once
#include "source.h"
#include "Piece.h"
class CBoardMain
{
vector<vector<sCell>> board;
vector<string> wordsNotificat;
vector<string> numbersNotificat;
//-----------------prototype functions--------------------//
private:
void _init();
void _initNotification();
public:
CBoardMain();
~CBoardMain();
void clearBoard();
void deleteIDPiece(int aI, int aJ);
//-------------get and set functions-------------//
const sCell &getCell(int aI, int aJ)const;
const char getIDPiece(int aI, int aJ)const;
vector<vector<sCell>>* getPtrBoard();
void setIDPiece(int aI, int aJ, char aID);
void setPieces(vector<CPiece *> aVectorPieces);
//--------------draw fanctions-------------------//
void draw();
};