axmol/test_uphone/tests/CocosNodeTest/CocosNodeTest.h

132 lines
2.1 KiB
C
Raw Normal View History

2010-08-26 15:09:02 +08:00
#ifndef _COCOSNODE_TEST_H_
#define _COCOSNODE_TEST_H_
2010-09-01 14:57:55 +08:00
////----#include "cocos2d.h"
2010-08-26 15:09:02 +08:00
#include "../testBasic.h"
class TestCocosNodeDemo : public CCLayer
{
public:
TestCocosNodeDemo(void);
~TestCocosNodeDemo(void);
virtual std::string title();
virtual std::string subtitle();
virtual void onEnter();
void restartCallback(NSObject* pSender);
void nextCallback(NSObject* pSender);
void backCallback(NSObject* pSender);
};
class Test2 : public TestCocosNodeDemo
{
public:
virtual void onEnter();
virtual std::string title();
};
class Test4 : public TestCocosNodeDemo
{
public:
Test4();
void delay2(ccTime dt);
void delay4(ccTime dt);
virtual std::string title();
};
class Test5 : public TestCocosNodeDemo
{
public:
Test5();
void addAndRemove(ccTime dt);
virtual std::string title();
};
class Test6 : public TestCocosNodeDemo
{
public:
Test6();
void addAndRemove(ccTime dt);
virtual std::string title();
};
class StressTest1 : public TestCocosNodeDemo
{
void shouldNotCrash(ccTime dt);
void removeMe(CCNode* node);
public:
StressTest1();
virtual std::string title();
};
class StressTest2 : public TestCocosNodeDemo
{
void shouldNotLeak(ccTime dt);
public:
StressTest2();
virtual std::string title();
};
class SchedulerTest1 : public TestCocosNodeDemo
{
public:
SchedulerTest1();
void doSomething(ccTime dt);
virtual std::string title();
};
class NodeToWorld : public TestCocosNodeDemo
{
public:
NodeToWorld();
virtual std::string title();
};
class CameraOrbitTest : public TestCocosNodeDemo
{
public:
CameraOrbitTest();
virtual void onEnter();
virtual void onExit();
virtual std::string title();
};
class CameraZoomTest : public TestCocosNodeDemo
{
float m_z;
public:
CameraZoomTest();
void updateEye(ccTime dt);
virtual void onEnter();
virtual void onExit();
virtual std::string title();
};
class CameraCenterTest : public TestCocosNodeDemo
{
public:
CameraCenterTest();
virtual std::string title();
virtual std::string subtitle();
};
class CocosNodeTestScene : public TestScene
{
public:
virtual void runThisTest();
};
//CCLayer* nextAction();
#endif