20 lines
381 B
C++
20 lines
381 B
C++
#include "..\eactions.h"
|
|
|
|
|
|
e2d::EActionRotateTo::EActionRotateTo(float duration, float rotation) :
|
|
EActionRotateBy(duration, 0)
|
|
{
|
|
m_nEndVal = rotation;
|
|
}
|
|
|
|
e2d::EActionRotateTo * e2d::EActionRotateTo::clone() const
|
|
{
|
|
return new EActionRotateTo(m_fDuration, m_nEndVal);
|
|
}
|
|
|
|
void e2d::EActionRotateTo::_init()
|
|
{
|
|
EActionRotateBy::_init();
|
|
m_nVariation = m_nEndVal - m_nBeginVal;
|
|
}
|