summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-08-26 01:39:50 +0200
committerRaphael Langella <raphael.langella@gmail.com>2011-09-05 23:20:15 +0200
commit9308f9eeee1717cd2f05133db6122711768b7e0a (patch)
treece7b95bd8ff3e4360b767e11170bc3bf81dd74c4 /crawl-ref/source/travel.h
parentfa56b1733250c6cda6922db9dc107aed211cc873 (diff)
downloadcrawl-ref-9308f9eeee1717cd2f05133db6122711768b7e0a.tar.gz
crawl-ref-9308f9eeee1717cd2f05133db6122711768b7e0a.zip
Dungeon overview and travel handle multiple branch entries.
Having more than 3 entries for a branch (at least 2 mimics) can mess up the dungeon overview layout, but it should be extremely rare and it doesn't crash. A mimic found after the branch has been visited won't be added since it is obvious. It can be generated anyway because it's better to have an obvious mimic than letting the player influence monster and dungeon generation with his actions (visiting a branch). Dungeon overview is properly cleaned up when mimics are revealed, but not when the branch is entered.
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r--crawl-ref/source/travel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h
index 522548afe5..69f10f51bc 100644
--- a/crawl-ref/source/travel.h
+++ b/crawl-ref/source/travel.h
@@ -105,6 +105,7 @@ void prevent_travel_to(const std::string &dungeon_feature_name);
void arrange_features(std::vector<coord_def> &features);
int level_distance(level_id first, level_id second);
level_id find_deepest_explored(level_id curr);
+bool branch_entered(branch_type branch);
bool can_travel_to(const level_id &lid);
bool can_travel_interlevel();