Initial stab at pulling the pathing out.
This commit is contained in:
parent
d515c33afc
commit
e05335b153
5 changed files with 156 additions and 1 deletions
3
map.hpp
3
map.hpp
|
@ -31,7 +31,6 @@ typedef std::vector<int> MatrixRow;
|
|||
typedef std::vector<MatrixRow> Matrix;
|
||||
|
||||
void dump_map(const std::string &msg, Matrix &map);
|
||||
void add_neighbors(Matrix &closed, size_t j, size_t i);
|
||||
|
||||
class Map {
|
||||
public:
|
||||
|
@ -78,6 +77,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);
|
||||
|
@ -86,6 +86,7 @@ public:
|
|||
|
||||
Point map_to_camera(const Point &loc, const Point &cam_orig);
|
||||
Point center_camera(const Point &around, size_t view_x, size_t view_y);
|
||||
|
||||
void reset_light();
|
||||
void set_light_target(const Point &at, int value=0);
|
||||
void clear_light_target(const Point &at);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue