summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 03:03:37 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 03:03:37 +0000
commit6d752d6fba7259fcb9dcca0566cbc1826d14d218 (patch)
treec1533a338bf31c2fecef2ad42f5ca1d6e78721f1 /crawl-ref/source/terrain.h
parentfe72c7328fd2e8419debec5a3b82758af469fdc3 (diff)
downloadcrawl-ref-6d752d6fba7259fcb9dcca0566cbc1826d14d218.tar.gz
crawl-ref-6d752d6fba7259fcb9dcca0566cbc1826d14d218.zip
Include secret doors in door-clustering (gates) when opening doors.
In otherwords, if there's a line of secret doors with just one non-secret closed door among them and the non-secret door is opened, open up all the secret doors. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5744 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/terrain.h')
-rw-r--r--crawl-ref/source/terrain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/terrain.h b/crawl-ref/source/terrain.h
index 5ab9eb8a18..b7cbf4313f 100644
--- a/crawl-ref/source/terrain.h
+++ b/crawl-ref/source/terrain.h
@@ -46,6 +46,9 @@ dungeon_feature_type altar_for_god( god_type god );
bool grid_is_branch_stairs( dungeon_feature_type grid );
void find_connected_identical(coord_def d, dungeon_feature_type ft,
std::set<coord_def>& out);
+void find_connected_range(coord_def d, dungeon_feature_type ft_min,
+ dungeon_feature_type ft_max,
+ std::set<coord_def>& out);
void get_door_description(int door_size, const char** adjective, const char** noun);
dungeon_feature_type grid_secret_door_appearance( int gx, int gy );
bool grid_destroys_items( dungeon_feature_type grid );