21 lines
356 B
C++
21 lines
356 B
C++
#include "..\e2daction.h"
|
|
#include "..\e2dnode.h"
|
|
|
|
|
|
e2d::RotateTo::RotateTo(float duration, float rotation)
|
|
: RotateBy(duration, 0)
|
|
{
|
|
_endVal = rotation;
|
|
}
|
|
|
|
e2d::RotateTo * e2d::RotateTo::clone() const
|
|
{
|
|
return new (e2d::autorelease) RotateTo(_duration, _endVal);
|
|
}
|
|
|
|
void e2d::RotateTo::_init()
|
|
{
|
|
RotateBy::_init();
|
|
_deltaVal = _endVal - _startVal;
|
|
}
|