diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-10-11 19:16:28 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-10-11 19:26:18 +1000 |
commit | 260cd2908b2a61fdcf21e692de91bfb54813b6aa (patch) | |
tree | 70604e38e80cca8fa0e6245d0708fc892342b12f /crawl-ref/source/traps.h | |
parent | 2172c6ab0374a0ef185535a0749edbef334d20be (diff) | |
download | crawl-ref-260cd2908b2a61fdcf21e692de91bfb54813b6aa.tar.gz crawl-ref-260cd2908b2a61fdcf21e692de91bfb54813b6aa.zip |
Tweak feature mimics: trap mimics.
Now they:
* use a randomly chosen trap as their appearance (purely
mechanical tough)
* are now known as "<x> mimic" as opposed to "mimic".
Diffstat (limited to 'crawl-ref/source/traps.h')
-rw-r--r-- | crawl-ref/source/traps.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/traps.h b/crawl-ref/source/traps.h index 8a612a23c8..519beb145b 100644 --- a/crawl-ref/source/traps.h +++ b/crawl-ref/source/traps.h @@ -35,6 +35,15 @@ 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); + + bool is_valid_shaft_level(const level_id &place = level_id::current()); bool shaft_known(int depth, bool randomly_placed); level_id generic_shaft_dest(coord_def pos, bool known); |