|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
#import <CCScheduler.h>
Public Member Functions | |
| (id) | - initWithTarget:selector: |
| (id) | - initWithTarget:selector:interval: |
| (void) | - update: |
Static Public Member Functions | |
| (id) | + timerWithTarget:selector: |
| (id) | + timerWithTarget:selector:interval: |
Properties | |
| ccTime | interval |
Light weight timer
Definition at line 37 of file CCScheduler.h.
| - (id) initWithTarget: | (id) | t | |
| selector: | (SEL) | s | |
Initializes a timer with a target and a selector.
| - (id) initWithTarget: | (id) | t | |
| selector: | (SEL) | s | |
| interval: | (ccTime) | seconds | |
Initializes a timer with a target, a selector and an interval in seconds.
| + (id) timerWithTarget: | (id) | t | |
| selector: | (SEL) | s | |
Allocates a timer with a target and a selector.
| + (id) timerWithTarget: | (id) | t | |
| selector: | (SEL) | s | |
| interval: | (ccTime) | seconds | |
Allocates a timer with a target, a selector and an interval in seconds.
| - (void) update: | (ccTime) | dt |
triggers the timer
- (ccTime) interval [read, write, assign] |
interval in seconds
Definition at line 45 of file CCScheduler.h.