From f0799aef3ff8c4a8e8ffea79c963b8f128c462b9 Mon Sep 17 00:00:00 2001 From: zedarider Date: Tue, 17 Jan 2017 15:42:18 +0000 Subject: fixed the chess board and added empty pieces to fill holes, also added forward declarations --- src/chess_piece.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/chess_piece.cpp') 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) { +} -- cgit