CCWavesTiles3D* CCWavesTiles3D::create(float duration, const CCSize& gridSize, unsigned int waves, float amplitude) { CCWavesTiles3D *pAction = new CCWavesTiles3D(); if (pAction) { if (pAction->initWithDuration(duration, gridSize, waves, amplitude)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }
CCWavesTiles3D* CCWavesTiles3D::actionWithWaves(int wav, float amp, const ccGridSize& gridSize, ccTime duration) { CCWavesTiles3D *pAction = new CCWavesTiles3D(); if (pAction) { if (pAction->initWithWaves(wav, amp, gridSize, duration)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }