30#ifndef __CLAW_TWEEN_TWEENER_HPP__
31#define __CLAW_TWEEN_TWEENER_HPP__
34#include <boost/function.hpp>
68 double update(
double dt );
Common interface for all tweeners.
A tweener makes a value to evolve through time from a initial value to an end value according to a gi...
tweener()
Default constructor.
bool is_finished() const
Tell if the tweener has reached his total duration.
void swap(tweener &that)
Swap this instance with a given instance.
double update(double dt)
Update the tweener of a given amount of time.
boost::function< void()> finish_callback
The type of the function called to notify the end of the tweener.
void on_finished(finish_callback f)
Execute the callbacks notifying about the finish of the tweener.
tweener & operator=(const tweener &that)
Assignment operator.
This is the main namespace.