summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stairs.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-06-21 14:49:18 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-06-21 14:49:18 +0200
commit672e3193c3099a7519406dd7f26d4f99c1d5f8d8 (patch)
tree4571f8b3ff4a34e00a34c586f5160c3046b4e598 /crawl-ref/source/stairs.h
parent69e7e4455aac3d151999314f2531713cfe189b2a (diff)
downloadcrawl-ref-672e3193c3099a7519406dd7f26d4f99c1d5f8d8.tar.gz
crawl-ref-672e3193c3099a7519406dd7f26d4f99c1d5f8d8.zip
Refactor the handling of stair destinations, unifying up and down directions.
This adds quite a bit of validation, and also allows querying portal destinations without redundant code.
Diffstat (limited to 'crawl-ref/source/stairs.h')
-rw-r--r--crawl-ref/source/stairs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/stairs.h b/crawl-ref/source/stairs.h
index 36fad4bc0c..caf1f7520b 100644
--- a/crawl-ref/source/stairs.h
+++ b/crawl-ref/source/stairs.h
@@ -7,7 +7,9 @@
#define STAIRS_H
bool check_annotation_exclusion_warning();
-level_id upstairs_destination();
+level_id stair_destination(dungeon_feature_type feat, const std::string &dst,
+ bool for_real = false);
+level_id stair_destination(coord_def pos, bool for_real = false);
void down_stairs(dungeon_feature_type force_stair = DNGN_UNSEEN);
void up_stairs(dungeon_feature_type force_stair = DNGN_UNSEEN);
void new_level(bool restore = false);