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

ArmatureData saved the Armature name and Bonedata needed for the CCBones in this Armature When we create a Armature, we need to get each Bone's BoneData as it's init information. More...

#include <CCDatas.h>

Inheritance diagram for ArmatureData:
Ref

Public Member Functions

CC_CREATE_NO_PARAM(ArmatureData)
public 
~ArmatureData ()
bool init ()
void addBoneData (BoneData *boneData)
BoneDatagetBoneData (const std::string &boneName)
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Public Attributes

std::string name
cocos2d::Map< std::string,
BoneData * > 
boneDataDic
float dataVersion

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Detailed Description

ArmatureData saved the Armature name and Bonedata needed for the CCBones in this Armature When we create a Armature, we need to get each Bone's BoneData as it's init information.

So we can get a BoneData from the Dictionary saved in the ArmatureData.

Constructor & Destructor Documentation

Member Function Documentation

void addBoneData ( BoneData boneData)
BoneData* getBoneData ( const std::string &  boneName)
bool init ( )

Member Data Documentation

cocos2d::Map<std::string,
BoneData*> boneDataDic
float dataVersion
std::string name

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