axmol/samples/Cpp/TestCpp/Classes/ZwoptexTest/ZwoptexTest.h

46 lines
853 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();
void restartCallback(Object* sender);
void nextCallback(Object* sender);
void backCallback(Object* sender);
2011-03-22 14:59:10 +08:00
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:
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__