| 74 | } |
| 75 | |
| 76 | ParticleFire* ParticleFire::createWithTotalParticles(int numberOfParticles) |
| 77 | { |
| 78 | ParticleFire* ret = new ParticleFire(); |
| 79 | if (ret->initWithTotalParticles(numberOfParticles)) |
| 80 | { |
| 81 | ret->autorelease(); |
| 82 | } |
| 83 | else |
| 84 | { |
| 85 | AX_SAFE_DELETE(ret); |
| 86 | } |
| 87 | return ret; |
| 88 | } |
| 89 | |
| 90 | bool ParticleFire::initWithTotalParticles(int numberOfParticles) |
| 91 | { |
nothing calls this directly
no test coverage detected