diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-03 21:58:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 03:06:57 +0300 |
commit | 866a71ffd576fd10c4e309195016d86f0c8ed635 (patch) | |
tree | 21bbec175afc181cada529598267d62f12fcb671 /src/simpleanimation.h | |
parent | ebecb0cf42f2066943908fa158ac91527e0e6629 (diff) | |
download | mv-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.gz mv-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.bz2 mv-866a71ffd576fd10c4e309195016d86f0c8ed635.tar.xz mv-866a71ffd576fd10c4e309195016d86f0c8ed635.zip |
Add const to more classes.
Diffstat (limited to 'src/simpleanimation.h')
-rw-r--r-- | src/simpleanimation.h | 12 |
1 files changed, 7 insertions, 5 deletions
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. */ |