// move to void UIDragPanel::moveToWithDuration(float duration, const CCPoint& position) { actionWithDuration(duration); m_endPosition = position; moveToInit(); m_nActionType = 2; }
// move by void UIDragPanel::moveByWithDuration(float duration, const CCPoint& deltaPosition) { actionWithDuration(duration); m_positionDelta = deltaPosition; moveByInit(); m_nActionType = 1; }
CCActionInterval* CCSkewBy::reverse() { return actionWithDuration(m_fDuration, -m_fSkewX, -m_fSkewY); }
CC3ActionAnimationCrossFade* CC3ActionAnimationCrossFade::actionWithDuration( float t, GLuint fromTrackID, GLuint toTrackID ) { return actionWithDuration( t, fromTrackID, toTrackID, 1.0f ); }
CC3ActionInterval* CC3ActionAnimationCrossFade::reverse() { return actionWithDuration( getDuration(), getToTrackID(), getFromTrackID(), m_startWeight ); }
CC3ActionInterval* CC3ActionAnimate::reverse() { CC3ActionAnimate* newAnim = actionWithDuration( getDuration() ); newAnim->setIsReversed( !isReversed() ); return newAnim; }
CC3ActionInterval* CC3ActionAnimationBlendingFadeTrackTo::reverse() { return actionWithDuration( getDuration(), m_trackID, m_startWeight ); }
CC3ActionAnimate* CC3ActionAnimate::actionWithDuration( float t ) { return actionWithDuration( t, 0 ); }
CC3ActionAnimate* CC3ActionAnimate::actionWithDuration( float t, GLfloat startOfRange, GLfloat endOfRange ) { return actionWithDuration( t, 0, startOfRange, endOfRange ); }
CC3ActionInterval* CC3ActionRotateToAngle::reverse() { return actionWithDuration( getDuration(), m_startAngle ); }
CC3ActionInterval* CC3ActionTransformTo::reverse() { return actionWithDuration( getDuration(), m_startVector ); }
CC3ActionInterval* CC3ActionRotateByAngle::reverse() { return actionWithDuration( getDuration(), -m_diffAngle, m_rotationAxis ); }
CC3ActionScaleBy* CC3ActionScaleBy::actionWithDuration( float t, GLfloat aScale ) { return actionWithDuration( t, cc3v(aScale, aScale, aScale) ); }
Shake* Shake::actionWithDuration(float d, float strength) { // call other construction method with twice the same strength return actionWithDuration(d, strength, strength); }