diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-24 12:18:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-24 12:18:49 +0300 |
commit | a4fb136ebf9272e6254081fa0586ce8b383857d9 (patch) | |
tree | f85c7d327f161afb16eb56d68291c69bc12ba5d6 /src/being/being.h | |
parent | 812d9efc5f3ef90c81ffa04c3780cd0ada7e3e71 (diff) | |
download | plus-a4fb136ebf9272e6254081fa0586ce8b383857d9.tar.gz plus-a4fb136ebf9272e6254081fa0586ce8b383857d9.tar.bz2 plus-a4fb136ebf9272e6254081fa0586ce8b383857d9.tar.xz plus-a4fb136ebf9272e6254081fa0586ce8b383857d9.zip |
add final keyword to being files.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/being/being.h b/src/being/being.h index de160e85d..90a351af0 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -424,7 +424,8 @@ class Being : public ActorSprite, public ConfigListener const BeingInfo *getInfo() const A_WARN_UNUSED { return mInfo; } - TargetCursorSize getTargetCursorSize() const override A_WARN_UNUSED; + TargetCursorSize getTargetCursorSize() const override final + A_WARN_UNUSED; int getTargetOffsetX() const A_WARN_UNUSED { @@ -544,13 +545,13 @@ class Being : public ActorSprite, public ConfigListener /** * Returns the horizontal size of the current base sprite of the being. */ - virtual int getWidth() const override A_WARN_UNUSED + virtual int getWidth() const override final A_WARN_UNUSED { return std::max(CompoundSprite::getWidth(), DEFAULT_BEING_WIDTH); } /** * Returns the vertical size of the current base sprite of the being. */ - virtual int getHeight() const override A_WARN_UNUSED + virtual int getHeight() const override final A_WARN_UNUSED { return std::max(CompoundSprite::getHeight(), DEFAULT_BEING_HEIGHT); } /** @@ -587,10 +588,10 @@ class Being : public ActorSprite, public ConfigListener void setState(const uint8_t state); virtual void drawSprites(Graphics *const graphics, - int posX, int posY) const override; + int posX, int posY) const override final; virtual void drawSpritesSDL(Graphics *const graphics, - int posX, int posY) const override; + int posX, int posY) const override final; void drawHpBar(Graphics *const graphics, const int x, const int y, const int maxHP, const int hp, const int damage, @@ -673,7 +674,7 @@ class Being : public ActorSprite, public ConfigListener void talkTo() const; bool draw(Graphics *const graphics, - const int offsetX, const int offsetY) const override; + const int offsetX, const int offsetY) const override final; bool drawSpriteAt(Graphics *const graphics, const int x, const int y) const; |