![]() |
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCScheduler.h>
Public Member Functions | |
id | initWithTarget:selector: (id t,[selector] SEL s) |
id | initWithTarget:selector:interval: (id t,[selector] SEL s,[interval] ccTime seconds) |
void | update: (ccTime dt) |
Static Public Member Functions | |
id | timerWithTarget:selector: (id t,[selector] SEL s) |
id | timerWithTarget:selector:interval: (id t,[selector] SEL s,[interval] ccTime seconds) |
Public Attributes | |
SEL | selector |
Protected Attributes | |
id | target |
TICK_IMP | impMethod |
ccTime | elapsed |
Properties | |
ccTime | interval |
Light weight timer
id CCTimer::initWithTarget:selector: | ( | id | t, |
[selector] SEL | s | ||
) | [virtual] |
Initializes a timer with a target and a selector.
id CCTimer::initWithTarget:selector:interval: | ( | id | t, |
[selector] SEL | s, | ||
[interval] ccTime | seconds | ||
) | [virtual] |
Initializes a timer with a target, a selector and an interval in seconds.
id CCTimer::timerWithTarget:selector: | ( | id | t, |
[selector] SEL | s | ||
) | [static, virtual] |
Allocates a timer with a target and a selector.
id CCTimer::timerWithTarget:selector:interval: | ( | id | t, |
[selector] SEL | s, | ||
[interval] ccTime | seconds | ||
) | [static, virtual] |
Allocates a timer with a target, a selector and an interval in seconds.
void CCTimer::update: | ( | ccTime | dt | ) | [virtual] |
triggers the timer
ccTime CCTimer::interval [read, write, assign] |
interval in seconds