axmol/tests/cpp-tests/Classes/BugsTest/Bug-Child.h

47 lines
765 B
C
Raw Normal View History

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"
class BugChild : public BugsTestBase
2014-05-13 13:50:31 +08:00
{
public:
CREATE_FUNC(BugChild);
virtual bool init() override;
2014-05-13 13:50:31 +08:00
void switchChild(cocos2d::Ref* sender);
2014-05-13 13:50:31 +08:00
protected:
cocos2d::Sprite* parent1;
cocos2d::Sprite* parent2;
2014-05-13 13:50:31 +08:00
cocos2d::Sprite* child;
2014-05-13 13:50:31 +08:00
cocos2d::Menu* menu;
2014-05-13 13:50:31 +08:00
};
class BugCameraMask : public BugsTestBase
{
public:
CREATE_FUNC(BugCameraMask);
virtual bool init() override;
void switchSpriteFlag(cocos2d::Ref* sender);
void updateSpriteMaskLabel();
Node* _sprite;
cocos2d::Label* _spriteMaskLabel;
};
2014-05-13 13:50:31 +08:00
#endif /* defined(__Bug_Child__) */