CCSplitRows* CCSplitRows::create(float duration, unsigned int nRows) { CCSplitRows *pAction = new CCSplitRows(); if (pAction) { if (pAction->initWithDuration(duration, nRows)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }
CCSplitRows* CCSplitRows::actionWithRows(int nRows, ccTime duration) { CCSplitRows *pAction = new CCSplitRows(); if (pAction) { if (pAction->initWithRows(nRows, duration)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }