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

#include <CCDatas.h>

Inheritance diagram for MovementData:
Ref

Public Member Functions

CC_CREATE_NO_PARAM_NO_INIT(MovementData)
public 
~MovementData (void)
void addMovementBoneData (MovementBoneData *movBoneData)
MovementBoneDatagetMovementBoneData (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 ()

Public Attributes

std::string name
int duration
float scale
 the frames this movement will last More...
 
int durationTo
 scale this movement More...
 
int durationTween
bool loop
cocos2d::tweenfunc::TweenType tweenEasing
 whether the movement was looped More...
 
cocos2d::Map< std::string,
MovementBoneData * > 
movBoneDataDic
 save movment bone data const std::string& MovementBoneData * More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

Member Function Documentation

void addMovementBoneData ( MovementBoneData movBoneData)
MovementBoneData*
getMovementBoneData
( const std::string &  boneName)

Member Data Documentation

int duration
int durationTo

scale this movement

Change to this movement will last durationTo frames. Use this effect can avoid too suddenly changing.

Example : current movement is "stand", we want to change to "run", then we fill durationTo frames before change to "run" instead of changing to "run" directly.

int durationTween
bool loop
cocos2d::Map<std::string,
MovementBoneData*>
movBoneDataDic

save movment bone data const std::string& MovementBoneData *

std::string name
float scale

the frames this movement will last

whether the movement was looped

Which tween easing effect the movement use TWEEN_EASING_MAX : use the value from MovementData get from flash design panel


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