Now have a configurable displayable tilemap to do better tiles.
This commit is contained in:
parent
b66a3154c7
commit
7fe6ad174d
10 changed files with 40 additions and 16 deletions
7
map.hpp
7
map.hpp
|
@ -11,6 +11,7 @@
|
|||
#include "pathing.hpp"
|
||||
#include "matrix.hpp"
|
||||
#include "constants.hpp"
|
||||
#include "tilemap.hpp"
|
||||
|
||||
using lighting::LightSource;
|
||||
|
||||
|
@ -30,7 +31,7 @@ class Map {
|
|||
public:
|
||||
size_t $width;
|
||||
size_t $height;
|
||||
Matrix $tiles;
|
||||
TileMap $tiles;
|
||||
Matrix $walls;
|
||||
Pathing $paths;
|
||||
std::vector<Room> $rooms;
|
||||
|
@ -43,7 +44,7 @@ public:
|
|||
Map(Map &map) = delete;
|
||||
|
||||
Matrix& paths() { return $paths.paths(); }
|
||||
Matrix& tiles() { return $tiles; }
|
||||
TileMap& tiles() { return $tiles; }
|
||||
Matrix& input_map() { return $paths.input(); }
|
||||
Matrix& walls() { return $walls; }
|
||||
size_t width() { return $width; }
|
||||
|
@ -68,4 +69,6 @@ public:
|
|||
|
||||
void dump(int show_x=-1, int show_y=-1);
|
||||
bool INVARIANT();
|
||||
|
||||
void load_tiles();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue