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