summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-11 20:05:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-11 20:05:29 +0300
commit2c302cc6cb54881fbe354cc9d5a9997788f63e56 (patch)
tree9cef7d73dca25c523038ddb2ce13d49349596b27 /src/resources/map/maplayer.h
parent3bbfd3d36990113d7e91724625f4a347412dd883 (diff)
downloadplus-2c302cc6cb54881fbe354cc9d5a9997788f63e56.tar.gz
plus-2c302cc6cb54881fbe354cc9d5a9997788f63e56.tar.bz2
plus-2c302cc6cb54881fbe354cc9d5a9997788f63e56.tar.xz
plus-2c302cc6cb54881fbe354cc9d5a9997788f63e56.zip
Add structure for tile object.
Now it contains only image pointer.
Diffstat (limited to 'src/resources/map/maplayer.h')
-rw-r--r--src/resources/map/maplayer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h
index be17804d8..8c36fa771 100644
--- a/src/resources/map/maplayer.h
+++ b/src/resources/map/maplayer.h
@@ -29,6 +29,8 @@
#include "enums/resources/map/maptype.h"
+#include "resources/map/tileinfo.h"
+
#include <vector>
class Image;
@@ -76,7 +78,7 @@ class MapLayer final: public ConfigListener
* Set tile image with x + y * width already known.
*/
void setTile(const int index, Image *const img)
- { mTiles[index] = img; }
+ { mTiles[index].image = img; }
/**
* Draws this layer to the given graphics context. The coordinates are
@@ -157,7 +159,7 @@ class MapLayer final: public ConfigListener
const int mY;
const int mWidth;
const int mHeight;
- Image **const mTiles;
+ TileInfo *const mTiles;
MapTypeT mDrawLayerFlags;
const SpecialLayer *mSpecialLayer;
const SpecialLayer *mTempLayer;