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

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

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

EaseExponentialInOut类 参考 Actions

Ease Exponential InOut. 更多…

#include

类 EaseExponentialInOut 继承关系图:

Public 成员函数 - 图3 ActionEase ActionInterval FiniteTimeAction Action Ref Clonable

## Public 成员函数
virtual void update (float time) override
每一帧都会调用这个方法,参数time是一个在0和1之间的值 更多…
virtual EaseExponentialInOut clone () const override
返回action的克隆对象 更多…
virtual EaseExponentialInOut reverse () const override
返回执行与本Action对象相反操作的新Action对象 更多…
- Public 成员函数 继承自 ActionEase
virtual ActionInterval getInnerAction ()
virtual void startWithTarget (Node target) override
方法在action开始前调用, 操作会设置执行Action的目标对象为target. 更多…
virtual void stop () override
方法在action完成之后调用,它将执行Action的target对象设置为nil. 更多…
bool initWithAction (ActionInterval action)
初始化这个延时动作 更多…
- Public 成员函数 继承自 ActionInterval
float getElapsed (void)
从动作开始执行过去了多少秒 。 更多…
void setAmplitudeRate (float amp)
float getAmplitudeRate (void)
virtual bool isDone (void) const override
当action完成时返回true 更多…
virtual void step (float dt) override
这个方法每一帧都会被调用, 参数dt为两帧之间的时间间隔(单位秒). 除非你知道正在做什么否则不要重载这个方法. 更多…
- Public 成员函数 继承自 FiniteTimeAction
float getDuration () const
返回action的持续时间(单位:秒) 更多…
void setDuration (float duration)
设置action的持续时间(单位:秒) 更多…
- Public 成员函数 继承自 Action
virtual std::string description () const
NA NA 更多…
Node getTarget () const
void setTarget (Node target)
这个方法更改action的target属性. 更多…
Node getOriginalTarget () const
void setOriginalTarget (Node originalTarget)
设置action的原始目标对象target, 当target为nil时setOriginalTarget设置的对象会运行这个action 除非你要像ActionManager类那样做一些很复杂的操作,否则不要调用这个方法 本方法只是对originalTarget的弱引用(assigned),没有进行retain操作。 更多…
int getTag () const
void setTag (int tag)
- Public 成员函数 继承自 Ref
void retain ()
保留所有权. 更多…
void release ()
立即释放所有权. 更多…
Ref autorelease ()
自动释放所有权在不久的将来. 更多…
unsigned int getReferenceCount () const
返回Ref对象当前的引用计数. 更多…
virtual ~Ref ()
NA NA 更多…
- Public 成员函数 继承自 Clonable
virtual ~Clonable ()
NA NA 更多…
CC_DEPRECATED_ATTRIBUTE Ref * copy () const
返回Ref对象的一份拷贝. 更多…
## 静态 Public 成员函数
static EaseExponentialInOut create (ActionInterval action)
创建这个延时动作 更多…
## Public 属性
CC_CONSTRUCTOR_ACCESS pad0: EaseExponentialInOut() {} virtual ~EaseExponentialInOut() {}private: CCDISALLOWCOPY_AND_ASSIGN(EaseExponentialInOut)
- Public 属性 继承自 ActionEase
CC_CONSTRUCTOR_ACCESS [__pad0](../../db/dcf/classcocos2d_1_1_action_ease.html#a111fce2fb3d1886083559f4b9ecba3b3): ActionEase() {} virtual ~ActionEase()
## 额外继承的成员函数
- 静态 Public 属性 继承自 Action
static const int INVALID_TAG = -1
所有Action对象的缺省tag值 更多…
- Protected 成员函数 继承自 ActionInterval
bool initWithDuration (float d)
初始化动作 更多…
- Protected 成员函数 继承自 FiniteTimeAction
FiniteTimeAction ()
virtual ~FiniteTimeAction ()
- Protected 成员函数 继承自 Action
Action ()
virtual ~Action ()
- Protected 成员函数 继承自 Ref
Ref ()
构造函数 更多…
- Protected 属性 继承自 ActionEase
ActionInterval _inner
这是延时动作实体 更多…
- Protected 属性 继承自 ActionInterval
float _elapsed
bool _firstTick
- Protected 属性 继承自 FiniteTimeAction
float _duration
以秒单位的持续时间 更多…
- Protected 属性 继承自 Action
Node _originalTarget
Node * _target
action动作的执行目标target. 更多…
int _tag
action的tag属性. 更多…
- Protected 属性 继承自 Ref
unsigned int _referenceCount
引用计数 更多…

详细描述

Ease Exponential InOut.

成员函数说明

virtual EaseExponentialInOut* clone ( ) const

overridevirtual

返回action的克隆对象

实现了 ActionEase.

static EaseExponentialInOut create ( ActionInterval action)

static

创建这个延时动作

virtual EaseExponentialInOut* reverse ( ) const

overridevirtual

返回执行与本Action对象相反操作的新Action对象

实现了 ActionEase.

virtual void update ( float time)

overridevirtual

每一帧都会调用这个方法,参数time是一个在0和1之间的值

time的含义举例:

  • 0 表示action刚刚开始
  • 0.5 表示action执行到正中间
  • 1 表示action已经执行完毕

重载 ActionEase .

类成员变量说明

CC_CONSTRUCTOR_ACCESS pad0

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