cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCArmatureDataManager Class Reference

format and manage armature configuration and armature animation More...

#include <CCArmatureDataManager.h>

Inheritance diagram for CCArmatureDataManager:
CCObject CCCopying

Public Member Functions

virtual bool init ()
 Init CCArmatureDataManager. More...
 
void addArmatureData (const char *id, CCArmatureData *armatureData, const char *configFilePath="")
 Add armature data. More...
 
CCArmatureDatagetArmatureData (const char *id)
 get armature data More...
 
void removeArmatureData (const char *id)
 remove armature data More...
 
void addAnimationData (const char *id, CCAnimationData *animationData, const char *configFilePath="")
 add animation data More...
 
CCAnimationDatagetAnimationData (const char *id)
 get animation data from m_pAnimationDatas(CCDictionary) More...
 
void removeAnimationData (const char *id)
 remove animation data More...
 
void addTextureData (const char *id, CCTextureData *textureData, const char *configFilePath="")
 add texture data More...
 
CCTextureDatagetTextureData (const char *id)
 get texture data More...
 
void removeTextureData (const char *id)
 remove texture data More...
 
void addArmatureFileInfo (const char *configFilePath)
 Add ArmatureFileInfo, it is managed by CCArmatureDataManager. More...
 
void addArmatureFileInfoAsync (const char *configFilePath, CCObject *target, SEL_SCHEDULE selector)
 Add ArmatureFileInfo, it is managed by CCArmatureDataManager. More...
 
void addArmatureFileInfo (const char *imagePath, const char *plistPath, const char *configFilePath)
 Add ArmatureFileInfo, it is managed by CCArmatureDataManager. More...
 
void addArmatureFileInfoAsync (const char *imagePath, const char *plistPath, const char *configFilePath, CCObject *target, SEL_SCHEDULE selector)
 Add ArmatureFileInfo, it is managed by CCArmatureDataManager. More...
 
virtual void removeArmatureFileInfo (const char *configFilePath)
void addSpriteFrameFromFile (const char *plistPath, const char *imagePath, const char *configFilePath="")
 Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name. More...
 
bool isAutoLoadSpriteFile ()
 Juge whether or not need auto load sprite file. More...
 
CCDictionarygetArmatureDatas () const
CCDictionarygetAnimationDatas () const
CCDictionarygetTextureDatas () const
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCArmatureDataManagersharedArmatureDataManager ()
static void purge ()

Protected Member Functions

void addRelativeData (const char *configFilePath)
CCRelativeDatagetRelativeData (const char *configFilePath)

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Detailed Description

format and manage armature configuration and armature animation

Member Function Documentation

void addAnimationData ( const char *  id,
CCAnimationData animationData,
const char *  configFilePath = "" 
)

add animation data

Parameters
idthe id of the animation data
Returns
CCAnimationData *
void addArmatureData ( const char *  id,
CCArmatureData armatureData,
const char *  configFilePath = "" 
)

Add armature data.

Parameters
idThe id of the armature data
armatureDataCCArmatureData *
void addArmatureFileInfo ( const char *  configFilePath)

Add ArmatureFileInfo, it is managed by CCArmatureDataManager.

void addArmatureFileInfo ( const char *  imagePath,
const char *  plistPath,
const char *  configFilePath 
)

Add ArmatureFileInfo, it is managed by CCArmatureDataManager.

void addArmatureFileInfoAsync ( const char *  configFilePath,
CCObject target,
SEL_SCHEDULE  selector 
)

Add ArmatureFileInfo, it is managed by CCArmatureDataManager.

It will load data in a new thread

void addArmatureFileInfoAsync ( const char *  imagePath,
const char *  plistPath,
const char *  configFilePath,
CCObject target,
SEL_SCHEDULE  selector 
)

Add ArmatureFileInfo, it is managed by CCArmatureDataManager.

It will load data in a new thread

void addRelativeData ( const char *  configFilePath)
protected
void addSpriteFrameFromFile ( const char *  plistPath,
const char *  imagePath,
const char *  configFilePath = "" 
)

Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name.

void addTextureData ( const char *  id,
CCTextureData textureData,
const char *  configFilePath = "" 
)

add texture data

Parameters
idthe id of the texture data
Returns
CCTextureData *
CCAnimationData* getAnimationData ( const char *  id)

get animation data from m_pAnimationDatas(CCDictionary)

Parameters
idthe id of the animation data you want to get
Returns
CCAnimationData *
CCDictionary* getAnimationDatas ( ) const
CCArmatureData* getArmatureData ( const char *  id)

get armature data

Parameters
idthe id of the armature data you want to get
Returns
CCArmatureData *
CCDictionary* getArmatureDatas ( ) const
CCRelativeData* getRelativeData ( const char *  configFilePath)
protected
CCTextureData* getTextureData ( const char *  id)

get texture data

Parameters
idthe id of the texture data you want to get
Returns
CCTextureData *
CCDictionary* getTextureDatas ( ) const
virtual bool init ( )
virtual
bool isAutoLoadSpriteFile ( )

Juge whether or not need auto load sprite file.

static void purge ( )
static
void removeAnimationData ( const char *  id)

remove animation data

Parameters
idthe id of the animation data
void removeArmatureData ( const char *  id)

remove armature data

Parameters
idthe id of the armature data you want to get
virtual void removeArmatureFileInfo ( const char *  configFilePath)
virtual
void removeTextureData ( const char *  id)

remove texture data

Parameters
idthe id of the texture data you want to get
static CCArmatureDataManager*
sharedArmatureDataManager
( )
static

The documentation for this class was generated from the following file: