2011-03-22 14:59:10 +08:00
|
|
|
#ifndef __ZWOPTEX_TEST_H__
|
|
|
|
#define __ZWOPTEX_TEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
|
|
|
class ZwoptexTest : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
|
|
void nextCallback(CCObject* pSender);
|
|
|
|
void backCallback(CCObject* pSender);
|
|
|
|
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ZwoptexGenericTest : public ZwoptexTest
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
~ZwoptexGenericTest();
|
|
|
|
virtual void onEnter();
|
2012-06-08 13:55:28 +08:00
|
|
|
void flipSprites(float dt);
|
|
|
|
void startIn05Secs(float dt);
|
2011-03-22 14:59:10 +08:00
|
|
|
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
|
|
|
|
protected:
|
2012-04-19 14:35:52 +08:00
|
|
|
CCSprite * sprite1;
|
2011-03-22 14:59:10 +08:00
|
|
|
CCSprite * sprite2;
|
2012-04-19 14:35:52 +08:00
|
|
|
int counter;
|
2011-03-22 14:59:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class ZwoptexTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
|
2012-06-14 15:13:16 +08:00
|
|
|
SCENE_CREATE_FUNC(ZwoptexTestScene);
|
2011-03-22 14:59:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __ZWOPTEX_TEST_H__
|