Skip to content

Commit 8178052

Browse files
Kyle GrageKyle Grage
authored andcommitted
cp error
1 parent 4bb1bd1 commit 8178052

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

include/CornerPiece.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CornerPiece : public GamePiece {
2020
Player& getOwner();
2121
const Player& getOwner() const;
2222

23-
void accept(GameVisitor& visitor);
23+
virtual void accept(GameVisitor& visitor)=0;
2424

2525
virtual int getResourceModifier();
2626

src/CornerPiece.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ CornerPiece::~CornerPiece() {
1717

1818
}
1919

20-
/**
21-
* Visitor double-dispatch method.
22-
* @param visitor The visiting instance.
23-
*/
24-
void CornerPiece::accept(GameVisitor& visitor) {
25-
visitor.visit(*this);
26-
}
27-
2820
/**
2921
* Getter for the owner of the piece.
3022
* @return The piece's owner.

0 commit comments

Comments
 (0)