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

58 lines
1.2 KiB
C
Raw Normal View History

2010-09-01 11:34:30 +08:00
#ifndef _SCENE_TEST_H_
#define _SCENE_TEST_H_
////----#include "cocos2d.h"
#include "../testBasic.h"
class SceneTestLayer1 : public Layer
2010-09-01 11:34:30 +08:00
{
public:
SceneTestLayer1();
~SceneTestLayer1();
2010-09-01 11:34:30 +08:00
2011-02-23 16:47:25 +08:00
virtual void onEnter();
virtual void onEnterTransitionDidFinish();
2012-06-08 13:55:28 +08:00
void testDealloc(float dt);
void onPushScene(Object* pSender);
void onPushSceneTran(Object* pSender);
void onQuit(Object* pSender);
2010-09-01 11:34:30 +08:00
//CREATE_NODE(SceneTestLayer1);
2010-09-01 11:34:30 +08:00
} ;
class SceneTestLayer2 : public Layer
2010-09-01 11:34:30 +08:00
{
float _timeCounter;
2010-09-01 11:34:30 +08:00
public:
SceneTestLayer2();
2010-09-01 11:34:30 +08:00
2012-06-08 13:55:28 +08:00
void testDealloc(float dt);
void onGoBack(Object* pSender);
void onReplaceScene(Object* pSender);
void onReplaceSceneTran(Object* pSender);
2010-09-01 11:34:30 +08:00
//CREATE_NODE(SceneTestLayer2);
2010-09-01 11:34:30 +08:00
} ;
class SceneTestLayer3 : public LayerColor
2010-09-01 11:34:30 +08:00
{
public:
SceneTestLayer3();
bool init();
2012-06-08 13:55:28 +08:00
virtual void testDealloc(float dt);
void item0Clicked(Object* pSender);
void item1Clicked(Object* pSender);
void item2Clicked(Object* pSender);
void item3Clicked(Object* pSender);
CREATE_FUNC(SceneTestLayer3)
2010-09-01 11:34:30 +08:00
} ;
class SceneTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif