2011-03-22 14:59:10 +08:00
|
|
|
#ifndef __ZWOPTEX_TEST_H__
|
|
|
|
#define __ZWOPTEX_TEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
2013-06-12 07:30:05 +08:00
|
|
|
#include "../BaseTest.h"
|
2011-03-22 14:59:10 +08:00
|
|
|
|
2013-06-12 07:30:05 +08:00
|
|
|
class ZwoptexTest : public BaseTest
|
2011-03-22 14:59:10 +08:00
|
|
|
{
|
|
|
|
public:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
2011-03-22 14:59:10 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
void restartCallback(Ref* sender);
|
|
|
|
void nextCallback(Ref* sender);
|
|
|
|
void backCallback(Ref* sender);
|
2011-03-22 14:59:10 +08:00
|
|
|
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
|
|
|
virtual std::string subtitle() const override;
|
2011-03-22 14:59:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class ZwoptexGenericTest : public ZwoptexTest
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
~ZwoptexGenericTest();
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
2012-06-08 13:55:28 +08:00
|
|
|
void flipSprites(float dt);
|
|
|
|
void startIn05Secs(float dt);
|
2011-03-22 14:59:10 +08:00
|
|
|
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
|
|
|
virtual std::string subtitle() const override;
|
2011-03-22 14:59:10 +08:00
|
|
|
|
|
|
|
protected:
|
2013-06-20 14:17:10 +08:00
|
|
|
Sprite * sprite1;
|
|
|
|
Sprite * 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-08-27 16:11:07 +08:00
|
|
|
CREATE_FUNC(ZwoptexTestScene);
|
2011-03-22 14:59:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __ZWOPTEX_TEST_H__
|