CCEaseSineIn* CCEaseSineIn::create ( CCActionInterval* pAction )
{
	CCEaseSineIn*  pRet = new CCEaseSineIn ( );

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

	return pRet; 
}
Esempio n. 2
0
	//
	// EaseSineIn
	//
	CCEaseSineIn* CCEaseSineIn::actionWithAction(CCIntervalAction* pAction)
	{
		CCEaseSineIn *pRet = new CCEaseSineIn();
		if (pRet)
		{
			if (pRet->initWithAction(pAction))
			{
				pRet->autorelease();
			}
			else
			{
				CCX_SAFE_RELEASE_NULL(pRet);
			}
		}

		return pRet; 
	}