| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
Timer类 参考abstract Global
Light-weight timer. 更多…
#include
类 Timer 继承关系图:
| ## Public 成员函数 | |
| float | getInterval () const |
| get interval in seconds 更多… | |
| void | setInterval (float interval) |
| set interval in seconds 更多… | |
| void | setupTimerWithInterval (float seconds, unsigned int repeat, float delay) |
| virtual void | trigger ()=0 |
| virtual void | cancel ()=0 |
| void | update (float dt) |
| triggers the timer 更多… | |
Public 成员函数 继承自 Ref | |
| void | retain () |
| 保留所有权. 更多… | |
| void | release () |
| 立即释放所有权. 更多… | |
| Ref * | autorelease () |
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const |
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () |
| NA NA 更多… | |
| ## Protected 成员函数 | |
| Timer () | |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
| ## Protected 属性 | |
| Scheduler * | _scheduler |
| float | _elapsed |
| bool | _runForever |
| bool | _useDelay |
| unsigned int | _timesExecuted |
| unsigned int | _repeat |
| float | _delay |
| float | _interval |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
详细描述
Light-weight timer.
构造及析构函数说明
| protected |
成员函数说明
| pure virtual |
在 TimerTargetCallback , 以及 TimerTargetSelector 内被实现.
| inline |
get interval in seconds
| inline |
set interval in seconds
| void setupTimerWithInterval | ( | float | seconds, |
| unsigned int | repeat, | ||
| float | delay | ||
| ) |
| pure virtual |
在 TimerTargetCallback , 以及 TimerTargetSelector 内被实现.
| void update | ( | float | dt | ) |
triggers the timer
类成员变量说明
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
| protected |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/base/CCScheduler.h
Public 成员函数 继承自 
