diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 01:19:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch) | |
tree | 4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/actorsprite.h | |
parent | 2a70a50c785ce639b76141a3a6887836d22fe12c (diff) | |
download | manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2 manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz manaplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip |
Add unused warnings to some files.
Diffstat (limited to 'src/actorsprite.h')
-rw-r--r-- | src/actorsprite.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/actorsprite.h b/src/actorsprite.h index f7792ead0..8521a9c92 100644 --- a/src/actorsprite.h +++ b/src/actorsprite.h @@ -33,6 +33,8 @@ #include <set> #include <list> +#include "localconsts.h" + class SimpleAnimation; class StatusEffect; class ActorSpriteListener; @@ -72,7 +74,7 @@ public: ~ActorSprite(); - int getId() const + int getId() const A_WARN_UNUSED { return mId; } void setId(const int id) @@ -81,7 +83,7 @@ public: /** * Returns the type of the ActorSprite. */ - virtual Type getType() const + virtual Type getType() const A_WARN_UNUSED { return UNKNOWN; } virtual bool draw(Graphics *graphics, @@ -99,7 +101,7 @@ public: /** * Gets the way the object blocks pathfinding for other objects */ - virtual Map::BlockType getBlockType() const + virtual Map::BlockType getBlockType() const A_WARN_UNUSED { return Map::BLOCKTYPE_NONE; } /** @@ -110,13 +112,13 @@ public: /** * Returns the required size of a target cursor for this being. */ - virtual TargetCursorSize getTargetCursorSize() const + virtual TargetCursorSize getTargetCursorSize() const A_WARN_UNUSED { return TC_MEDIUM; } - virtual int getTargetOffsetX() const + virtual int getTargetOffsetX() const A_WARN_UNUSED { return 0; } - virtual int getTargetOffsetY() const + virtual int getTargetOffsetY() const A_WARN_UNUSED { return 0; } /** @@ -163,13 +165,13 @@ public: virtual void setAlpha(const float alpha) override { CompoundSprite::setAlpha(alpha); } - virtual float getAlpha() const override + virtual float getAlpha() const override A_WARN_UNUSED { return CompoundSprite::getAlpha(); } - virtual int getWidth() const override + virtual int getWidth() const override A_WARN_UNUSED { return CompoundSprite::getWidth(); } - virtual int getHeight() const override + virtual int getHeight() const override A_WARN_UNUSED { return CompoundSprite::getHeight(); } static void load(); |