2012-09-17 18:49:05 +08:00
|
|
|
#ifndef _ANIMATIONSTESTLAYER_H_
|
|
|
|
#define _ANIMATIONSTESTLAYER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "cocos-ext.h"
|
|
|
|
|
|
|
|
class AnimationsTestLayer
|
2013-06-20 14:17:10 +08:00
|
|
|
: public cocos2d::Layer
|
2012-09-17 18:49:05 +08:00
|
|
|
, public cocos2d::extension::CCBSelectorResolver
|
|
|
|
, public cocos2d::extension::CCBMemberVariableAssigner
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(AnimationsTestLayer, create);
|
|
|
|
|
|
|
|
AnimationsTestLayer();
|
|
|
|
virtual ~AnimationsTestLayer();
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
virtual cocos2d::SEL_MenuHandler onResolveCCBMenuItemSelector(Object * pTarget, const char * pSelectorName);
|
|
|
|
virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBControlSelector(cocos2d::Object * pTarget, const char * pSelectorName);
|
2013-07-23 08:25:44 +08:00
|
|
|
virtual bool onAssignCCBMemberVariable(cocos2d::Object * pTarget, const char * pMemberVariableName, cocos2d::Node * node);
|
2012-09-17 18:49:05 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
void onControlButtonIdleClicked(cocos2d::Object * pSender, cocos2d::extension::ControlEvent pControlEvent);
|
|
|
|
void onControlButtonWaveClicked(cocos2d::Object * pSender, cocos2d::extension::ControlEvent pControlEvent);
|
|
|
|
void onControlButtonJumpClicked(cocos2d::Object * pSender, cocos2d::extension::ControlEvent pControlEvent);
|
|
|
|
void onControlButtonFunkyClicked(cocos2d::Object * pSender, cocos2d::extension::ControlEvent pControlEvent);
|
2012-09-17 18:49:05 +08:00
|
|
|
|
|
|
|
void setAnimationManager(cocos2d::extension::CCBAnimationManager *pAnimationManager);
|
|
|
|
|
|
|
|
private:
|
|
|
|
cocos2d::extension::CCBAnimationManager *mAnimationManager;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|