CCHierarchiesAnimate* CCHierarchiesAnimate::createWholeAnimation (const char* spriteAnimationName) { CCHierarchiesAnimate* ret = new CCHierarchiesAnimate(); if (ret->initWholeAnimation(spriteAnimationName)) { ret->autorelease(); return ret; } CC_SAFE_DELETE(ret); return NULL; }
NS_CC_EXT_BEGIN #pragma mark - CCHierarchiesAnimate CCHierarchiesAnimate* CCHierarchiesAnimate::create (const char* animationName, const char* spriteAnimationName) { CCHierarchiesAnimate* ret = new CCHierarchiesAnimate(); if (ret->initWithName(animationName, spriteAnimationName)) { ret->autorelease(); return ret; } CC_SAFE_DELETE(ret); return NULL; }