#include <CCScheduler.h>
|
| 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. More...
|
|
const ccSchedulerFunc & | getCallback () const |
| NA NA More...
|
|
const std::string & | getKey () const |
|
virtual void | trigger () override |
|
virtual void | cancel () override |
|
float | getInterval () const |
| get interval in seconds More...
|
|
void | setInterval (float interval) |
| set interval in seconds More...
|
|
void | setupTimerWithInterval (float seconds, unsigned int repeat, float delay) |
|
void | update (float dt) |
| triggers the timer More...
|
|
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Releases the ownership immediately. More...
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
| NA NA More...
|
|
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.
The documentation for this class was generated from the following file:
- /Users/huihoo/Software/huihoo-code/cocos2d-x/cocos2d-x-3.3/cocos/base/CCScheduler.h