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();
|
|
|
|
};
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class TestLayer1 : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestLayer1(void);
|
|
|
|
~TestLayer1(void);
|
|
|
|
|
2013-07-26 06:53:24 +08:00
|
|
|
void restartCallback(Object* sender);
|
|
|
|
void nextCallback(Object* sender);
|
|
|
|
void backCallback(Object* sender);
|
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();
|
|
|
|
};
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class TestLayer2 : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestLayer2(void);
|
|
|
|
~TestLayer2(void);
|
|
|
|
|
2013-07-26 06:53:24 +08:00
|
|
|
void restartCallback(Object* sender);
|
|
|
|
void nextCallback(Object* sender);
|
|
|
|
void backCallback(Object* sender);
|
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
|