diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-05 22:31:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-05 22:31:49 +0300 |
commit | 73432d5972f8a3d2a339260246f3a44842dac58e (patch) | |
tree | 9352472b7fb0714b2d898a19f343f8b0456afa38 /src/resources/sprite/animatedsprite.h | |
parent | 12273c046fff6b2f778ef4c3cc0d8014d86233e5 (diff) | |
download | manaverse-73432d5972f8a3d2a339260246f3a44842dac58e.tar.gz manaverse-73432d5972f8a3d2a339260246f3a44842dac58e.tar.bz2 manaverse-73432d5972f8a3d2a339260246f3a44842dac58e.tar.xz manaverse-73432d5972f8a3d2a339260246f3a44842dac58e.zip |
Add support for play animation in cutins.
Diffstat (limited to 'src/resources/sprite/animatedsprite.h')
-rw-r--r-- | src/resources/sprite/animatedsprite.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h index 53423b77a..2a40df1e9 100644 --- a/src/resources/sprite/animatedsprite.h +++ b/src/resources/sprite/animatedsprite.h @@ -73,6 +73,10 @@ class AnimatedSprite final : public Sprite const int posX, const int posY) const restrict2 override final A_NONNULL(2); + void drawRaw(Graphics *restrict const graphics, + const int posX, + const int posY) const restrict2 A_NONNULL(2); + int getWidth() const restrict2 override final A_WARN_UNUSED; int getHeight() const restrict2 override final A_WARN_UNUSED; @@ -116,6 +120,9 @@ class AnimatedSprite final : public Sprite void setLastTime(const int time) noexcept { mLastTime = time; } + const Frame *getFrame() const restrict2 + { return mFrame; } + #ifdef UNITTESTS SpriteDef *getSprite() restrict2 { return mSprite; } |