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; }
CCFlipY3D* CCFlipY3D::create(float duration) { CCFlipY3D *pAction = new CCFlipY3D(); if (pAction) { if (pAction->initWithDuration(duration)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }