29#ifndef __CLAW_TWEEN_BASE_TWEENER_HPP__
30#define __CLAW_TWEEN_BASE_TWEENER_HPP__
64 void notify_finished()
const;
74 virtual bool do_is_finished()
const = 0;
81 virtual double do_update(
double dt) = 0;
85 std::list<finish_callback> m_on_finished;
Common interface for all tweeners.
std::function< void()> finish_callback
The type of the function called to notify the end of the tweener.
double update(double dt)
Update the base_tweener of a given amount of time.
base_tweener * clone() const
Create a copy of this allocated with new.
virtual ~base_tweener()
Destructor.
void on_finished(finish_callback f)
Execute the callbacks notifying about the finish of the tweener.
bool is_finished() const
Tell if the tweener has reached his total duration.
Tweeners interpolate the intermediate values between two given reference values using various equatio...
This is the main namespace.