57 return do_is_finished();
70 const double result = do_update(dt);
87 m_on_finished.push_back(f);
94 void claw::tween::base_tweener::notify_finished()
const 99 const std::list<finish_callback> callbacks(m_on_finished);
101 for ( std::list<finish_callback>::const_iterator it=callbacks.begin();
102 it!=callbacks.end(); ++it )
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.
Common interface for all tweeners.
bool is_finished() const
Tell if the tweener has reached his total duration.
#define CLAW_POSTCOND(b)
Abort the program if a postcondition is not true.
Some assert macros to strengthen you code.
#define CLAW_PRECOND(b)
Abort the program if a precondition is not true.
double update(double dt)
Update the base_tweener of a given amount of time.