diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-10-15 13:52:24 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-11-04 18:49:49 +0100 |
commit | c346361417241d0e4d7531ed65a1ca5b4f497139 (patch) | |
tree | 8c76c3b32dac858b2a36df7d032ff50e49545384 /crawl-ref/source/place.h | |
parent | f4a9aed257bbdd264fb1ef43e7b29b3cc599cd65 (diff) | |
download | crawl-ref-c346361417241d0e4d7531ed65a1ca5b4f497139.tar.gz crawl-ref-c346361417241d0e4d7531ed65a1ca5b4f497139.zip |
Get rid of level_type, unify BRANCH_*, LEVEL_* and portal vaults.
Diffstat (limited to 'crawl-ref/source/place.h')
-rw-r--r-- | crawl-ref/source/place.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/crawl-ref/source/place.h b/crawl-ref/source/place.h index 1fcf990fc1..c1c57fb8b5 100644 --- a/crawl-ref/source/place.h +++ b/crawl-ref/source/place.h @@ -13,12 +13,10 @@ // unsigned short get_packed_place(); -unsigned short get_packed_place(branch_type branch, int subdepth, - level_area_type level_type); +unsigned short get_packed_place(branch_type branch, int subdepth); -int place_branch(unsigned short place); +branch_type place_branch(unsigned short place); int place_depth(unsigned short place); -int place_type(unsigned short place); std::string short_place_name(unsigned short place); std::string short_place_name(level_id id); @@ -42,11 +40,15 @@ int player_branch_depth(); bool single_level_branch(branch_type branch); -bool level_type_exits_up(level_area_type type); -bool level_type_exits_down(level_area_type type); -bool level_type_allows_followers(level_area_type type); -bool level_type_is_stash_trackable(level_area_type type); +bool branch_exits_up(branch_type branch); +bool branch_exits_down(branch_type branch); +bool branch_allows_followers(branch_type branch); +bool branch_is_stash_trackable(branch_type branch); std::vector<level_id> all_dungeon_ids(); +#if TAG_MAJOR_VERSION == 32 +unsigned short upgrade_packed_place(unsigned short place); +#endif + #endif |