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

45 lines
846 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"
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:
CCSprite * sprite1;
2011-03-22 14:59:10 +08:00
CCSprite * sprite2;
int counter;
2011-03-22 14:59:10 +08:00
};
class ZwoptexTestScene : public TestScene
{
public:
virtual void runThisTest();
SCENE_CREATE_FUNC(ZwoptexTestScene);
2011-03-22 14:59:10 +08:00
};
#endif // __ZWOPTEX_TEST_H__