Make the lighting and the enemy pathing separate things, but now I think this needs to come out of map entirely.

This commit is contained in:
Zed A. Shaw 2024-12-01 08:33:15 -05:00
parent 10c152a1c2
commit d515c33afc
2 changed files with 27 additions and 14 deletions

View file

@ -42,6 +42,8 @@ public:
Matrix $walls;
Matrix $paths;
Matrix $lightmap;
Matrix $light_paths;
Matrix $light_input;
std::vector<Room> $rooms;
Map(Matrix input_map, Matrix walls_map, int limit);
@ -76,6 +78,7 @@ public:
bool neighbors(Point &out, bool up);
bool inmap(size_t x, size_t y);
bool iswall(size_t x, size_t y);
void pathing_for(Matrix &input_map, Matrix &path_for);
void make_paths();
void set_target(const Point &at, int value=0);
void clear_target(const Point &at);