summaryrefslogtreecommitdiff
path: root/src/resources/sprite/animatedsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-06 20:43:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-06 20:43:55 +0300
commitb36a959171a071797ad260b571bccb2f92c936a9 (patch)
tree82f8ae126119a7b1693519106a8f4dda879281a3 /src/resources/sprite/animatedsprite.h
parent00b60acc492175720153fedb235f8287253a1e6c (diff)
downloadmanaverse-b36a959171a071797ad260b571bccb2f92c936a9.tar.gz
manaverse-b36a959171a071797ad260b571bccb2f92c936a9.tar.bz2
manaverse-b36a959171a071797ad260b571bccb2f92c936a9.tar.xz
manaverse-b36a959171a071797ad260b571bccb2f92c936a9.zip
Add noexcept into animatedsprite.
Diffstat (limited to 'src/resources/sprite/animatedsprite.h')
-rw-r--r--src/resources/sprite/animatedsprite.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h
index 82372e61f..53423b77a 100644
--- a/src/resources/sprite/animatedsprite.h
+++ b/src/resources/sprite/animatedsprite.h
@@ -77,18 +77,19 @@ class AnimatedSprite final : public Sprite
int getHeight() const restrict2 override final A_WARN_UNUSED;
- const Image* getImage() const restrict2 override final A_WARN_UNUSED;
+ const Image* getImage() const restrict2 noexcept override final
+ A_WARN_UNUSED;
bool setSpriteDirection(const SpriteDirection::Type direction)
restrict2 override final;
- int getNumberOfLayers() const restrict2 A_WARN_UNUSED
+ int getNumberOfLayers() const restrict2 noexcept A_WARN_UNUSED
{ return 1; }
std::string getIdPath() const restrict2 A_WARN_UNUSED;
- unsigned int getCurrentFrame() const
- restrict2 override final A_WARN_UNUSED
+ unsigned int getCurrentFrame() const restrict2 noexcept override final
+ A_WARN_UNUSED
{ return mFrameIndex; }
unsigned int getFrameCount() const
@@ -100,19 +101,19 @@ class AnimatedSprite final : public Sprite
bool updateNumber(const unsigned num) restrict2 override final;
- void clearDelayLoad() restrict2
+ void clearDelayLoad() restrict2 noexcept
{ mDelayLoad = nullptr; }
- void setSprite(SpriteDef *restrict const sprite) restrict2
+ void setSprite(SpriteDef *restrict const sprite) restrict2 noexcept
{ mSprite = sprite; }
- bool isTerminated() const restrict2
+ bool isTerminated() const restrict2 noexcept
{ return mTerminated; }
- static void setEnableCache(const bool b)
+ static void setEnableCache(const bool b) noexcept
{ mEnableCache = b; }
- void setLastTime(const int time)
+ void setLastTime(const int time) noexcept
{ mLastTime = time; }
#ifdef UNITTESTS