X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanimationplayer.h;h=db338ffb25b24684975078544bbfa66b2435d6c5;hb=cd7dff6e8cf6a7b678b359e1cf02695ad688468f;hp=cc34e16a513f411f1c427364f91eee18bda10b11;hpb=5ba1446b314ddc914693cb9cbb9a7b54a4d30a45;p=libs%2Fgl.git diff --git a/source/animationplayer.h b/source/animationplayer.h index cc34e16a..db338ffb 100644 --- a/source/animationplayer.h +++ b/source/animationplayer.h @@ -37,7 +37,7 @@ private: ObjectSlot(AnimatedObject &); }; - typedef std::map ObjectMap; + typedef std::map ObjectMap; ObjectMap objects; @@ -52,6 +52,9 @@ public: playing yet, the object's current matrix is used as the base. */ void play_stacked(AnimatedObject &, const Animation &); + /// Returns the number of animations currently affecting an object. + unsigned get_n_active_animations(const AnimatedObject &) const; + /// Stops any animations affecting an object. void stop(AnimatedObject &);