CCFlipY3D* CCFlipY3D::actionWithDuration(ccTime duration) { CCFlipY3D *pAction = new CCFlipY3D(); if (pAction) { if (pAction->initWithSize(ccg(1, 1), duration)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }
CCObject* CCFlipY3D::copyWithZone(CCZone* pZone) { CCZone* pNewZone = NULL; CCFlipY3D* pCopy = NULL; if(pZone && pZone->m_pCopyObject) { //in case of being called at sub class pCopy = (CCFlipY3D*)(pZone->m_pCopyObject); } else { pCopy = new CCFlipY3D(); pZone = pNewZone = new CCZone(pCopy); } CCFlipX3D::copyWithZone(pZone); pCopy->initWithSize(m_sGridSize, m_fDuration); CC_SAFE_DELETE(pNewZone); return pCopy; }