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

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

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

		return pRet; 
	}
Example #3
0
CCEaseBounce* CCEaseBounce::create(CCActionInterval* pAction)
{
    CCEaseBounce *pRet = new CCEaseBounce();
    if (pRet)
    {
        if (pRet->initWithAction(pAction))
        {
            pRet->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pRet);
        }
    }

    return pRet; 
}