Change AnimationPlayer::stop to take a Placeable
authorMikko Rasa <tdb@tdb.fi>
Sun, 23 Jun 2019 21:25:26 +0000 (00:25 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 23 Jun 2019 21:25:26 +0000 (00:25 +0300)
source/animationplayer.cpp
source/animationplayer.h

index a3c6ee2289b645be9ba628edb9e23c6112775b67..ac16321874a7abd612ad6cf39fdb69cf1fdb8cf4 100644 (file)
@@ -91,12 +91,12 @@ void AnimationPlayer::unobserve_events(AnimationEventObserver &observer)
        }
 }
 
-void AnimationPlayer::stop(AnimatedObject &obj)
+void AnimationPlayer::stop(Placeable &obj)
 {
        objects.erase(&obj);
 }
 
-void AnimationPlayer::stop(AnimatedObject &obj, const Animation &anim)
+void AnimationPlayer::stop(Placeable &obj, const Animation &anim)
 {
        ObjectMap::iterator i = objects.find(&obj);
        if(i==objects.end())
index b6575304f4072d03f489590e599b370ad0ea816b..c45027d9e82bacfb0358981dfadcc0fded8c5eb9 100644 (file)
@@ -77,10 +77,10 @@ public:
        void unobserve_events(AnimationEventObserver &);
 
        /// Stops all animations affecting an object.
-       void stop(AnimatedObject &);
+       void stop(Placeable &);
 
        /// Stops a single animation affecting an object.
-       void stop(AnimatedObject &, const Animation &);
+       void stop(Placeable &, const Animation &);
 
        /** Advances all playing animations.  Should be called in a regular manner,
        preferably just before rendering. */