summaryrefslogtreecommitdiff
path: root/src/mapheights.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-17 17:53:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-17 20:36:02 +0300
commit01e2baa778318150bdd1829836cfff9e677cf72c (patch)
tree8ee3cd0913f2b4b3e81f869a68413f9789d3e43e /src/mapheights.h
parentd6da03bf0c4bd2e89429448f2d33c2bdc5083733 (diff)
downloadplus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.gz
plus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.bz2
plus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.xz
plus-01e2baa778318150bdd1829836cfff9e677cf72c.zip
add walking on map height.
using collisions from actual and not drawing tile. still have issue with fringe layer objects.
Diffstat (limited to 'src/mapheights.h')
-rw-r--r--src/mapheights.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mapheights.h b/src/mapheights.h
index 51ea885c9..2fd4c44ab 100644
--- a/src/mapheights.h
+++ b/src/mapheights.h
@@ -36,6 +36,9 @@ class MapHeights final
void setHeight(const int x, const int y, const uint8_t height);
+ uint8_t getHeight(const int x, const int y) const
+ { return mTiles[x + y * mWidth]; }
+
private:
int mWidth;
int mHeight;