CCEaseElasticIn* CCEaseElasticIn::create ( CCActionInterval* pAction, KDfloat fPeriod )
{
	CCEaseElasticIn*  pRet = new CCEaseElasticIn ( );

    if ( pRet && pRet->initWithAction ( pAction, fPeriod ) )
    {
        pRet->autorelease ( );
    }
    else
    {
        CC_SAFE_DELETE ( pRet );
    }

	return pRet; 
}
Beispiel #2
0
	CCEaseElasticIn* CCEaseElasticIn::actionWithAction(CCIntervalAction *pAction)
	{
		CCEaseElasticIn *pRet = new CCEaseElasticIn();
		if (pRet)
		{
			if (pRet->initWithAction(pAction))
			{
				pRet->autorelease();
			}
			else
			{
				CCX_SAFE_RELEASE_NULL(pRet);
			}
		}

		return pRet; 
	}
Beispiel #3
0
CCEaseElasticIn* CCEaseElasticIn::create(CCActionInterval *pAction, float fPeriod/* = 0.3f*/)
{
    CCEaseElasticIn *pRet = new CCEaseElasticIn();
    if (pRet)
    {
        if (pRet->initWithAction(pAction, fPeriod))
        {
            pRet->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pRet);
        }
    }

    return pRet; 
}