summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-24 12:18:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-24 12:18:49 +0300
commita4fb136ebf9272e6254081fa0586ce8b383857d9 (patch)
treef85c7d327f161afb16eb56d68291c69bc12ba5d6 /src/being/being.h
parent812d9efc5f3ef90c81ffa04c3780cd0ada7e3e71 (diff)
downloadmv-a4fb136ebf9272e6254081fa0586ce8b383857d9.tar.gz
mv-a4fb136ebf9272e6254081fa0586ce8b383857d9.tar.bz2
mv-a4fb136ebf9272e6254081fa0586ce8b383857d9.tar.xz
mv-a4fb136ebf9272e6254081fa0586ce8b383857d9.zip
add final keyword to being files.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h13
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;