diff options
Diffstat (limited to 'crawl-ref/source/traps.h')
-rw-r--r-- | crawl-ref/source/traps.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/crawl-ref/source/traps.h b/crawl-ref/source/traps.h new file mode 100644 index 0000000000..4ca0c815d9 --- /dev/null +++ b/crawl-ref/source/traps.h @@ -0,0 +1,65 @@ +/* + * File: traps.h + * Summary: Traps related functions. + * Written by: Linley Henzell + * + * Modified for Crawl Reference by $Author: j-p-e-g $ on $Date: 2007-09-03 06:41:30 -0700 (Mon, 03 Sep 2007) $ + * + * Change History (most recent first): + * + * <1> 9/11/07 MPC Split from misc.h + */ + +#ifndef TRAPS_H +#define TRAPS_H + +#include "enum.h" + +struct dist; +struct bolt; +class monsters; + +bool trap_item(object_class_type base_type, char sub_type, + char beam_x, char beam_y); + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr + * *********************************************************************** */ +void disarm_trap(struct dist &disa); +void remove_net_from( monsters *mon ); +void free_self_from_net( bool damage_net = true ); + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: acr - misc + * *********************************************************************** */ +void handle_traps(char trt, int i, bool trap_known); +int get_trapping_net(int x, int y, bool trapped = true); +void mark_net_trapping(int x, int y); +void monster_caught_in_net(monsters *mon, bolt &pbolt); +void player_caught_in_net(void); + +// last updated 12may2000 {dlb} +/* *********************************************************************** + * called from: misc - mstuff2 + * *********************************************************************** */ +void itrap(struct bolt &pbolt, int trapped); + +// last updated 3jun2000 {dlb} +/* *********************************************************************** + * called from: acr - misc - mstuff2 - spells3 + * *********************************************************************** */ +int trap_at_xy(int which_x, int which_y); + + +// last updated 3jun2000 {dlb} +/* *********************************************************************** + * called from: acr - misc - mstuff2 - spells2 - spells3 + * *********************************************************************** */ +dungeon_feature_type trap_category(trap_type type); + +int trap_at_xy(int x, int y); +trap_type trap_type_at_xy(int x, int y); + +#endif |