2012-04-19 14:35:52 +08:00
|
|
|
#ifndef _TRANSITIONS_TEST_H_
|
|
|
|
#define _TRANSITIONS_TEST_H_
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2012-06-14 05:19:13 +08:00
|
|
|
USING_NS_CC;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
class TransitionsTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestLayer1 : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestLayer1(void);
|
|
|
|
~TestLayer1(void);
|
|
|
|
|
2011-03-07 17:11:57 +08:00
|
|
|
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);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onEnterTransitionDidFinish();
|
|
|
|
virtual void onExitTransitionDidStart();
|
|
|
|
virtual void onExit();
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestLayer2 : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestLayer2(void);
|
|
|
|
~TestLayer2(void);
|
|
|
|
|
2011-03-07 17:11:57 +08:00
|
|
|
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);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onEnterTransitionDidFinish();
|
|
|
|
virtual void onExitTransitionDidStart();
|
|
|
|
virtual void onExit();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|