diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-18 13:00:39 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-18 13:00:39 +0200 |
commit | fa5af93abd9dc2861ca9c9da9a434d46b88acd5d (patch) | |
tree | 5dfdcba042e8f039a91b202996a57a3c72c27d04 /crawl-ref/source/traps.h | |
parent | ed2f23e453161cf23359ec9716b89ea9ed05d027 (diff) | |
download | crawl-ref-fa5af93abd9dc2861ca9c9da9a434d46b88acd5d.tar.gz crawl-ref-fa5af93abd9dc2861ca9c9da9a434d46b88acd5d.zip |
Remove some duplicated logic.
Diffstat (limited to 'crawl-ref/source/traps.h')
-rw-r--r-- | crawl-ref/source/traps.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/crawl-ref/source/traps.h b/crawl-ref/source/traps.h index 941bf44019..c4783aca07 100644 --- a/crawl-ref/source/traps.h +++ b/crawl-ref/source/traps.h @@ -35,14 +35,8 @@ trap_def* find_trap(const coord_def& where); trap_type get_trap_type(const coord_def& where); const char *trap_name_at(const coord_def& c); -trap_type random_trap (); -trap_type random_trap (dungeon_feature_type feat); -trap_type random_trap (bool (*checker) (trap_type)); - -bool trap_is_mechanical (trap_type trap); -bool trap_is_magical (trap_type trap); -bool trap_is_natural (trap_type trap); - +trap_type random_trap(); +trap_type random_trap(dungeon_feature_type feat); bool is_valid_shaft_level(const level_id &place = level_id::current()); bool shaft_known(int depth, bool randomly_placed); |