summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authorEnne Walker <ennewalker@users.sourceforge.net>2009-11-02 08:51:09 -0500
committerEnne Walker <ennewalker@users.sourceforge.net>2009-11-02 09:00:06 -0500
commitf8f1e6fb68e2cfd7d725f4fdde94d6d45545f30b (patch)
tree260177da8227675fd57a7301f9a97c0c84c57cb2 /crawl-ref/source/mapdef.h
parent0ba4567b4b44c9332bd978ef266f4af41c052779 (diff)
downloadcrawl-ref-f8f1e6fb68e2cfd7d725f4fdde94d6d45545f30b.tar.gz
crawl-ref-f8f1e6fb68e2cfd7d725f4fdde94d6d45545f30b.zip
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.
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h11
1 files changed, 11 insertions, 0 deletions
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 <typename V> void clear_vector(V &vect);