Removed the variable limit setting since it's never used and instead just have WALL_PATH_LIMIT.

This commit is contained in:
Zed A. Shaw 2024-12-05 08:41:10 -05:00
parent 9abb39a3bf
commit eb0ca38e30
19 changed files with 50 additions and 58 deletions

11
map.hpp
View file

@ -10,12 +10,7 @@
#include "lights.hpp"
#include "pathing.hpp"
#include "matrix.hpp"
const int INV_WALL = 0;
const int INV_SPACE = 1;
const int WALL_VALUE = 1;
const int SPACE_VALUE = 0;
const int WALL_PATH_LIMIT = 1000;
#include "constants.hpp"
using lighting::LightSource;
@ -35,7 +30,6 @@ void dump_map(const std::string &msg, Matrix &map, int show_x=-1, int show_y=-1)
class Map {
public:
int $limit;
size_t $width;
size_t $height;
Matrix $walls;
@ -44,7 +38,7 @@ public:
Map(size_t width, size_t height);
Map(Matrix &walls, Pathing &paths, int limit);
Map(Matrix &walls, Pathing &paths);
// disable copying
Map(Map &map) = delete;
@ -52,7 +46,6 @@ public:
Matrix& paths() { return $paths.paths(); }
Matrix& input_map() { return $paths.input(); }
Matrix& walls() { return $walls; }
int limit() { return $limit; }
size_t width() { return $width; }
size_t height() { return $height; }
int distance(Point to) { return $paths.distance(to); }