|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
Inheritance diagram for CCTimerBlock:
Collaboration diagram for CCTimerBlock:Public Member Functions | |
| (id) | - initWithTarget:interval:repeat:delay:key:block: |
Static Public Member Functions | |
| (id) | + timerWithTarget:interval:key:block: |
Protected Attributes | |
| void(^ | _block )(ccTime delta) |
| NSString * | _key |
| id | _target |
Properties | |
| NSString * | key |
| id | target |
| - (id) initWithTarget: | (id) | owner | |
| interval: | (ccTime) | seconds | |
| repeat: | (uint) | r | |
| delay: | (ccTime) | d | |
| key: | (NSString *) | key | |
| block: | (ccTime delta) | block | |
Initializes a timer with a target(owner), interval in seconds, repeat in number of times to repeat, delay in seconds and a block
| + (id) timerWithTarget: | (id) | owner | |
| interval: | (ccTime) | seconds | |
| key: | (NSString *) | key | |
| block: | (ccTime delta) | block | |
Allocates a timer with a target, interval in seconds, a key and a block
- (NSString*) key [read, assign] |
unique identifier of the block
- (id) target [read, assign] |
owner of the timer