mirror of https://github.com/axmolengine/axmol.git
35 lines
1.4 KiB
C++
35 lines
1.4 KiB
C++
#ifndef _ANIMATIONSTESTLAYER_H_
|
|
#define _ANIMATIONSTESTLAYER_H_
|
|
|
|
#include "cocos2d.h"
|
|
#include "extensions/cocos-ext.h"
|
|
#include "cocosbuilder/CocosBuilder.h"
|
|
|
|
class AnimationsTestLayer
|
|
: public cocos2d::Layer
|
|
, public cocosbuilder::CCBSelectorResolver
|
|
, public cocosbuilder::CCBMemberVariableAssigner
|
|
{
|
|
public:
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(AnimationsTestLayer, create);
|
|
|
|
AnimationsTestLayer();
|
|
virtual ~AnimationsTestLayer();
|
|
|
|
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);
|
|
|
|
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);
|
|
|
|
void setAnimationManager(cocosbuilder::CCBAnimationManager *pAnimationManager);
|
|
|
|
private:
|
|
cocosbuilder::CCBAnimationManager *mAnimationManager;
|
|
};
|
|
|
|
#endif
|