From f8f1e6fb68e2cfd7d725f4fdde94d6d45545f30b Mon Sep 17 00:00:00 2001 From: Enne Walker Date: Mon, 2 Nov 2009 08:51:09 -0500 Subject: Lua builder funcs act on map_lines, not grd. This lets regular vaults use the same Lua functions that layout vaults do. Convert functions in l_dgnbld that acted on grd. Update layout vaults to use these new functions. Also, remove l_dgn_bf, as all of its functionality is now in l_dgnbld. --- crawl-ref/source/mapdef.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'crawl-ref/source/mapdef.h') diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h index c08093243c..de55bd511c 100644 --- a/crawl-ref/source/mapdef.h +++ b/crawl-ref/source/mapdef.h @@ -302,10 +302,21 @@ public: rectangle_iterator get_iter() const; char operator () (const coord_def &c) const; char& operator () (const coord_def &c); + char operator () (int x, int y) const; + char& operator () (int x, int y); + + bool in_bounds(const coord_def &c) const; // Extend map dimensions with glyph 'fill' to minimum width and height. void extend(int min_width, int min_height, char fill); + bool fill_zone(travel_distance_grid_t &tpd, const coord_def &start, + const coord_def &tl, const coord_def &br, int zone, + const char *wanted, const char *passable) const; + + int count_feature_in_box(const coord_def &tl, const coord_def &br, + const char *feat) const; + private: void init_from(const map_lines &map); template void clear_vector(V &vect); -- cgit v1.2.3-54-g00ecf