summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
commit0534847df83047f1ce2605187d45a762ffeae11e (patch)
tree92365ee5ec086b3c65f024096df9d63bd05b31d4 /src/resources/ambientlayer.h
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadmanaverse-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
manaverse-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
manaverse-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
manaverse-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/ambientlayer.h')
-rw-r--r--src/resources/ambientlayer.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/ambientlayer.h b/src/resources/ambientlayer.h
index 54a764841..e0593ce4f 100644
--- a/src/resources/ambientlayer.h
+++ b/src/resources/ambientlayer.h
@@ -38,14 +38,15 @@ class AmbientLayer
* @param keepRatio rescale the image to keep
* the same ratio than in 800x600 resolution mode.
*/
- AmbientLayer(Image *img, float parallax,
- float speedX, float speedY, bool keepRatio = false);
+ AmbientLayer(Image *const img, const float parallax,
+ const float speedX, const float speedY,
+ const bool keepRatio = false);
~AmbientLayer();
- void update(int timePassed, float dx, float dy);
+ void update(const int timePassed, const float dx, const float dy);
- void draw(Graphics *graphics, int x, int y);
+ void draw(Graphics *const graphics, const int x, const int y) const;
private:
Image *mImage;