-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpawn.cpp
More file actions
40 lines (32 loc) · 872 Bytes
/
Copy pathpawn.cpp
File metadata and controls
40 lines (32 loc) · 872 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
#include "chessgame.h"
#include <QDebug>
#include <array>
using namespace std;
string Pawn::getName(){
return Pawn::name;
}
void Pawn::setColor(string color){
Pawn::color = color;
}
/*!
* \brief Pawn::checkPossibleMove Function return possible movex of object
* \param position Current position of object
* \param ChessBoard Current position of all object on chess board
* \return List boolean, which field is possible to move on
*/
array<array<bool,8>,8> Pawn::checkPossibleMove(array<int, 2> position, array<array<Pawn*,8>,8> ChessBoard){
array<array<bool,8>,8> possibleMoves;
return(possibleMoves);
}
string Pawn::getColor(){
return (Pawn::color);
}
bool Pawn::getFirstMove(){
return ( Pawn::firstMove);
}
void Pawn::setFirstMove(bool isFirstMove){
Pawn::firstMove = isFirstMove;
}
QString Pawn::getIconName(){
return "";
}