diff options
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r-- | src/compoundsprite.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h index c714c34b..38c38453 100644 --- a/src/compoundsprite.h +++ b/src/compoundsprite.h @@ -58,6 +58,10 @@ public: int getNumberOfLayers() const; + size_t getCurrentFrame() const; + + size_t getFrameCount() const; + size_t size() const { return std::vector<Sprite*>::size(); } @@ -74,6 +78,16 @@ public: void ensureSize(size_t layerCount); + /** + * Returns the curent frame in the current animation of the given layer. + */ + virtual size_t getCurrentFrame(size_t layer); + + /** + * Returns the frame count in the current animation of the given layer. + */ + virtual size_t getFrameCount(size_t layer); + private: typedef CompoundSprite::iterator SpriteIterator; typedef CompoundSprite::const_iterator SpriteConstIterator; |