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:
parent
10c152a1c2
commit
d515c33afc
2 changed files with 27 additions and 14 deletions
3
map.hpp
3
map.hpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue