CCLens3D* CCLens3D::actionWithPosition(const CCPoint& pos, float r, const ccGridSize& gridSize, ccTime duration) { CCLens3D *pAction = new CCLens3D(); if (pAction) { if (pAction->initWithPosition(pos, r, gridSize, duration)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }
CCLens3D* CCLens3D::create(float duration, const CCSize& gridSize, const CCPoint& position, float radius) { CCLens3D *pAction = new CCLens3D(); if (pAction) { if (pAction->initWithDuration(duration, gridSize, position, radius)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }