aboutsummaryrefslogtreecommitdiffstats
path: root/src/chess_piece.cpp
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2017-01-17 15:42:18 +0000
committerzedarider <ymherklotz@gmail.com>2017-01-17 15:42:18 +0000
commitf0799aef3ff8c4a8e8ffea79c963b8f128c462b9 (patch)
treeef496e7326148dd29d555eb017155fcb7af234f8 /src/chess_piece.cpp
parent088b948122cbf24dd9dc1dfedf4be2724bab2157 (diff)
downloadChessAI-f0799aef3ff8c4a8e8ffea79c963b8f128c462b9.tar.gz
ChessAI-f0799aef3ff8c4a8e8ffea79c963b8f128c462b9.zip
fixed the chess board and added empty pieces to fill holes, also added forward declarations
Diffstat (limited to 'src/chess_piece.cpp')
-rw-r--r--src/chess_piece.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/chess_piece.cpp b/src/chess_piece.cpp
index 626377e..d4d14e6 100644
--- a/src/chess_piece.cpp
+++ b/src/chess_piece.cpp
@@ -21,3 +21,12 @@ 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) {
+}