diff options
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index 28d980baef..c8bca8e0c6 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -143,6 +143,13 @@ public: int level_type; public: + // Returns the level_id of the current level. + static level_id current(); + + // Returns the level_id of the level that the stair/portal/whatever at + // 'pos' on the current level leads to. + static level_id get_next_level_id(const coord_def &pos); + level_id() : branch(0), depth(-1), level_type(LEVEL_DUNGEON) { } level_id(int br, int dep, int ltype = LEVEL_DUNGEON) : branch(br), depth(dep), level_type(ltype) @@ -160,13 +167,6 @@ public: return (branch != -1 && depth != -1) || level_type != LEVEL_DUNGEON; } - // Returns the level_id of the current level. - static level_id current(); - - // Returns the level_id of the level that the stair/portal/whatever at - // 'pos' on the current level leads to. - static level_id get_next_level_id(const coord_def &pos); - bool operator == ( const level_id &id ) const { return branch == id.branch && depth == id.depth |