CCEaseExponentialIn* CCEaseExponentialIn::create ( CCActionInterval* pAction ) { CCEaseExponentialIn* pRet = new CCEaseExponentialIn ( ); if ( pRet && pRet->initWithAction ( pAction ) ) { pRet->autorelease ( ); } else { CC_SAFE_DELETE ( pRet ); } return pRet; }
// // EaseExponentialIn // CCEaseExponentialIn* CCEaseExponentialIn::actionWithAction(CCIntervalAction* pAction) { CCEaseExponentialIn *pRet = new CCEaseExponentialIn(); if (pRet) { if (pRet->initWithAction(pAction)) { pRet->autorelease(); } else { CCX_SAFE_RELEASE_NULL(pRet); } } return pRet; }
NSObject* CCEaseExponentialIn::copyWithZone(cocos2d::NSZone *pZone) { NSZone* pNewZone = NULL; CCEaseExponentialIn* pCopy = NULL; if(pZone && pZone->m_pCopyObject) { //in case of being called at sub class pCopy = (CCEaseExponentialIn*)(pZone->m_pCopyObject); } else { pCopy = new CCEaseExponentialIn(); pZone = pNewZone = new NSZone(pCopy); } pCopy->initWithAction((CCIntervalAction *)(m_pOther->copy()->autorelease())); CCX_SAFE_DELETE(pNewZone); return pCopy; }
CCObject* CCEaseExponentialIn::copyWithZone(CCZone *pZone) { CCZone* pNewZone = NULL; CCEaseExponentialIn* pCopy = NULL; if(pZone && pZone->m_pCopyObject) { //in case of being called at sub class pCopy = (CCEaseExponentialIn*)(pZone->m_pCopyObject); } else { pCopy = new CCEaseExponentialIn(); pNewZone = new CCZone(pCopy); } pCopy->initWithAction((CCActionInterval *)(m_pInner->copy()->autorelease())); CC_SAFE_DELETE(pNewZone); return pCopy; }