summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-21 22:53:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-21 22:54:27 +0300
commit9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd (patch)
tree89caf6194c2cd01d845147db367c4ce888883995 /src/resources/map/maplayer.h
parent27a943e95196a58103814edf3e4e3cd3a60ed8cd (diff)
downloadmv-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.gz
mv-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.bz2
mv-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.xz
mv-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.zip
Add support for layers with conditional tiles.
For enable this mode for layer need add property: TileCondition and set value to one of BlockMask bits.
Diffstat (limited to 'src/resources/map/maplayer.h')
-rw-r--r--src/resources/map/maplayer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h
index 2c1832691..9c0fc12c0 100644
--- a/src/resources/map/maplayer.h
+++ b/src/resources/map/maplayer.h
@@ -37,6 +37,8 @@ class Image;
class MapRowVertexes;
class SpecialLayer;
+struct MetaTile;
+
/**
* A map layer. Stores a grid of tiles and their offset, and implements layer
* rendering.
@@ -152,10 +154,13 @@ class MapLayer final: public ConfigListener
{ mActorsFix = y; }
protected:
- static int getTileDrawWidth(const Image *img,
+ static int getTileDrawWidth(const TileInfo *img,
const int endX,
int &width) A_WARN_UNUSED;
+ void updateConditionTiles(MetaTile *const metaTiles,
+ const int width, const int height);
+
private:
const int mX;
const int mY;