mirror of https://github.com/axmolengine/axmol.git
51 lines
993 B
C++
51 lines
993 B
C++
#ifndef _TRANSITIONS_TEST_H_
|
|
#define _TRANSITIONS_TEST_H_
|
|
|
|
#include "../testBasic.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
class TransitionsTestScene : public TestScene
|
|
{
|
|
public:
|
|
virtual void runThisTest();
|
|
};
|
|
|
|
class TestLayer1 : public CCLayer
|
|
{
|
|
public:
|
|
TestLayer1(void);
|
|
~TestLayer1(void);
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
void nextCallback(CCObject* pSender);
|
|
void backCallback(CCObject* pSender);
|
|
|
|
void step(float dt);
|
|
|
|
virtual void onEnter();
|
|
virtual void onEnterTransitionDidFinish();
|
|
virtual void onExitTransitionDidStart();
|
|
virtual void onExit();
|
|
};
|
|
|
|
class TestLayer2 : public CCLayer
|
|
{
|
|
public:
|
|
TestLayer2(void);
|
|
~TestLayer2(void);
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
void nextCallback(CCObject* pSender);
|
|
void backCallback(CCObject* pSender);
|
|
|
|
void step(float dt);
|
|
|
|
virtual void onEnter();
|
|
virtual void onEnterTransitionDidFinish();
|
|
virtual void onExitTransitionDidStart();
|
|
virtual void onExit();
|
|
};
|
|
|
|
#endif
|