From 866a71ffd576fd10c4e309195016d86f0c8ed635 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 3 Sep 2012 21:58:08 +0300 Subject: Add const to more classes. --- src/simpleanimation.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/simpleanimation.h') diff --git a/src/simpleanimation.h b/src/simpleanimation.h index a7355a929..6e2f1405c 100644 --- a/src/simpleanimation.h +++ b/src/simpleanimation.h @@ -42,12 +42,12 @@ class SimpleAnimation * Creates a simple animation with an already created \a animation. * Takes ownership over the given animation. */ - SimpleAnimation(Animation *animation); + SimpleAnimation(Animation *const animation); /** * Creates a simple animation that creates its animation from XML Data. */ - SimpleAnimation(XmlNodePtr animationNode, + SimpleAnimation(const XmlNodePtr animationNode, const std::string& dyePalettes = std::string()); ~SimpleAnimation(); @@ -56,9 +56,10 @@ class SimpleAnimation int getLength() const; - bool update(int timePassed); + bool update(const int timePassed); - bool draw(Graphics *graphics, int posX, int posY) const; + bool draw(Graphics *const graphics, + const int posX, const int posY) const; /** * Resets the animation. @@ -68,7 +69,8 @@ class SimpleAnimation Image *getCurrentImage() const; private: - void initializeAnimation(XmlNodePtr animationNode, const std::string& + void initializeAnimation(const XmlNodePtr animationNode, + const std::string& dyePalettes = std::string()); /** The hosted animation. */ -- cgit v1.2.3-60-g2f50