aboutsummaryrefslogtreecommitdiffstats
path: root/include/chess_piece.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/chess_piece.hpp')
-rw-r--r--include/chess_piece.hpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/chess_piece.hpp b/include/chess_piece.hpp
index ce6ca5c..5febc99 100644
--- a/include/chess_piece.hpp
+++ b/include/chess_piece.hpp
@@ -35,12 +35,8 @@ class ChessPiece {
public:
// constructor sets the initial position of the chess piece to 0, 0
ChessPiece();
- // using the default constructor for the copy constructor
- ChessPiece(const ChessPiece& other) = default;
// initialise piece at a specific location on the board to save code
ChessPiece(const int& x, const int& y, const Colour& colour);
- // using default virtual d, const Colour &colourfault;
- virtual ~ChessPiece() = default;
// pure virtual function to move a piece as it depends completely on the
// implementation of the piece
@@ -60,9 +56,7 @@ protected:
class King : public ChessPiece {
public:
King();
- King(const King& other) = default;
King(const int& x, const int& y, const Colour& colour);
- ~King() = default;
virtual void move(const int& x, const int& y);
protected:
@@ -75,9 +69,7 @@ private:
class Queen : public ChessPiece {
public:
Queen();
- Queen(const Queen& other) = default;
Queen(const int& x, const int& y, const Colour& colour);
- ~Queen() = default;
virtual void move(const int& x, const int& y);
protected:
@@ -90,9 +82,7 @@ private:
class Rook : public ChessPiece {
public:
Rook();
- Rook(const Rook& other) = default;
Rook(const int& x, const int& y, const Colour& colour);
- ~Rook() = default;
virtual void move(const int& x, const int& y);
protected:
@@ -105,9 +95,7 @@ private:
class Bishop : public ChessPiece {
public:
Bishop();
- Bishop(const Bishop &other) = default;
Bishop(const int& x, const int& y, const Colour& colour);
- ~Bishop() = default;
virtual void move(const int& x, const int& y);
protected:
@@ -120,9 +108,7 @@ private:
class Knight : public ChessPiece {
public:
Knight();
- Knight(const Knight& other) = default;
Knight(const int& x, const int& y, const Colour& colour);
- ~Knight() = default;
virtual void move(const int& x, const int& y);
protected:
@@ -135,9 +121,7 @@ private:
class Pawn : public ChessPiece {
public:
Pawn();
- Pawn(const Pawn& other) = default;
Pawn(const int& x, const int& y, const Colour& colour);
- ~Pawn() = default;
virtual void move(const int& x, const int& y);
protected: