From 0534847df83047f1ce2605187d45a762ffeae11e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Sep 2012 21:25:21 +0300 Subject: Add const to more classes. --- src/resources/ambientlayer.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/resources/ambientlayer.h') 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; -- cgit v1.2.3-60-g2f50