aboutsummaryrefslogtreecommitdiffstats
path: root/src/chess_piece.cpp
blob: 33ce34f8128984870ac9e38c8632d8cb2b82fdcc (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) : ChessPiece(x, y, Colour::None) {
}

void EmptyPiece::move(const int& x, const int& y) {
}