diff options
Diffstat (limited to 'src/flooritem.h')
-rw-r--r-- | src/flooritem.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/flooritem.h b/src/flooritem.h index 61e88a70..a4c18547 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -94,12 +94,29 @@ class FloorItem : public Sprite */ void draw(Graphics *graphics, int offsetX, int offsetY) const; + /** + * Sets the alpha value of the floor item + */ + void setAlpha(float alpha) + { mAlpha = alpha; } + + /** + * Returns the current alpha opacity of the floor item. + */ + virtual float getAlpha() const + { return mAlpha; } + + /** We consider flooritems (at least for now) to be one layer-sprites */ + virtual int getNumberOfLayers() const + { return 1; } + private: int mId; int mX, mY; Item *mItem; MapSprite mMapSprite; Map *mMap; + float mAlpha; }; #endif |