summaryrefslogtreecommitdiff
path: root/src/compoundsprite.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/compoundsprite.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r--src/compoundsprite.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h
index 5781bf171..0676ad479 100644
--- a/src/compoundsprite.h
+++ b/src/compoundsprite.h
@@ -27,6 +27,8 @@
#include <list>
#include <vector>
+#include "localconsts.h"
+
class Image;
typedef std::list <void*> VectorPointers;
@@ -40,7 +42,6 @@ class CompoundItem final
~CompoundItem();
-// float alpha;
VectorPointers data;
Image *image;
Image *alphaImage;
@@ -69,34 +70,34 @@ public:
/**
* Gets the width in pixels of the first sprite in the list.
*/
- virtual int getWidth() const override;
+ virtual int getWidth() const override A_WARN_UNUSED;
/**
* Gets the height in pixels of the first sprite in the list.
*/
- virtual int getHeight() const override;
+ virtual int getHeight() const override A_WARN_UNUSED;
- virtual const Image *getImage() const override;
+ virtual const Image *getImage() const override A_WARN_UNUSED;
virtual bool setSpriteDirection(const SpriteDirection direction) override;
- int getNumberOfLayers() const;
+ int getNumberOfLayers() const A_WARN_UNUSED;
- unsigned int getCurrentFrame() const override;
+ unsigned int getCurrentFrame() const override A_WARN_UNUSED;
- unsigned int getFrameCount() const override;
+ unsigned int getFrameCount() const override A_WARN_UNUSED;
- size_t size() const
+ size_t size() const A_WARN_UNUSED
{ return mSprites.size(); }
- bool empty() const
+ bool empty() const A_WARN_UNUSED
{ return mSprites.empty(); }
void addSprite(Sprite *const sprite);
void setSprite(const int layer, Sprite *const sprite);
- Sprite *getSprite(int layer) const
+ Sprite *getSprite(int layer) const A_WARN_UNUSED
{ return mSprites.at(layer); }
void removeSprite(const int layer);
@@ -114,12 +115,12 @@ public:
/**
* Returns the curent frame in the current animation of the given layer.
*/
- virtual unsigned int getCurrentFrame(unsigned int layer);
+ virtual unsigned int getCurrentFrame(unsigned int layer) A_WARN_UNUSED;
/**
* Returns the frame count in the current animation of the given layer.
*/
- virtual unsigned int getFrameCount(unsigned int layer);
+ virtual unsigned int getFrameCount(unsigned int layer) A_WARN_UNUSED;
virtual void setAlpha(float alpha) override;