/** * \brief Applies a movement to this object. * * Any previous movement is stopped. * * \param movement The movement to apply. */ void Drawable::start_movement(Movement& movement) { stop_movement(); this->movement = &movement; movement.set_drawable(this); movement.increment_refcount(); }
/** * \brief Applies a movement to this object. * * Any previous movement is stopped. * * \param movement The movement to apply. */ void Drawable::start_movement(Movement& movement) { stop_movement(); this->movement = &movement; movement.set_drawable(this); RefCountable::ref(&movement); }