diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-17 17:53:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-17 20:36:02 +0300 |
commit | 01e2baa778318150bdd1829836cfff9e677cf72c (patch) | |
tree | 8ee3cd0913f2b4b3e81f869a68413f9789d3e43e /src/mapheights.h | |
parent | d6da03bf0c4bd2e89429448f2d33c2bdc5083733 (diff) | |
download | manaplus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.gz manaplus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.bz2 manaplus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.xz manaplus-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.h | 3 |
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; |