#include <CCDatas.h>
Public Member Functions | |
MovementData (void) | |
~MovementData (void) | |
void | addMovementBoneData (MovementBoneData *movBoneData) |
MovementBoneData * | getMovementBoneData (const std::string &boneName) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Release the ownership immediately. More... | |
Ref * | autorelease () |
Release the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Static Public Member Functions | |
static MovementData * | create (void) |
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... | |
MovementData | ( | void | ) |
~MovementData | ( | void | ) |
void addMovementBoneData | ( | MovementBoneData * | movBoneData) |
|
inlinestatic |
MovementBoneData* getMovementBoneData |
( | const std::string & | boneName) |
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
cocos2d::tweenfunc::TweenType tweenEasing |
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