CCTurnOffTiles* CCTurnOffTiles::create(float duration, const CCSize& gridSize) { CCTurnOffTiles* pAction = new CCTurnOffTiles(); if (pAction->initWithDuration(duration, gridSize, 0)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } return pAction; }
// implementation of TurnOffTiles CCTurnOffTiles* CCTurnOffTiles::actionWithSize(const ccGridSize& size, ccTime d) { CCTurnOffTiles* pAction = new CCTurnOffTiles(); if (pAction->initWithSize(size, d)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } return pAction; }
CCTurnOffTiles* CCTurnOffTiles::actionWithSeed(int s, const ccGridSize& gridSize, ccTime duration) { CCTurnOffTiles *pAction = new CCTurnOffTiles(); if (pAction) { if (pAction->initWithSeed(s, gridSize, duration)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }