CCArmature *CCArmature::create() { CCArmature *armature = new CCArmature(); if (armature && armature->init()) { armature->autorelease(); return armature; } CC_SAFE_DELETE(armature); return NULL; }
CCArmature *CCArmature::create(const char *name, CCBone *parentBone) { CCArmature *armature = new CCArmature(); if (armature && armature->init(name, parentBone)) { armature->autorelease(); return armature; } CC_SAFE_DELETE(armature); return NULL; }
CCArmature *CCArmature::create(const char *name) { CCArmature *armature = new CCArmature(); if (armature && armature->init(name)) { CC_SAFE_AUTORELEASE(armature); return armature; } CC_SAFE_DELETE(armature); return NULL; }