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/particle.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particle.h') 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(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(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, -- cgit v1.2.3-70-g09d2