summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-05-01 01:30:04 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-05-01 01:30:30 +0200
commit92fd074aa85e2357bfe1ab642209dd5a0d87e4d5 (patch)
treed4f43886bdaf1ad7710470e13a525edc1816c77a /src/map.h
parentb7a04b08bb5b8283fadefb7fc57695720a7ddd9e (diff)
downloadmana-92fd074aa85e2357bfe1ab642209dd5a0d87e4d5.tar.gz
mana-92fd074aa85e2357bfe1ab642209dd5a0d87e4d5.tar.bz2
mana-92fd074aa85e2357bfe1ab642209dd5a0d87e4d5.tar.xz
mana-92fd074aa85e2357bfe1ab642209dd5a0d87e4d5.zip
Checking being positions send by the server
Reviewed-by: Bertram
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 67135a99..32644299 100644
--- a/src/map.h
+++ b/src/map.h
@@ -324,6 +324,11 @@ class Map : public Properties
*/
TileAnimation *getAnimationForGid(int gid) const;
+ /**
+ * Tells whether the given pixel falls within the map boundaries.
+ */
+ bool containsPixel(int x, int y) const;
+
protected:
friend class Actor;