aboutsummaryrefslogtreecommitdiffstats
path: root/src/chess_piece.cpp
diff options
context:
space:
mode:
authorymherklotz <ymherklotz@gmail.com>2017-01-14 14:17:26 +0000
committerymherklotz <ymherklotz@gmail.com>2017-01-14 14:17:26 +0000
commita5bc94a36fe37fb20eba61516da3b6b58208537b (patch)
tree30ba838ba6ece239c006dfae6db21d085df81832 /src/chess_piece.cpp
parent6fc3dfc10ce0e690b0de9c811e617dc76104db40 (diff)
downloadChessAI-a5bc94a36fe37fb20eba61516da3b6b58208537b.tar.gz
ChessAI-a5bc94a36fe37fb20eba61516da3b6b58208537b.zip
added colour to pieces and comments
Diffstat (limited to 'src/chess_piece.cpp')
-rw-r--r--src/chess_piece.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/chess_piece.cpp b/src/chess_piece.cpp
index 8d4cb94..ee307e2 100644
--- a/src/chess_piece.cpp
+++ b/src/chess_piece.cpp
@@ -1,12 +1,22 @@
+/*
+ *
+ * author: Yann Herklotz
+ * username: ymherklotz
+ * email: ymherklotz@gmail.com
+ *
+ * -----------------------------------------------------------------------------
+ *
+ * Chess Piece class implementation
+ *
+ */
+
#include "chess_piece.hpp"
using namespace ymhChessAI;
-// Chess Piece Base class that all the pieces inherit from
-
-ChessPiece::ChessPiece() : m_x(0), m_y(0) {
+ChessPiece::ChessPiece() : m_x(0), m_y(0), m_colour(Colour::White) {
}
-ChessPiece::ChessPiece(const int& x, const int& y) : m_x(x), m_y(y) {
+ChessPiece::ChessPiece(const int& x, const int& y, const Colour& colour) : m_x(x), m_y(y), m_colour(colour) {
}