From 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Oct 2012 01:19:46 +0300 Subject: Add unused warnings to some files. --- src/actor.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/actor.h') diff --git a/src/actor.h b/src/actor.h index 21d5172c5..21363b513 100644 --- a/src/actor.h +++ b/src/actor.h @@ -26,6 +26,8 @@ #include +#include "localconsts.h" + class Actor; class Graphics; class Image; @@ -56,20 +58,20 @@ public: * Returns the horizontal size of the actors graphical representation * in pixels or 0 when it is undefined. */ - virtual int getWidth() const + virtual int getWidth() const A_WARN_UNUSED { return 0; } /** * Returns the vertical size of the actors graphical representation * in pixels or 0 when it is undefined. */ - virtual int getHeight() const + virtual int getHeight() const A_WARN_UNUSED { return 0; } /** * Returns the pixel position of this actor. */ - const Vector &getPosition() const + const Vector &getPosition() const A_WARN_UNUSED { return mPos; } /** @@ -81,41 +83,41 @@ public: /** * Returns the pixels X coordinate of the actor. */ - int getPixelX() const + int getPixelX() const A_WARN_UNUSED { return static_cast(mPos.x); } /** * Returns the pixel Y coordinate of the actor. */ - virtual int getPixelY() const + virtual int getPixelY() const A_WARN_UNUSED { return static_cast(mPos.y); } /** * Returns the pixel Y coordinate of the actor for sorting only. */ - virtual int getSortPixelY() const + virtual int getSortPixelY() const A_WARN_UNUSED { return static_cast(mPos.y) - mYDiff; } /** * Returns the x coordinate in tiles of the actor. */ - virtual int getTileX() const; + virtual int getTileX() const A_WARN_UNUSED; /** * Returns the y coordinate in tiles of the actor. */ - virtual int getTileY() const; + virtual int getTileY() const A_WARN_UNUSED; /** * Returns the number of Image layers used to draw the actor. */ - virtual int getNumberOfLayers() const + virtual int getNumberOfLayers() const A_WARN_UNUSED { return 0; } /** * Returns the current alpha value used to draw the actor. */ - virtual float getAlpha() const = 0; + virtual float getAlpha() const A_WARN_UNUSED = 0; /** * Sets the alpha value used to draw the actor. @@ -124,7 +126,7 @@ public: virtual void setMap(Map *const map); - const Map* getMap() const + const Map* getMap() const A_WARN_UNUSED { return mMap; } protected: -- cgit v1.2.3-60-g2f50