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
|
|
|
|
|
|
|
void switchChild(Ref* sender);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
Sprite* parent1;
|
|
|
|
Sprite* parent2;
|
|
|
|
|
|
|
|
Sprite* child;
|
|
|
|
|
|
|
|
Menu* menu;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__Bug_Child__) */
|