diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-01 17:44:09 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-01 17:44:09 +0000 |
commit | bb183e9257bd99caeab9776b3579acf68cb203b1 (patch) | |
tree | ca8904e3d8db4aa6db1991b0ffebdb5d932ea6fe /crawl-ref/source/traps.h | |
parent | e32c3272ea58ddf7bf596bbf0ec5c62ec6c42018 (diff) | |
download | crawl-ref-bb183e9257bd99caeab9776b3579acf68cb203b1.tar.gz crawl-ref-bb183e9257bd99caeab9776b3579acf68cb203b1.zip |
Reworked traps: much much cleaner now. There might be bugs, though.
Traps now remember how much ammo they have. The ammo quantities
(from David) are rather tentative.
Breaks savefiles.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7076 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/traps.h')
-rw-r--r-- | crawl-ref/source/traps.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/crawl-ref/source/traps.h b/crawl-ref/source/traps.h index d939aa3285..bfa5eaa528 100644 --- a/crawl-ref/source/traps.h +++ b/crawl-ref/source/traps.h @@ -12,18 +12,14 @@ #include "enum.h" #include "travel.h" -struct dist; struct bolt; class monsters; -bool trap_item(object_class_type base_type, char sub_type, - const coord_def& where); - // last updated 12may2000 {dlb} /* *********************************************************************** * called from: acr * *********************************************************************** */ -void disarm_trap(struct dist &disa); +void disarm_trap(const coord_def& where); void remove_net_from( monsters *mon ); void free_self_from_net(void); @@ -39,11 +35,9 @@ void player_caught_in_net(void); void clear_trapping_net(void); void check_net_will_hold_monster(monsters *mon); -void itrap(struct bolt &pbolt, int trapped); -void destroy_trap( const coord_def& pos ); -dungeon_feature_type trap_category(trap_type type); -int trap_at_xy(const coord_def& xy); -trap_type trap_type_at_xy(const coord_def& xy); +void destroy_trap(const coord_def& pos); +trap_def* find_trap(const coord_def& where); +trap_type get_trap_type(const coord_def& where); bool is_valid_shaft_level(const level_id &place = level_id::current()); level_id generic_shaft_dest(coord_def pos); |