Website Summary Files Commits Branches @commit @diff @stats
path: root / DiamondProblemAndPolymorphism / Chess / Figure.hpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 1 deletions
-rw-r--r--DiamondProblemAndPolymorphism/Chess/Figure.hpp3
diff --git a/DiamondProblemAndPolymorphism/Chess/Figure.hpp b/DiamondProblemAndPolymorphism/Chess/Figure.hpp
index 157659b..2d3e73e 100644
--- a/DiamondProblemAndPolymorphism/Chess/Figure.hpp
+++ b/DiamondProblemAndPolymorphism/Chess/Figure.hpp
@@ -1,3 +1,4 @@
+#pragma once
#include <iostream>
using namespace std;
@@ -21,7 +22,7 @@ public:
virtual ~Figure(){};
};
-Figure::Figure(int xCoord, int yCoord, bool isWhite);
+Figure::Figure(int xCoord, int yCoord, bool isWhite)
{
if (isValidCoord(xCoord, yCoord))
{