summaryrefslogtreecommitdiff
path: root/src/resources/ambientoverlay.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/ambientoverlay.h')
-rw-r--r--src/resources/ambientoverlay.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/resources/ambientoverlay.h b/src/resources/ambientoverlay.h
index 65f9891d..756d0eb7 100644
--- a/src/resources/ambientoverlay.h
+++ b/src/resources/ambientoverlay.h
@@ -30,13 +30,15 @@ class AmbientOverlay
public:
/**
* Constructor.
+ *
+ * @param img the image this overlay displays
+ * @param parallax scroll factor based on camera position
+ * @param speedX scrolling speed in x-direction
+ * @param speedY scrolling speed in y-direction
*/
AmbientOverlay(Image *img, float parallax,
float speedX, float speedY);
- /**
- * Destructor.
- */
~AmbientOverlay();
void update(int timePassed, float dx, float dy);
@@ -48,8 +50,8 @@ class AmbientOverlay
float mParallax;
float mPosX; /**< Current layer X position. */
float mPosY; /**< Current layer Y position. */
- float mSpeedX; /**< Scroll speed in X direction. */
- float mSpeedY; /**< Scroll speed in Y direction. */
+ float mSpeedX; /**< Scrolling speed in X direction. */
+ float mSpeedY; /**< Scrolling speed in Y direction. */
};
#endif