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

46 lines
922 B
C
Raw Normal View History

2011-03-22 14:59:10 +08:00
#ifndef __ZWOPTEX_TEST_H__
#define __ZWOPTEX_TEST_H__
#include "../testBasic.h"
#include "../BaseTest.h"
2011-03-22 14:59:10 +08:00
class ZwoptexTest : public BaseTest
2011-03-22 14:59:10 +08:00
{
public:
virtual void onEnter() override;
2011-03-22 14:59:10 +08:00
void restartCallback(Ref* sender);
void nextCallback(Ref* sender);
void backCallback(Ref* sender);
2011-03-22 14:59: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();
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
virtual std::string title() const override;
virtual std::string subtitle() const override;
2011-03-22 14:59:10 +08:00
protected:
Sprite * sprite1;
Sprite * sprite2;
int counter;
2011-03-22 14:59:10 +08:00
};
class ZwoptexTestScene : public TestScene
{
public:
virtual void runThisTest();
CREATE_FUNC(ZwoptexTestScene);
2011-03-22 14:59:10 +08:00
};
#endif // __ZWOPTEX_TEST_H__