27 lines
383 B
C++
27 lines
383 B
C++
#include "..\e2daction.h"
|
|
|
|
e2d::CallFunc::CallFunc(const Function& func) :
|
|
_func(func)
|
|
{
|
|
}
|
|
|
|
e2d::CallFunc * e2d::CallFunc::clone() const
|
|
{
|
|
return new (e2d::autorelease) CallFunc(_func);
|
|
}
|
|
|
|
e2d::CallFunc * e2d::CallFunc::reverse() const
|
|
{
|
|
return new (e2d::autorelease) CallFunc(_func);
|
|
}
|
|
|
|
void e2d::CallFunc::_init()
|
|
{
|
|
}
|
|
|
|
void e2d::CallFunc::_update()
|
|
{
|
|
_func();
|
|
this->stop();
|
|
}
|