summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index fae8af50..e807e2ae 100644
--- a/src/map.h
+++ b/src/map.h
@@ -267,6 +267,14 @@ class Map : public Properties
int getTileHeight() const
{ return mTileHeight; }
+ /**
+ * Returns the nearest tile center position in pixels coordinates.
+ *
+ * @param x the horizontal tile position
+ * @param y the vertical tile position
+ */
+ Vector getTileCenter(int x, int y);
+
const std::string getMusicFile() const;
const std::string getName() const;