diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-22 02:34:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-22 21:22:21 +0300 |
commit | 4a5cdfe19cbb50e3b58149c6e91312366ee4b771 (patch) | |
tree | 7a2bbae95b5f6642731f2a1257913baad71d028d /src/particle.h | |
parent | 3dcf21babe03cee5080a25e787e1d7e72124288e (diff) | |
download | manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2 manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip |
Add override keyword to most overriden methods.
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/particle.h b/src/particle.h index 04a1b3e85..fc0090c61 100644 --- a/src/particle.h +++ b/src/particle.h @@ -105,18 +105,18 @@ class Particle : public Actor /** * Draws the particle image. */ - virtual bool draw(Graphics *graphics, int offsetX, int offsetY) const; + virtual bool draw(Graphics *graphics, int offsetX, int offsetY) const override; /** * Necessary for sorting with the other sprites. */ - virtual int getPixelY() const + virtual int getPixelY() const override { return static_cast<int>(mPos.y) - 16; } /** * Necessary for sorting with the other sprites for sorting only. */ - virtual int getSortPixelY() const + virtual int getSortPixelY() const override { return static_cast<int>(mPos.y) - 16; } /** @@ -284,7 +284,7 @@ class Particle : public Actor virtual float getAlpha() const { return 1.0f; } - virtual void setAlpha(const float alpha A_UNUSED) + virtual void setAlpha(const float alpha A_UNUSED) override { } virtual void setDeathEffect(const std::string &effectFile, |