Skip to content
Snippets Groups Projects
Commit f9349347 authored by Ian Prins's avatar Ian Prins
Browse files

add Feature::setLocation setter

parent 7e9b28c5
No related branches found
No related tags found
No related merge requests found
...@@ -13,4 +13,8 @@ Coord Feature::getLocation() { ...@@ -13,4 +13,8 @@ Coord Feature::getLocation() {
return this->location; return this->location;
} }
void Feature::setLocation(Coord newLoc) {
this->location = newLoc;
}
Feature::~Feature() {} Feature::~Feature() {}
...@@ -7,6 +7,7 @@ class Feature { ...@@ -7,6 +7,7 @@ class Feature {
Feature(char, Coord); Feature(char, Coord);
char getSymbol(); char getSymbol();
Coord getLocation(); Coord getLocation();
void setLocation(Coord);
virtual ~Feature(); virtual ~Feature();
private: private:
Coord location; Coord location;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment