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

add getter for level depth

parent c1c02a24
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ class Level {
Terrain& operator[](Coord);
void generate(PlayerChar);
bool contains(Coord);
int getDepth();
static Coord getSize() { return Coord(X_SIZE, Y_SIZE); };
// Add a mob to the level's collection
......
......@@ -27,6 +27,10 @@ Level::Level(int depth)
}
}
int Level::getDepth() {
return depth;
}
Terrain& Level::operator[](Coord coord) {
return tileAt(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