1 CCCallFunc *CCCallFunc::actionWithTarget(SELEctorProtocol* pSELEctorTarget,SEL_CallFunc SELEctor); 2 CCCallFuncN *CCCallFuncN::actionWithTarget(SELEctorProtocol* pSELEctorTarget,SEL_CallFuncN SELEctor); 3 CCCallFuncND *CCCallFuncND::actionWithTarget(SELEctorProtocol* pSELEctorTarget,SEL_CallFuncND SELEctor,void* d); 4 CCCallFuncO *CCCallFuncO::actionWithTarget(SELEctorProtocol* pSELEctorTarget,SEL_CallFuncO SELEctor,CCObject* pObject)
1 typedef
void (SELEctorProtocol::*
SEL_CallFunC)(); 2 typedef
void (SELEctorProtocol::*SEL_CallFuncN)(CCNode*
); 3 typedef
void (SELEctorProtocol::*SEL_CallFuncND)(CCNode*,255
); font-size
:12px!important; line-height
:1.5!important">void*
); 4 typedef
void (SELEctorProtocol::*SEL_CallFuncO)(CCOb
ject*
);
1 #define callfunc_SELEctor(_SELECTOR) (SEL_CallFunC)(&_SELECTOR)
2 #define callfuncN_SELEctor(_SELECTOR) (SEL_CallFuncN)(&_SELECTOR)
3 #define callfuncND_SELEctor(_SELECTOR) (SEL_CallFuncND)(&_SELECTOR)
4 #define callfuncO_SELEctor(_SELECTOR) (SEL_CallFuncO)(&_SELECTOR)
1 CCCurveMove* curveMove = CCCurveMove::create(fromtime,ccp(size.width - iRandPos_f,-size.height*@H_757_
197@0.5),sign*size.width*@H_757_
197@0.4,@H_757_
197@0.006
);
2 CCCallFuncN *actDone = CCCallFuncN::actionWithTarget(
this,callfuncN_SELEctor(LeavesLayer::resetLeafPos));
3 CCFiniteTimeAction *putdown =
CCSequence::actions(curveMove,actDone,null);
4 sprite->runAction(putdown
);