CCEaseElasticOut* CCEaseElasticOut::create ( CCActionInterval* pAction, KDfloat fPeriod ) { CCEaseElasticOut* pRet = new CCEaseElasticOut ( ); if ( pRet && pRet->initWithAction ( pAction, fPeriod ) ) { pRet->autorelease ( ); } else { CC_SAFE_DELETE ( pRet ); } return pRet; }
CCEaseElasticOut* CCEaseElasticOut::actionWithAction(CCIntervalAction *pAction, float fPeriod) { CCEaseElasticOut *pRet = new CCEaseElasticOut(); if (pRet) { if (pRet->initWithAction(pAction, fPeriod)) { pRet->autorelease(); } else { CCX_SAFE_RELEASE_NULL(pRet); } } return pRet; }
CCEaseElasticOut* CCEaseElasticOut::create(CCActionInterval *pAction, float fPeriod/* = 0.3f*/) { CCEaseElasticOut *pRet = new CCEaseElasticOut(); if (pRet) { if (pRet->initWithAction(pAction, fPeriod)) { pRet->autorelease(); } else { CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }
// // EaseElasticOut // CCEaseElasticOut* CCEaseElasticOut::actionWithAction(CCActionInterval *pAction) { CCEaseElasticOut *pRet = new CCEaseElasticOut(); if (pRet) { if (pRet->initWithAction(pAction)) { pRet->autorelease(); } else { CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }