Now have a configurable displayable tilemap to do better tiles.

This commit is contained in:
Zed A. Shaw 2024-12-24 01:36:25 -05:00
parent b66a3154c7
commit 7fe6ad174d
10 changed files with 40 additions and 16 deletions

View file

@ -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();
};