#ifndef _MENUTESTLAYER_H_ #define _MENUTESTLAYER_H_ #include "cocos2d.h" #include "cocos-ext.h" class MenuTestLayer : public cocos2d::CCLayer , public cocos2d::extension::CCBSelectorResolver , public cocos2d::extension::CCBMemberVariableAssigner { public: CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(MenuTestLayer, create); MenuTestLayer(); virtual ~MenuTestLayer(); virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::CCObject * pTarget, const char * pSelectorName); virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, const char * pSelectorName); virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, const char * pMemberVariableName, cocos2d::CCNode * pNode); void onMenuItemAClicked(cocos2d::CCObject * pSender); void onMenuItemBClicked(cocos2d::CCObject * pSender); void onMenuItemCClicked(cocos2d::CCObject * pSender); private: cocos2d::CCLabelBMFont * mMenuItemStatusLabelBMFont; }; #endif