CCSpeed* CCSpeed::create(CCActionInterval* pAction, float fSpeed) { CCSpeed *pRet = new CCSpeed(); if (pRet && pRet->initWithAction(pAction, fSpeed)) { pRet->autorelease(); return pRet; } CC_SAFE_DELETE(pRet); return NULL; }
CCSpeed * CCSpeed::actionWithAction(CCActionInterval *pAction, float fRate) { CCSpeed *pRet = new CCSpeed(); if (pRet && pRet->initWithAction(pAction, fRate)) { pRet->autorelease(); return pRet; } CCX_SAFE_DELETE(pRet) return NULL; }