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