Spawn *Spawn::createWithTwoActions(FiniteTimeAction *action1, FiniteTimeAction *action2) { Spawn *spawn = new(std::nothrow) Spawn(); spawn->initWithTwoActions(action1, action2); return spawn; }
Spawn* Spawn::createWithTwoActions(FiniteTimeAction *pAction1, FiniteTimeAction *pAction2) { Spawn *pSpawn = new Spawn(); pSpawn->initWithTwoActions(pAction1, pAction2); pSpawn->autorelease(); return pSpawn; }