summaryrefslogtreecommitdiff
path: root/src/resources/animation.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/animation.h
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadplus-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
plus-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/animation.h')
-rw-r--r--src/resources/animation.h17
1 files changed, 9 insertions, 8 deletions
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.