From a4fb136ebf9272e6254081fa0586ce8b383857d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Oct 2013 12:18:49 +0300 Subject: add final keyword to being files. --- src/being/compoundsprite.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/being/compoundsprite.h') diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h index 5cdebd6d6..1ffa0edd4 100644 --- a/src/being/compoundsprite.h +++ b/src/being/compoundsprite.h @@ -59,11 +59,11 @@ public: virtual ~CompoundSprite(); - virtual bool reset() override; + virtual bool reset() override final; - virtual bool play(const std::string &action) override; + virtual bool play(const std::string &action) override final; - virtual bool update(const int time) override; + virtual bool update(const int time) override final; virtual bool draw(Graphics *const graphics, const int posX, const int posY) const override; @@ -78,15 +78,16 @@ public: */ virtual int getHeight() const override A_WARN_UNUSED; - virtual const Image *getImage() const override A_WARN_UNUSED; + virtual const Image *getImage() const override final A_WARN_UNUSED; - virtual bool setSpriteDirection(const SpriteDirection direction) override; + virtual bool setSpriteDirection(const SpriteDirection direction) + override final; int getNumberOfLayers() const A_WARN_UNUSED; - unsigned int getCurrentFrame() const override A_WARN_UNUSED; + unsigned int getCurrentFrame() const override final A_WARN_UNUSED; - unsigned int getFrameCount() const override A_WARN_UNUSED; + unsigned int getFrameCount() const override final A_WARN_UNUSED; size_t size() const A_WARN_UNUSED { return mSprites.size(); } @@ -126,7 +127,7 @@ public: virtual void setAlpha(float alpha) override; - bool updateNumber(const unsigned num) override; + bool updateNumber(const unsigned num) override final; static void setEnableDelay(bool b) { mEnableDelay = b; } -- cgit v1.2.3-70-g09d2