diff --git a/src/feature.cpp b/src/feature.cpp index 36f871f4fc7c221f6f07afc12876407aec31021d..0f0f98f4276b779b2eabf31b573c194566eca241 100644 --- a/src/feature.cpp +++ b/src/feature.cpp @@ -13,4 +13,8 @@ Coord Feature::getLocation() { return this->location; } +void Feature::setLocation(Coord newLoc) { + this->location = newLoc; +} + Feature::~Feature() {} diff --git a/src/include/feature.h b/src/include/feature.h index 6e4b42b2f9cc997cbfc2ee9ee91f6a9329ada147..bcafffd047b2a13f501319bf0e6cb702f57c07aa 100644 --- a/src/include/feature.h +++ b/src/include/feature.h @@ -7,6 +7,7 @@ class Feature { Feature(char, Coord); char getSymbol(); Coord getLocation(); + void setLocation(Coord); virtual ~Feature(); private: Coord location;