ParticleSun* ParticleSun::createWithTotalParticles(unsigned int numberOfParticles) { ParticleSun* pRet = new ParticleSun(); if (pRet && pRet->initWithTotalParticles(numberOfParticles)) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
ParticleSun* ParticleSun::createWithTotalParticles(int numberOfParticles) { ParticleSun* ret = new (std::nothrow) ParticleSun(); if (ret && ret->initWithTotalParticles(numberOfParticles)) { ret->autorelease(); } else { CC_SAFE_DELETE(ret); } return ret; }
// // ParticleSun // ParticleSun* ParticleSun::create() { ParticleSun* pRet = new ParticleSun(); if (pRet && pRet->init()) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
// // ParticleSun // ParticleSun* ParticleSun::create() { ParticleSun* ret = new (std::nothrow) ParticleSun(); if (ret && ret->init()) { ret->autorelease(); } else { CC_SAFE_DELETE(ret); } return ret; }