EaseSineInOut* EaseSineInOut::create(ActionInterval* action) { EaseSineInOut *ret = new (std::nothrow) EaseSineInOut(); if (ret && ret->initWithAction(action)) { ret->autorelease(); return ret; } delete ret; return nullptr; }
EaseSineInOut* EaseSineInOut::create(ActionInterval* action) { EaseSineInOut *ret = new (std::nothrow) EaseSineInOut(); if (ret) { if (ret->initWithAction(action)) { ret->autorelease(); } else { CC_SAFE_RELEASE_NULL(ret); } } return ret; }
EaseSineInOut* EaseSineInOut::create(ActionInterval* pAction) { EaseSineInOut *pRet = new EaseSineInOut(); if (pRet) { if (pRet->initWithAction(pAction)) { pRet->autorelease(); } else { CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }
Object* EaseSineInOut::copyWithZone(Zone *pZone) { Zone* pNewZone = NULL; EaseSineInOut* pCopy = NULL; if(pZone && pZone->_copyObject) { //in case of being called at sub class pCopy = (EaseSineInOut*)(pZone->_copyObject); } else { pCopy = new EaseSineInOut(); pNewZone = new Zone(pCopy); } pCopy->initWithAction((ActionInterval *)(_inner->copy()->autorelease())); CC_SAFE_DELETE(pNewZone); return pCopy; }