2010-09-16 11:35:58 +08:00
|
|
|
#ifndef _EFFECT_ADVANCED_TEST_H_
|
|
|
|
#define _EFFECT_ADVANCED_TEST_H_
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2010-09-16 11:35:58 +08:00
|
|
|
class EffectAdvanceTextLayer: public CCLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
protected:
|
2010-09-16 11:35:58 +08:00
|
|
|
CCTextureAtlas* m_atlas;
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
std::string m_strTitle;
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
~EffectAdvanceTextLayer(void);
|
2010-09-16 11:35:58 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
|
|
void nextCallback(CCObject* pSender);
|
|
|
|
void backCallback(CCObject* pSender);
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect1 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect2 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect3 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect4 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect5 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Issue631 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class EffectAdvanceScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|