summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-26 22:09:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-26 23:49:56 +0300
commit91998bfc4631cd305062bf9bedd56083a2b2cbde (patch)
tree68b9924a69d4ee27ae41eb0d5f2ec4af2a86fb4e /src/resources/ambientlayer.h
parentb0167b595a952e1decc48c239c95c52e1bc057d7 (diff)
downloadmanaplus-91998bfc4631cd305062bf9bedd56083a2b2cbde.tar.gz
manaplus-91998bfc4631cd305062bf9bedd56083a2b2cbde.tar.bz2
manaplus-91998bfc4631cd305062bf9bedd56083a2b2cbde.tar.xz
manaplus-91998bfc4631cd305062bf9bedd56083a2b2cbde.zip
allow load and use mask in ambient layers.
default layer mask is 1.
Diffstat (limited to 'src/resources/ambientlayer.h')
-rw-r--r--src/resources/ambientlayer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/ambientlayer.h b/src/resources/ambientlayer.h
index 18bbfb69a..1ab54fd9f 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 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 */
};