summaryrefslogtreecommitdiff
path: root/src/compoundsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-22 02:34:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-22 21:22:21 +0300
commit4a5cdfe19cbb50e3b58149c6e91312366ee4b771 (patch)
tree7a2bbae95b5f6642731f2a1257913baad71d028d /src/compoundsprite.h
parent3dcf21babe03cee5080a25e787e1d7e72124288e (diff)
downloadmanaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz
manaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2
manaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz
manaplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip
Add override keyword to most overriden methods.
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r--src/compoundsprite.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h
index 4db2adbfb..b18b9a3ae 100644
--- a/src/compoundsprite.h
+++ b/src/compoundsprite.h
@@ -54,33 +54,33 @@ public:
~CompoundSprite();
- virtual bool reset();
+ virtual bool reset() override;
- virtual bool play(std::string action);
+ virtual bool play(std::string action) override;
- virtual bool update(int time);
+ virtual bool update(int time) override;
- virtual bool draw(Graphics *graphics, int posX, int posY) const;
+ virtual bool draw(Graphics *graphics, int posX, int posY) const override;
/**
* Gets the width in pixels of the first sprite in the list.
*/
- virtual int getWidth() const;
+ virtual int getWidth() const override;
/**
* Gets the height in pixels of the first sprite in the list.
*/
- virtual int getHeight() const;
+ virtual int getHeight() const override;
- virtual const Image *getImage() const;
+ virtual const Image *getImage() const override;
- virtual bool setSpriteDirection(const SpriteDirection direction);
+ virtual bool setSpriteDirection(const SpriteDirection direction) override;
int getNumberOfLayers() const;
- unsigned int getCurrentFrame() const;
+ unsigned int getCurrentFrame() const override;
- unsigned int getFrameCount() const;
+ unsigned int getFrameCount() const override;
size_t size() const
{ return mSprites.size(); }
@@ -117,9 +117,9 @@ public:
*/
virtual unsigned int getFrameCount(unsigned int layer);
- virtual void setAlpha(float alpha);
+ virtual void setAlpha(float alpha) override;
- bool updateNumber(const unsigned num);
+ bool updateNumber(const unsigned num) override;
static void setEnableDelay(bool b)
{ mEnableDelay = b; }