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/animation.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/resources/animation.h') diff --git a/src/resources/animation.h b/src/resources/animation.h index 3b9b5f2ea..ab2d83c4c 100644 --- a/src/resources/animation.h +++ b/src/resources/animation.h @@ -66,14 +66,15 @@ class Animation /** * Appends a new animation at the end of the sequence. */ - void addFrame(Image *image, int delay, int offsetX, int offsetY, - int rand); + void addFrame(Image *const image, const int delay, + const int offsetX, const int offsetY, + const int rand); /** * Appends an animation terminator that states that the animation * should not loop. */ - void addTerminator(int rand); + void addTerminator(const int rand); /** * Returns the length of this animation in frames. @@ -81,15 +82,15 @@ class Animation size_t getLength() const { return mFrames.size(); } - void addJump(std::string name, int rand); + void addJump(const std::string &name, const int rand); - void addLabel(std::string name); + void addLabel(const std::string &name); - void addGoto(std::string name, int rand); + void addGoto(const std::string &name, const int rand); - void addPause(int delay, int rand); + void addPause(const int delay, const int rand); - void setLastFrameDelay(int delay); + void setLastFrameDelay(const int delay); /** * Determines whether the given animation frame is a terminator. -- cgit v1.2.3-70-g09d2