blob: d4d14e6d4a8c1f3454bd30ace3536acab43855ee (
plain)
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
|
/*
*
* author: Yann Herklotz
* username: ymherklotz
* email: ymherklotz@gmail.com
* date created: 13/01/17
*
* -----------------------------------------------------------------------------
*
* Chess Piece class implementation
*
*/
#include "chess_piece.hpp"
using namespace ymhChessAI;
ChessPiece::ChessPiece() : m_x(0), m_y(0), m_colour(Colour::White) {
}
ChessPiece::ChessPiece(const int& x, const int& y, const Colour& colour) : m_x(x), m_y(y), m_colour(colour) {
}
EmptyPiece::EmptyPiece() : ChessPiece() {
}
EmptyPiece::EmptyPiece(const int& x, const int& y, const Colour& colour) : ChessPiece(x, y, colour) {
}
void EmptyPiece::move(const int& x, const int& y) {
}
|