We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb1bd1 commit 8178052Copy full SHA for 8178052
include/CornerPiece.h
@@ -20,7 +20,7 @@ class CornerPiece : public GamePiece {
20
Player& getOwner();
21
const Player& getOwner() const;
22
23
- void accept(GameVisitor& visitor);
+ virtual void accept(GameVisitor& visitor)=0;
24
25
virtual int getResourceModifier();
26
src/CornerPiece.cpp
@@ -17,14 +17,6 @@ CornerPiece::~CornerPiece() {
17
18
}
19
-/**
- * Visitor double-dispatch method.
- * @param visitor The visiting instance.
- */
-void CornerPiece::accept(GameVisitor& visitor) {
- visitor.visit(*this);
-}
27
-
28
/**
29
* Getter for the owner of the piece.
30
* @return The piece's owner.
0 commit comments