29 #ifndef __CLAW_TWEEN_BASE_TWEENER_HPP__
30 #define __CLAW_TWEEN_BASE_TWEENER_HPP__
33 #include <boost/function.hpp>
59 double update(
double dt );
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;
92 #endif // __CLAW_TWEEN_BASE_TWEENER_HPP__
boost::function< void()> finish_callback
The type of the function called to notify the end of the tweener.
virtual ~base_tweener()
Destructor.
Common interface for all tweeners.
void on_finished(finish_callback f)
Execute the callbacks notifying about the finish of the tweener.
base_tweener * clone() const
Create a copy of this allocated with new.
bool is_finished() const
Tell if the tweener has reached his total duration.
double update(double dt)
Update the base_tweener of a given amount of time.