CCParticleSystem* CCParticleSystem::createWithTotalParticles(unsigned int numberOfParticles) { CCParticleSystem *pRet = new CCParticleSystem(); if (pRet && pRet->initWithTotalParticles(numberOfParticles)) { pRet->autorelease(); return pRet; } CC_SAFE_DELETE(pRet); return pRet; }
CCParticleSystem * CCParticleSystem::create(const char *plistFile) { CCParticleSystem *pRet = new CCParticleSystem(); if (pRet && pRet->initWithFile(plistFile)) { pRet->autorelease(); return pRet; } CC_SAFE_DELETE(pRet); return pRet; }