From 45447fb9f45ccf3dbf38993a1af102e8c60c693e Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Mon, 2 Nov 2009 14:03:40 -0800 Subject: Factor a visitor object out of apply_to_level --- crawl-ref/source/files.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/files.h') 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} /* *********************************************************************** -- cgit v1.2.3-54-g00ecf