2012-09-17 18:49:05 +08:00
|
|
|
#ifndef _ANIMATIONSTESTLAYER_H_
|
|
|
|
#define _ANIMATIONSTESTLAYER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2013-10-16 16:48:39 +08:00
|
|
|
#include "extensions/cocos-ext.h"
|
2013-10-16 11:19:01 +08:00
|
|
|
#include "cocosbuilder/CocosBuilder.h"
|
2012-09-17 18:49:05 +08:00
|
|
|
|
|
|
|
class AnimationsTestLayer
|
2013-06-20 14:17:10 +08:00
|
|
|
: public cocos2d::Layer
|
2013-10-15 18:00:03 +08:00
|
|
|
, public cocosbuilder::CCBSelectorResolver
|
|
|
|
, public cocosbuilder::CCBMemberVariableAssigner
|
2012-09-17 18:49:05 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(AnimationsTestLayer, create);
|
|
|
|
|
|
|
|
AnimationsTestLayer();
|
|
|
|
virtual ~AnimationsTestLayer();
|
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(Ref * pTarget, const char * pSelectorName);
|
|
|
|
virtual cocos2d::extension::Control::Handler onResolveCCBCCControlSelector(cocos2d::Ref * pTarget, const char * pSelectorName);
|
|
|
|
virtual bool onAssignCCBMemberVariable(cocos2d::Ref * pTarget, const char * pMemberVariableName, cocos2d::Node * node);
|
2012-09-17 18:49:05 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
void onControlButtonIdleClicked(cocos2d::Ref * sender, cocos2d::extension::Control::EventType pControlEvent);
|
|
|
|
void onControlButtonWaveClicked(cocos2d::Ref * sender, cocos2d::extension::Control::EventType pControlEvent);
|
|
|
|
void onControlButtonJumpClicked(cocos2d::Ref * sender, cocos2d::extension::Control::EventType pControlEvent);
|
|
|
|
void onControlButtonFunkyClicked(cocos2d::Ref * sender, cocos2d::extension::Control::EventType pControlEvent);
|
2012-09-17 18:49:05 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
void setAnimationManager(cocosbuilder::CCBAnimationManager *pAnimationManager);
|
2012-09-17 18:49:05 +08:00
|
|
|
|
|
|
|
private:
|
2013-10-15 18:00:03 +08:00
|
|
|
cocosbuilder::CCBAnimationManager *mAnimationManager;
|
2012-09-17 18:49:05 +08:00
|
|
|
};
|
|
|
|
|
2014-06-19 19:45:49 +08:00
|
|
|
#endif
|