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() {
return this->location;
}
void Feature::setLocation(Coord newLoc) {
this->location = newLoc;
}
Feature::~Feature() {}
......@@ -7,6 +7,7 @@ class Feature {
Feature(char, Coord);
char getSymbol();
Coord getLocation();
void setLocation(Coord);
virtual ~Feature();
private:
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