From 4a5cdfe19cbb50e3b58149c6e91312366ee4b771 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Sep 2012 02:34:48 +0300 Subject: Add override keyword to most overriden methods. --- src/imagesprite.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/imagesprite.h') diff --git a/src/imagesprite.h b/src/imagesprite.h index 3f5ba6db6..fd5bcd239 100644 --- a/src/imagesprite.h +++ b/src/imagesprite.h @@ -35,39 +35,40 @@ public: ~ImageSprite(); - bool reset() + bool reset() override { return false; } - bool play(std::string action A_UNUSED) + bool play(std::string action A_UNUSED) override { return false; } - bool update(int time A_UNUSED) + bool update(int time A_UNUSED) override { return false; } - bool draw(Graphics* graphics, int posX, int posY) const; + bool draw(Graphics* graphics, int posX, int posY) const override; - int getWidth() const + int getWidth() const override { return mImage ? mImage->getWidth() : 0; } - int getHeight() const + int getHeight() const override { return mImage ? mImage->getHeight() : 0; } const Image* getImage() const { return mImage; } - virtual bool setSpriteDirection(const SpriteDirection direction A_UNUSED) + virtual bool setSpriteDirection(const SpriteDirection + direction A_UNUSED) override { return false; } int getNumberOfLayers() const { return 1; } - unsigned int getCurrentFrame() const + unsigned int getCurrentFrame() const override { return 0; } - unsigned int getFrameCount() const + unsigned int getFrameCount() const override { return 1; } - bool updateNumber(const unsigned num A_UNUSED) + bool updateNumber(const unsigned num A_UNUSED) override { return false; } private: -- cgit v1.2.3-60-g2f50