diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-10-07 20:01:34 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-10-07 20:01:34 +0000 |
commit | 479f674875455fbe26e712d22518cc896b020c16 (patch) | |
tree | 2062429bda85362948a86a7269a9f343d37abf9d /src/resources/ambientoverlay.h | |
parent | e4530c6d0cd180ab18469bf8e32fb978229dedde (diff) | |
download | mana-479f674875455fbe26e712d22518cc896b020c16.tar.gz mana-479f674875455fbe26e712d22518cc896b020c16.tar.bz2 mana-479f674875455fbe26e712d22518cc896b020c16.tar.xz mana-479f674875455fbe26e712d22518cc896b020c16.zip |
Resolved some weirdness involving the terms scroll and speed.
Diffstat (limited to 'src/resources/ambientoverlay.h')
-rw-r--r-- | src/resources/ambientoverlay.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/resources/ambientoverlay.h b/src/resources/ambientoverlay.h index 25bc28ef..a939cbb4 100644 --- a/src/resources/ambientoverlay.h +++ b/src/resources/ambientoverlay.h @@ -30,9 +30,15 @@ class Image; class AmbientOverlay { public: + /** + * Constructor. + */ AmbientOverlay(Image *img, float parallax, - float scrollX, float scrollY, float speedX, float speedY); + float speedX, float speedY); + /** + * Destructor. + */ ~AmbientOverlay(); void update(int timePassed, float dx, float dy); @@ -42,10 +48,10 @@ class AmbientOverlay private: Image *mImage; float mParallax; - float mScrollX; - float mScrollY; - float mSpeedX; - float mSpeedY; + 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. */ }; #endif |