| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | Protected 属性 | 所有成员列表
TimerTargetSelector类 参考 Global
#include
类 TimerTargetSelector 继承关系图:
| ## Public 成员函数 | |
| TimerTargetSelector () | |
| bool | initWithSelector (Scheduler scheduler, SEL_SCHEDULE selector, Ref target, float seconds, unsigned int repeat, float delay) |
| Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds. 更多… | |
| SEL_SCHEDULE | getSelector () 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 更多… | |
| ## Protected 属性 | |
| Ref | _target |
| SEL_SCHEDULE | _selector |
Protected 属性 继承自 Timer | |
| Scheduler | _scheduler |
| float | _elapsed |
| bool | _runForever |
| bool | _useDelay |
| unsigned int | _timesExecuted |
| unsigned int | _repeat |
| float | _delay |
| float | _interval |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
| ## 额外继承的成员函数 | |
Protected 成员函数 继承自 Timer | |
| Timer () | |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
构造及析构函数说明
| TimerTargetSelector | ( | ) |
成员函数说明
| overridevirtual |
实现了 Timer.
| inline |
| bool initWithSelector | ( | Scheduler | scheduler, |
| SEL_SCHEDULE | selector, | ||
| Ref | target, | ||
| float | seconds, | ||
| unsigned int | repeat, | ||
| float | delay | ||
| ) |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
| overridevirtual |
实现了 Timer.
类成员变量说明
| protected |
| protected |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/base/CCScheduler.h
- cocos2d
- TimerTargetSelector
- 生成于 2014年 五月 29日 星期四 09:41:50 , 为 cocos2d-x使用
1.8.6
Public 成员函数 继承自 