summaryrefslogtreecommitdiff
path: root/src/flooritem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/flooritem.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadplus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
plus-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/flooritem.h')
-rw-r--r--src/flooritem.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/flooritem.h b/src/flooritem.h
index e497d0bc6..f4b843a8c 100644
--- a/src/flooritem.h
+++ b/src/flooritem.h
@@ -54,7 +54,7 @@ class FloorItem final : public ActorSprite
A_DELETE_COPY(FloorItem)
- Type getType() const override
+ Type getType() const override A_WARN_UNUSED
{ return FLOOR_ITEM; }
bool draw(Graphics *graphics, int offsetX, int offsetY) const override;
@@ -62,33 +62,33 @@ class FloorItem final : public ActorSprite
/**
* Returns the item ID.
*/
- int getItemId() const
+ int getItemId() const A_WARN_UNUSED
{ return mItemId; }
/**
* Returns the item info for this floor item. Useful for adding an item
* link for the floor item to chat.
*/
- const ItemInfo &getInfo() const;
+ const ItemInfo &getInfo() const A_WARN_UNUSED;
- std::string getName() const;
+ std::string getName() const A_WARN_UNUSED;
- virtual int getTileX() const override
+ virtual int getTileX() const override A_WARN_UNUSED
{ return mX; }
- virtual int getTileY() const override
+ virtual int getTileY() const override A_WARN_UNUSED
{ return mY; }
void incrementPickup()
{ mPickupCount ++; }
- unsigned getPickupCount() const
+ unsigned getPickupCount() const A_WARN_UNUSED
{ return mPickupCount; }
- unsigned char getColor() const
+ unsigned char getColor() const A_WARN_UNUSED
{ return mColor; }
- bool getShowMsg() const
+ bool getShowMsg() const A_WARN_UNUSED
{ return mShowMsg; }
void setShowMsg(const bool n)
@@ -97,15 +97,13 @@ class FloorItem final : public ActorSprite
void disableHightlight()
{ mHighlight = false; }
- Cursor::Cursor getHoverCursor() const
+ Cursor::Cursor getHoverCursor() const A_WARN_UNUSED
{ return mCursor; }
private:
int mItemId;
int mX, mY;
-// Item *mItem;
Map *mMap;
-// float mAlpha;
int mDropTime;
int mAmount;
unsigned mPickupCount;