diff options
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; } |