![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCActionInstant.h>
Public Member Functions | |
(id) | - initWithTarget:selector:data: |
Static Public Member Functions | |
(id) | + actionWithTarget:selector:data: |
Protected Attributes | |
void * | _data |
CC_CALLBACK_ND | _callbackMethod |
Properties | |
CC_CALLBACK_ND | callbackMethod |
Calls a 'callback' with the node as the first argument and the 2nd argument is data. ND means: Node and Data. Data is void *, so it could be anything.
+ (id) actionWithTarget: | (id) | t | |
selector: | (SEL) | s | |
data: | (void *) | d | |
creates the action with the callback and the data to pass as an argument
- (id) initWithTarget: | (id) | t | |
selector: | (SEL) | s | |
data: | (void *) | d | |
initializes the action with the callback and the data to pass as an argument
- (CC_CALLBACK_ND) callbackMethod [read, write, assign] |
Invocation object that has the target::selector and the parameters