cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Public 成员函数 - 图1 Public 成员函数 - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表

MovementData类 参考

NA NA 更多…

#include

类 MovementData 继承关系图:

Public 成员函数 - 图3 Ref

## Public 成员函数
MovementData (void)
ctor 更多…
~MovementData (void)
NA NA 更多…
void addMovementBoneData (MovementBoneData movBoneData)
MovementBoneData getMovementBoneData (const std::string &boneName)
- Public 成员函数 继承自 Ref
void retain ()
保留所有权. 更多…
void release ()
立即释放所有权. 更多…
Ref * autorelease ()
自动释放所有权在不久的将来. 更多…
unsigned int getReferenceCount () const
返回Ref对象当前的引用计数. 更多…
virtual ~Ref ()
NA NA 更多…
## 静态 Public 成员函数
static MovementData * create (void)
## Public 属性
std::string name
int duration
float scale
the frames this movement will last 更多…
int durationTo
scale this movement 更多…
int durationTween
bool loop
cocos2d::tweenfunc::TweenType tweenEasing
whether the movement was looped 更多…
cocos2d::Map< std::string, MovementBoneData > movBoneDataDic
save movment bone data const std::string& MovementBoneData 更多…
## 额外继承的成员函数
- Protected 成员函数 继承自 Ref
Ref ()
构造函数 更多…
- Protected 属性 继承自 Ref
unsigned int _referenceCount
引用计数 更多…

详细描述

NA NA

构造及析构函数说明

MovementData ( void )

ctor

~MovementData ( void )

NA NA

成员函数说明

void addMovementBoneData ( MovementBoneData * movBoneData)

static MovementData* create ( void )

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


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/editor-support/cocostudio/CCDatas.h