Calls a ‘callback’
Class CCCallFunc
#include <Geode/cocos/actions/CCActionInstant.h>
classCCCallFunc:publiccocos2d::CCActionInstant{ ... }
Examples0
Public static methods2
staticcocos2d::CCCallFunc*create(cocos2d::CCObject*pSelectorTarget,cocos2d::SEL_CallFuncselector)
creates the action with the callback typedef void (CCObject::*SEL_CallFunc)();
staticcocos2d::CCCallFunc*create(intnHandler)
creates the action with the handler script function
Public member functions7
virtualboolinitWithTarget(cocos2d::CCObject*pSelectorTarget)
initializes the action with the callback typedef void (CCObject::*SEL_CallFunc)();
virtualvoidexecute()
executes the callback
virtualcocos2d::CCObject*copyWithZone(cocos2d::CCZone*pZone)
No description provided
cocos2d::CCObject*getTargetCallback()
No description provided
voidsetTargetCallback()
No description provided
intgetScriptHandler()
No description provided
Fields2
cocos2d::CCObject*m_pSelectorTarget;
Target that will be called
intm_nScriptHandler;
No description provided