diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-02 14:03:40 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-02 14:03:40 -0800 |
commit | 45447fb9f45ccf3dbf38993a1af102e8c60c693e (patch) | |
tree | e58691256464e0023461ebe881f9f33e2be0d52e /crawl-ref/source/files.h | |
parent | 0f69bed947d7d06ce3655279d22f32cd15bdd3a1 (diff) | |
download | crawl-ref-45447fb9f45ccf3dbf38993a1af102e8c60c693e.tar.gz crawl-ref-45447fb9f45ccf3dbf38993a1af102e8c60c693e.zip |
Factor a visitor object out of apply_to_level
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r-- | crawl-ref/source/files.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h index 5c639eeb14..eded735f1b 100644 --- a/crawl-ref/source/files.h +++ b/crawl-ref/source/files.h @@ -102,11 +102,20 @@ bool apply_to_all_dungeons(bool (*applicator)()); class level_id; -bool apply_to_level(const level_id &level, bool preserve_current, - bool (*applicator)()); +bool apply_to_level(const level_id &level, bool (*applicator)()); bool is_existing_level(const level_id &level); +class level_excursion +{ + level_id original; + +public: + level_excursion(); + ~level_excursion(); + + void go_to(const level_id &level); +}; // last updated 12may2000 {dlb} /* *********************************************************************** |