From 052f906cf8253d9586caf5e735b1677a490833bb Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 9 Feb 2007 13:02:06 +0000 Subject: Modified wizmode &" and &~ commands so that you can jump to any level of any branch instead of only up and down in the current branch. Wizmode &d, &u remains unchanged, although you can also hit &"> and &"< to do the same thing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@946 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/travel.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'crawl-ref/source/travel.h') diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index e0e24d790f..28d980baef 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -81,6 +81,21 @@ bool can_travel_to(const level_id &lid); bool can_travel_interlevel(); bool prompt_stop_explore(int es_why); +enum translevel_prompt_flags +{ + TPF_NO_FLAGS = 0, + + TPF_ALLOW_WAYPOINTS = 0x1, + TPF_ALLOW_UPDOWN = 0x2, + TPF_REMEMBER_TARGET = 0x4, + TPF_SHOW_ALL_BRANCHES = 0x8, + + TPF_DEFAULT_OPTIONS = TPF_ALLOW_WAYPOINTS | TPF_ALLOW_UPDOWN + | TPF_REMEMBER_TARGET +}; + +level_pos prompt_translevel_target(int prompt_flags = TPF_DEFAULT_OPTIONS); + // Magic numbers for point_distance: // This square is a trap -- cgit v1.2.3-54-g00ecf