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

51 lines
993 B
C
Raw Normal View History

#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);
2010-08-20 14:35:37 +08:00
2012-06-12 01:43:07 +08:00
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);
2010-08-20 14:35:37 +08:00
2012-06-12 01:43:07 +08:00
void step(float dt);
virtual void onEnter();
virtual void onEnterTransitionDidFinish();
virtual void onExitTransitionDidStart();
virtual void onExit();
};
#endif