#include <CCDatas.h>
Public Member Functions | |
| CC_CREATE_NO_PARAM_NO_INIT(MovementData) public | ~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 () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| 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... | |
| Ref () | |
| Constructor. More... | |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| var | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
| CC_CREATE_NO_PARAM_NO_INIT (MovementData) public ~MovementData |
( | void | ) |
| void addMovementBoneData | ( | MovementBoneData * | movBoneData | ) |
| 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