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