2014-05-13 13:50:31 +08:00
|
|
|
//
|
|
|
|
// Bug-Child.h
|
|
|
|
// cocos2d_tests
|
|
|
|
//
|
|
|
|
// Created by NiTe Luo on 5/12/14.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __Bug_Child__
|
|
|
|
#define __Bug_Child__
|
|
|
|
|
|
|
|
#include "BugsTest.h"
|
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
class BugChild : public BugsTestBase
|
2014-05-13 13:50:31 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-04-03 14:31:03 +08:00
|
|
|
CREATE_FUNC(BugChild);
|
|
|
|
|
2015-03-15 02:33:15 +08:00
|
|
|
virtual bool init() override;
|
2014-05-13 13:50:31 +08:00
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
void switchChild(cocos2d::Ref* sender);
|
2014-05-13 13:50:31 +08:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
cocos2d::Sprite* parent1;
|
|
|
|
cocos2d::Sprite* parent2;
|
2014-05-13 13:50:31 +08:00
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
cocos2d::Sprite* child;
|
2014-05-13 13:50:31 +08:00
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
cocos2d::Menu* menu;
|
2014-05-13 13:50:31 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__Bug_Child__) */
|