summaryrefslogtreecommitdiff
path: root/src/animatedsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-04 00:32:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-04 00:32:54 +0300
commitcad3b1d8688b94b185ada0f0b313435ac4b3b457 (patch)
treea27c65075d745208bd8ba1029762507abf740db8 /src/animatedsprite.h
parentdc599c219c283a4f7517c8ffe1e781b9847ef045 (diff)
downloadplus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.tar.gz
plus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.tar.bz2
plus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.tar.xz
plus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.zip
fix code style.
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r--src/animatedsprite.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h
index df287a560..83722ebf8 100644
--- a/src/animatedsprite.h
+++ b/src/animatedsprite.h
@@ -110,16 +110,16 @@ class AnimatedSprite final : public Sprite
SpriteDef *getSprite()
{ return mSprite; }
- Frame *getFrame()
+ const Frame *getFrame() const
{ return mFrame; }
- Animation *getAnimation()
+ const Animation *getAnimation() const
{ return mAnimation; }
- unsigned int getFrameIndex()
+ unsigned int getFrameIndex() const
{ return mFrameIndex; }
- unsigned int getFrameTime()
+ unsigned int getFrameTime() const
{ return mFrameTime; }
#endif
@@ -135,7 +135,7 @@ class AnimatedSprite final : public Sprite
unsigned int mFrameTime; /**< The time since start of frame. */
SpriteDef *mSprite; /**< The sprite definition. */
- const Action *mAction; /**< The currently active action. */
+ const Action *mAction; /**< The currently active action. */
const Animation *mAnimation; /**< The currently active animation. */
const Frame *mFrame; /**< The currently active frame. */
unsigned mNumber;