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

add Feature class

parent 9eb7dd89
No related branches found
No related tags found
No related merge requests found
#include "include/coord.h"
#include "include/feature.h"
Feature::Feature(char symbol, Coord coord)
: symbol(symbol)
, coord(coord)
{}
char Feature::getChar() {
return symbol;
}
Coord Feature::getCoord() {
return coord;
}
#pragma once
#include "coord.h"
class Feature {
public:
Coord getCoord();
Feature(char, Coord);
char getChar();
private:
char symbol;
Coord coord;
};
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