summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-22 20:21:15 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-22 20:21:15 +0000
commit9a160b380b94ce9b89c93214fe7b9de3f36ed01f (patch)
tree53d1992a132d6e3178b427bbaca2510120233173 /crawl-ref/source/traps.h
parent23e8c7a07f9ea71e683fa748940cc7447e5a8aa1 (diff)
downloadcrawl-ref-9a160b380b94ce9b89c93214fe7b9de3f36ed01f.tar.gz
crawl-ref-9a160b380b94ce9b89c93214fe7b9de3f36ed01f.zip
Massive change from using x and y to using coord_defs(). Not quite tested,
most likely broken in some places and might break tiles. Will fix in the near future. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6636 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/traps.h')
-rw-r--r--crawl-ref/source/traps.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/traps.h b/crawl-ref/source/traps.h
index 2604e3de28..4ba99a6212 100644
--- a/crawl-ref/source/traps.h
+++ b/crawl-ref/source/traps.h
@@ -21,7 +21,7 @@ struct bolt;
class monsters;
bool trap_item(object_class_type base_type, char sub_type,
- char beam_x, char beam_y);
+ const coord_def& where);
// last updated 12may2000 {dlb}
/* ***********************************************************************
@@ -36,8 +36,8 @@ void free_self_from_net(void);
* called from: acr - misc
* *********************************************************************** */
void handle_traps(trap_type 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);
+int get_trapping_net(const coord_def& where, bool trapped = true);
+void mark_net_trapping(const coord_def& where);
void monster_caught_in_net(monsters *mon, bolt &pbolt);
void player_caught_in_net(void);
void clear_trapping_net(void);
@@ -46,12 +46,12 @@ 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(int x, int y);
-trap_type trap_type_at_xy(int x, int y);
+int trap_at_xy(const coord_def& xy);
+trap_type trap_type_at_xy(const coord_def& xy);
bool is_valid_shaft_level(const level_id &place = level_id::current());
level_id generic_shaft_dest(coord_def pos);
-void handle_items_on_shaft(int x, int y, bool open_shaft);
+void handle_items_on_shaft(const coord_def& where, bool open_shaft);
int num_traps_for_place(int level_number = -1,
const level_id &place = level_id::current());