axmol/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.h

30 lines
1.2 KiB
C
Raw Normal View History

#ifndef _TIMELINE_TESTLAYER_H_
#define _TIMELINE_TESTLAYER_H_
#include "cocos2d.h"
#include "cocos-ext.h"
class TimelineCallbackTestLayer
: public cocos2d::CCLayer
, public cocos2d::extension::CCBSelectorResolver
, public cocos2d::extension::CCBMemberVariableAssigner
{
public:
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(TimelineCallbackTestLayer, create);
TimelineCallbackTestLayer();
virtual ~TimelineCallbackTestLayer();
virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::CCObject * pTarget, const char * pSelectorName);
virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, const char * pSelectorName);
virtual cocos2d::SEL_CallFuncN onResolveCCBCCCallFuncSelector(CCObject * pTarget, const char* pSelectorName);
virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, const char * pMemberVariableName, cocos2d::CCNode * pNode);
void onCallback1(CCNode* sender);
void onCallback2(CCNode* sender);
private:
cocos2d::CCLabelTTF* _helloLabel;
};
#endif /* _TIMELINE_TESTLAYER_H_ */