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/being.h | |
parent | 3dcf21babe03cee5080a25e787e1d7e72124288e (diff) | |
download | mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2 mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip |
Add override keyword to most overriden methods.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/being.h b/src/being.h index 95e2ab196..c1a9d8dbd 100644 --- a/src/being.h +++ b/src/being.h @@ -400,7 +400,7 @@ class Being : public ActorSprite, public ConfigListener /** * Performs being logic. */ - virtual void logic(); + virtual void logic() override; /** * Draws the speech text above the being. @@ -544,13 +544,13 @@ class Being : public ActorSprite, public ConfigListener /** * Returns the horizontal size of the current base sprite of the being. */ - virtual int getWidth() const + virtual int getWidth() const override { return std::max(CompoundSprite::getWidth(), DEFAULT_BEING_WIDTH); } /** * Returns the vertical size of the current base sprite of the being. */ - virtual int getHeight() const + virtual int getHeight() const override { return std::max(CompoundSprite::getHeight(), DEFAULT_BEING_HEIGHT); } /** @@ -593,10 +593,10 @@ class Being : public ActorSprite, public ConfigListener int getEmotion() const { return mEmotion; } - virtual void drawSprites(Graphics* graphics, int posX, int posY) const; + virtual void drawSprites(Graphics* graphics, int posX, int posY) const override; virtual void drawSpritesSDL(Graphics* graphics, - int posX, int posY) const; + int posX, int posY) const override; void drawHpBar(Graphics *const graphics, const int x, const int y, const int maxHP, const int hp, const int damage, @@ -605,7 +605,7 @@ class Being : public ActorSprite, public ConfigListener static void load(); - virtual void optionChanged(const std::string &value); + virtual void optionChanged(const std::string &value) override; void flashName(const int time); |