- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件
-
)
- 类列表
- 类索引
- 类继承关系
- 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | Protected 属性 | 所有成员列表
TimerTargetCallback类 参考
Global
#include
类 TimerTargetCallback 继承关系图:
|
## Public 成员函数
|
| | TimerTargetCallback () |
| |
| bool | initWithCallback (Scheduler scheduler, const ccSchedulerFunc &callback, void target, const std::string &key, float seconds, unsigned int repeat, float delay) |
| | Initializes a timer with a target, a lambda and an interval in seconds, repeat in number of times to repeat, delay in seconds. 更多…
|
| |
| const ccSchedulerFunc & | getCallback () const |
| | NA NA 更多…
|
| |
| const std::string & | getKey () const |
| |
| virtual void | trigger () override |
| |
| virtual void | cancel () override |
| |
Public 成员函数 继承自 Timer |
| float | getInterval () const |
| | get interval in seconds 更多…
|
| |
| void | setInterval (float interval) |
| | set interval in seconds 更多…
|
| |
| void | setupTimerWithInterval (float seconds, unsigned int repeat, float delay) |
| |
| void | update (float dt) |
| | triggers the timer 更多…
|
| |
Public 成员函数 继承自 Ref |
| void | retain () |
| | 保留所有权. 更多…
|
| |
| void | release () |
| | 立即释放所有权. 更多…
|
| |
| Ref * | autorelease () |
| | 自动释放所有权在不久的将来. 更多…
|
| |
| unsigned int | getReferenceCount () const |
| | 返回Ref对象当前的引用计数. 更多…
|
| |
| virtual | ~Ref () |
| | NA NA 更多…
|
| |
构造及析构函数说明
成员函数说明
实现了 Timer.
NA NA
| const std::string& getKey | ( | | ) | const |
| inline |
| bool initWithCallback | ( | Scheduler | scheduler, |
| | const ccSchedulerFunc & | callback, |
| | void | target, |
| | const std::string & | key, |
| | float | seconds, |
| | unsigned int | repeat, |
| | float | delay |
| ) | | |
Initializes a timer with a target, a lambda and an interval in seconds, repeat in number of times to repeat, delay in seconds.
实现了 Timer.
类成员变量说明
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/base/CCScheduler.h