summaryrefslogtreecommitdiff
path: root/src/imagesprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-24 12:19:01 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-24 12:19:01 +0300
commitb8c77348db8b0bf500cb6a13cce75c61a544c500 (patch)
tree5b7eb62121e5dc7d95c5e40b5e4cfa86e02375d8 /src/imagesprite.h
parenta4fb136ebf9272e6254081fa0586ce8b383857d9 (diff)
downloadmanaplus-b8c77348db8b0bf500cb6a13cce75c61a544c500.tar.gz
manaplus-b8c77348db8b0bf500cb6a13cce75c61a544c500.tar.bz2
manaplus-b8c77348db8b0bf500cb6a13cce75c61a544c500.tar.xz
manaplus-b8c77348db8b0bf500cb6a13cce75c61a544c500.zip
add final keyword to all other files.
Diffstat (limited to 'src/imagesprite.h')
-rw-r--r--src/imagesprite.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/imagesprite.h b/src/imagesprite.h
index 038dfb600..e51878e31 100644
--- a/src/imagesprite.h
+++ b/src/imagesprite.h
@@ -37,41 +37,41 @@ public:
~ImageSprite();
- bool reset() override
+ bool reset() override final
{ return false; }
- bool play(const std::string &action A_UNUSED) override
+ bool play(const std::string &action A_UNUSED) override final
{ return false; }
- bool update(const int time A_UNUSED) override
+ bool update(const int time A_UNUSED) override final
{ return false; }
bool draw(Graphics *const graphics,
- const int posX, const int posY) const override;
+ const int posX, const int posY) const override final;
- int getWidth() const override A_WARN_UNUSED
+ int getWidth() const override final A_WARN_UNUSED
{ return mImage ? mImage->getWidth() : 0; }
- int getHeight() const override A_WARN_UNUSED
+ int getHeight() const override final A_WARN_UNUSED
{ return mImage ? mImage->getHeight() : 0; }
const Image* getImage() const A_WARN_UNUSED
{ return mImage; }
bool setSpriteDirection(const SpriteDirection
- direction A_UNUSED) override
+ direction A_UNUSED) override final
{ return false; }
int getNumberOfLayers() const A_WARN_UNUSED
{ return 1; }
- unsigned int getCurrentFrame() const override A_WARN_UNUSED
+ unsigned int getCurrentFrame() const override final A_WARN_UNUSED
{ return 0; }
- unsigned int getFrameCount() const override A_WARN_UNUSED
+ unsigned int getFrameCount() const override final A_WARN_UNUSED
{ return 1; }
- bool updateNumber(const unsigned num A_UNUSED) override
+ bool updateNumber(const unsigned num A_UNUSED) override final
{ return false; }
private: