25 lines
462 B
C++
25 lines
462 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_fTotalDuration / 1000, m_nEndVal);
|
|
}
|
|
|
|
void e2d::EActionRotateTo::_init()
|
|
{
|
|
EActionRotateBy::_init();
|
|
m_nVariation = m_nEndVal - m_nBeginVal;
|
|
}
|
|
|
|
void e2d::EActionRotateTo::_reset()
|
|
{
|
|
EActionRotateBy::_reset();
|
|
}
|