diff options
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sprite.h b/src/sprite.h index a6384e94..b56c30aa 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -64,6 +64,22 @@ class Sprite * Returns the pixel Y coordinate of the sprite. */ virtual int getPixelY() const = 0; + + /** + * Returns the number of Image layers used to draw the sprite. + */ + virtual int getNumberOfLayers() const + { return 0; } + + /** + * Returns the current alpha value used to draw the sprite. + */ + virtual float getAlpha() const = 0; + + /** + * Sets the alpha value used to draw the sprite. + */ + virtual void setAlpha(float alpha) = 0; }; #endif |