CCSendMessages alternative

CCSendMessages alternative
0.0 0


Is there an alternative in cocos2d-x/c++ to the cocos2d-iphone extension CCSendMessages?

I use it a lot in a game I am porting from cocos2d-iPhone and would like to avoid writing callfuncND methods all over the place.

For instance if I want to call a function with multiple parameters I would in cocos2d-iPhone write:

CCSendMessages *message = [CCSendMessages actionWithTarget:self];
[[message addMessage] lightningFlashTo:pos Color:color];

I can then put the message in a CCSequence. What is the normal way to handle this in cocos2d-x? Thanks