axmol/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h

79 lines
1.6 KiB
C
Raw Normal View History

#ifndef _EFFECT_ADVANCED_TEST_H_
#define _EFFECT_ADVANCED_TEST_H_
#include "cocos2d.h"
#include "../BaseTest.h"
DEFINE_TEST_SUITE(EffectAdvanceTests);
class EffectAdvanceBaseTest: public TestCase
{
protected:
TextureAtlas* _atlas;
std::string _title;
2013-12-11 13:39:34 +08:00
Node* _bgNode;
Node* _target1;
Node* _target2;
public:
virtual void onEnter() override;
~EffectAdvanceBaseTest(void);
virtual std::string title() const override;
virtual std::string subtitle() const override;
};
class Effect1 : public EffectAdvanceBaseTest
{
public:
CREATE_FUNC(Effect1);
virtual void onEnter() override;
virtual std::string title() const override;
};
class Effect2 : public EffectAdvanceBaseTest
{
public:
CREATE_FUNC(Effect2);
virtual void onEnter() override;
virtual std::string title() const override;
};
class Effect3 : public EffectAdvanceBaseTest
{
public:
CREATE_FUNC(Effect3);
virtual void onEnter() override;
virtual std::string title() const override;
};
class Effect4 : public EffectAdvanceBaseTest
{
public:
CREATE_FUNC(Effect4);
virtual void onEnter() override;
virtual std::string title() const override;
};
class Effect5 : public EffectAdvanceBaseTest
{
public:
CREATE_FUNC(Effect5);
virtual void onEnter() override;
virtual void onExit() override;
virtual std::string title() const override;
};
class Issue631 : public EffectAdvanceBaseTest
{
public:
CREATE_FUNC(Issue631);
virtual void onEnter() override;
virtual std::string title() const override;
virtual std::string subtitle() const override;
};
#endif