summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.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/beam.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/beam.h')
-rw-r--r--crawl-ref/source/beam.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/beam.h b/crawl-ref/source/beam.h
index 969d3199db..4f35b43bc8 100644
--- a/crawl-ref/source/beam.h
+++ b/crawl-ref/source/beam.h
@@ -172,6 +172,11 @@ public:
{
return (coord_def(target_x, target_y));
}
+
+ coord_def source() const
+ {
+ return (coord_def(source_x, source_y));
+ }
};
dice_def calc_dice( int num_dice, int max_damage );
@@ -230,7 +235,7 @@ bool poison_monster( monsters *monster, kill_category who,
void fire_tracer( const monsters *monster, struct bolt &pbolt,
bool explode_only = false );
-bool check_line_of_sight( int sx, int sy, int tx, int ty );
+bool check_line_of_sight( const coord_def& source, const coord_def& target );
/* ***********************************************************************
* called from: monstuff
@@ -244,8 +249,8 @@ bool zapping( zap_type ztype, int power, struct bolt &pbolt,
bool player_tracer( zap_type ztype, int power, struct bolt &pbolt,
int range = 0 );
-int affect(bolt &beam, int x, int y, item_def *item = NULL);
+int affect(bolt &beam, const coord_def& p, item_def *item = NULL);
-void beam_drop_object( bolt &beam, item_def *item, int x, int y );
+void beam_drop_object( bolt &beam, item_def *item, const coord_def& where );
#endif