summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 13:29:12 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 13:29:12 +0000
commit4304e2c7598ce1bafb208194f3835f4450b393a6 (patch)
treeab0cd4e8038bbe4964a3fa4011c4169ed0ac1dea /crawl-ref/source/travel.h
parent9db5b6ec1ec24524e5bce03d6d6e03edcd26afa2 (diff)
downloadcrawl-ref-4304e2c7598ce1bafb208194f3835f4450b393a6.tar.gz
crawl-ref-4304e2c7598ce1bafb208194f3835f4450b393a6.zip
Cleanup of input() in acr.cc.
Changed travel API - it now returns the proper command_type instead of using the move_x, move_y variables. IMPORTANT: While I believe that DOS support is maintained, I might have broken it and I can't test myself. Someone with a DOS console should test this. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@66 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r--crawl-ref/source/travel.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h
index e4478af0fb..de3ebfcf8e 100644
--- a/crawl-ref/source/travel.h
+++ b/crawl-ref/source/travel.h
@@ -31,8 +31,9 @@ unsigned char is_waypoint(int x, int y);
void update_excludes();
bool is_stair(unsigned gridc);
bool is_travelable_stair(unsigned gridc);
-int stair_direction(int stair_feat);
+command_type stair_direction(int stair_feat);
bool is_player_mapped(unsigned char envch);
+command_type direction_to_command( char x, char y );
bool is_resting( void );
bool can_travel_interlevel();
@@ -61,7 +62,7 @@ void start_translevel_travel(bool prompt_for_destination = true);
void start_travel(int x, int y);
-void travel(int *keyin, char *move_x, char *move_y);
+command_type travel();
int travel_direction(unsigned char branch, int subdungeondepth);
@@ -351,6 +352,8 @@ private:
int level_distance(level_id first, level_id second);
+bool can_travel_interlevel();
+
extern TravelCache travel_cache;
#endif // TRAVEL_H