summaryrefslogtreecommitdiff
path: root/src/sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sprite.h b/src/sprite.h
index 2bcd754a..cce41f1d 100644
--- a/src/sprite.h
+++ b/src/sprite.h
@@ -93,6 +93,16 @@ class Sprite
virtual float getAlpha() const
{ return mAlpha; }
+ /**
+ * Returns the current frame number for the sprite.
+ */
+ virtual size_t getCurrentFrame() const = 0;
+
+ /**
+ * Returns the frame count for the sprite.
+ */
+ virtual size_t getFrameCount() const = 0;
+
protected:
float mAlpha; /**< The alpha opacity used to draw */
};