summaryrefslogtreecommitdiff
path: root/src/imagesprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/imagesprite.h')
-rw-r--r--src/imagesprite.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imagesprite.h b/src/imagesprite.h
index 0522533d7..0b6557a7d 100644
--- a/src/imagesprite.h
+++ b/src/imagesprite.h
@@ -48,26 +48,26 @@ public:
bool draw(Graphics* graphics, int posX, int posY) const override;
- int getWidth() const override
+ int getWidth() const override A_WARN_UNUSED
{ return mImage ? mImage->getWidth() : 0; }
- int getHeight() const override
+ int getHeight() const override A_WARN_UNUSED
{ return mImage ? mImage->getHeight() : 0; }
- const Image* getImage() const
+ const Image* getImage() const A_WARN_UNUSED
{ return mImage; }
virtual bool setSpriteDirection(const SpriteDirection
direction A_UNUSED) override
{ return false; }
- int getNumberOfLayers() const
+ int getNumberOfLayers() const A_WARN_UNUSED
{ return 1; }
- unsigned int getCurrentFrame() const override
+ unsigned int getCurrentFrame() const override A_WARN_UNUSED
{ return 0; }
- unsigned int getFrameCount() const override
+ unsigned int getFrameCount() const override A_WARN_UNUSED
{ return 1; }
bool updateNumber(const unsigned num A_UNUSED) override