diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-09 17:59:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-09 17:59:14 +0300 |
commit | db1e60556c72b1b87ff2a384c556ccca724c46d6 (patch) | |
tree | 22a5f4e9c4f436ef8e746e0a2d688de80c1597a6 /src/resources/ambientlayer.h | |
parent | c2bb49be52a92deccec7428b6859242688fc8987 (diff) | |
parent | 1716861f0ee2f7a3714c5b44bb0f017c3d8d3b2c (diff) | |
download | plus-db1e60556c72b1b87ff2a384c556ccca724c46d6.tar.gz plus-db1e60556c72b1b87ff2a384c556ccca724c46d6.tar.bz2 plus-db1e60556c72b1b87ff2a384c556ccca724c46d6.tar.xz plus-db1e60556c72b1b87ff2a384c556ccca724c46d6.zip |
Merge branch 'master' into stable
Diffstat (limited to 'src/resources/ambientlayer.h')
-rw-r--r-- | src/resources/ambientlayer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/ambientlayer.h b/src/resources/ambientlayer.h index 18bbfb69a..3403c0455 100644 --- a/src/resources/ambientlayer.h +++ b/src/resources/ambientlayer.h @@ -26,10 +26,13 @@ class Graphics; class Image; +class Map; class AmbientLayer final { public: + friend class Map; + /** * Constructor. * @@ -42,7 +45,7 @@ class AmbientLayer final */ AmbientLayer(Image *const img, const float parallax, const float speedX, const float speedY, - const bool keepRatio = false); + const bool keepRatio, int mask); A_DELETE_COPY(AmbientLayer) @@ -59,6 +62,7 @@ class AmbientLayer final float mPosY; /**< Current layer Y position. */ float mSpeedX; /**< Scrolling speed in X direction. */ float mSpeedY; /**< Scrolling speed in Y direction. */ + int mMask; bool mKeepRatio; /**< Keep overlay ratio on every resolution */ }; |