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

add walls to tiles.h/cpp

parent e07c32e1
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
class Terrain {
public:
enum Passability {P_Blocked, Passable};
enum Passability {Blocked, Passable};
enum Visibility {Opaque, Corridor, Transparent};
Terrain(char, Visibility, Passability);
char getChar();
......
......@@ -8,4 +8,9 @@ class Floor : public Terrain {
Floor();
};
class Wall : public Terrain {
public:
Wall();
};
#endif
......@@ -4,3 +4,7 @@
Floor::Floor()
: Terrain(' ', Terrain::Transparent, Terrain::Passable)
{}
Wall::Wall()
: Terrain('#', Terrain::Opaque, Terrain::Blocked)
{}
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