Exemple #1
0
// move to
void UIDragPanel::moveToWithDuration(float duration, const CCPoint& position)
{
    actionWithDuration(duration);
    m_endPosition = position;    
    moveToInit();
    m_nActionType = 2;
}
Exemple #2
0
// 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);
}
Exemple #4
0
CC3ActionAnimationCrossFade* CC3ActionAnimationCrossFade::actionWithDuration( float t, GLuint fromTrackID, GLuint toTrackID )
{
	return actionWithDuration( t, fromTrackID, toTrackID, 1.0f );
}
Exemple #5
0
CC3ActionInterval* CC3ActionAnimationCrossFade::reverse()
{
	return actionWithDuration( getDuration(), getToTrackID(), getFromTrackID(), m_startWeight );
}
Exemple #6
0
CC3ActionInterval* CC3ActionAnimate::reverse()
{
	CC3ActionAnimate* newAnim = actionWithDuration( getDuration() );
	newAnim->setIsReversed( !isReversed() );
	return newAnim;
}
Exemple #7
0
CC3ActionInterval* CC3ActionAnimationBlendingFadeTrackTo::reverse()
{
	return actionWithDuration( getDuration(), m_trackID, m_startWeight );
}
Exemple #8
0
CC3ActionAnimate* CC3ActionAnimate::actionWithDuration( float t )
{
	return actionWithDuration( t, 0 ); 
}
Exemple #9
0
CC3ActionAnimate* CC3ActionAnimate::actionWithDuration( float t, GLfloat startOfRange, GLfloat endOfRange )
{
	return actionWithDuration( t, 0, startOfRange, endOfRange );
}
Exemple #10
0
CC3ActionInterval* CC3ActionRotateToAngle::reverse()
{
	return actionWithDuration( getDuration(), m_startAngle );
}
Exemple #11
0
CC3ActionInterval* CC3ActionTransformTo::reverse()
{
	return actionWithDuration( getDuration(), m_startVector );
}
Exemple #12
0
CC3ActionInterval* CC3ActionRotateByAngle::reverse() 
{
	return actionWithDuration( getDuration(), -m_diffAngle, m_rotationAxis );
}
Exemple #13
0
CC3ActionScaleBy* CC3ActionScaleBy::actionWithDuration( float t, GLfloat aScale )
{
	return actionWithDuration( t, cc3v(aScale, aScale, aScale) );
}
Exemple #14
0
Shake* Shake::actionWithDuration(float d, float strength)
{
    // call other construction method with twice the same strength
    return actionWithDuration(d, strength, strength);
}