From d6da03bf0c4bd2e89429448f2d33c2bdc5083733 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Sep 2013 00:10:25 +0300 Subject: add code for loading map heights. --- src/map.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index cd539de04..a6eef01bf 100644 --- a/src/map.h +++ b/src/map.h @@ -37,14 +37,15 @@ class Animation; class AmbientLayer; class Image; +class MapHeights; +class MapItem; class MapLayer; +class ObjectsLayer; class Particle; class Resource; class SimpleAnimation; -class Tileset; class SpecialLayer; -class MapItem; -class ObjectsLayer; +class Tileset; class WalkLayer; typedef std::vector Tilesets; @@ -421,6 +422,8 @@ class Map final : public Properties, public ConfigListener void setWalkLayer(WalkLayer *const layer) { mWalkLayer = layer; } + void addHeights(MapHeights *const heights); + protected: friend class Actor; friend class Minimap; @@ -536,10 +539,11 @@ class Map final : public Properties, public ConfigListener int mDrawY; int mDrawScrollX; int mDrawScrollY; + Resource *mAtlas; + MapHeights *mHeights; bool mRedrawMap; bool mBeingOpacity; bool mCustom; - Resource *mAtlas; }; #endif // MAP_H -- cgit v1.2.3-70-g09d2