#ifndef _NODE_TEST_H_ #define _NODE_TEST_H_ ////----#include "cocos2d.h" #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(CCObject* pSender); void nextCallback(CCObject* pSender); void backCallback(CCObject* pSender); }; class Test2 : public TestCocosNodeDemo { public: virtual void onEnter(); virtual std::string title(); }; class Test4 : public TestCocosNodeDemo { public: Test4(); void delay2(float dt); void delay4(float dt); virtual std::string title(); }; class Test5 : public TestCocosNodeDemo { public: Test5(); void addAndRemove(float dt); virtual std::string title(); }; class Test6 : public TestCocosNodeDemo { public: Test6(); void addAndRemove(float dt); virtual std::string title(); }; class StressTest1 : public TestCocosNodeDemo { void shouldNotCrash(float dt); void removeMe(CCNode* node); public: StressTest1(); virtual std::string title(); }; class StressTest2 : public TestCocosNodeDemo { void shouldNotLeak(float dt); public: StressTest2(); virtual std::string title(); }; class SchedulerTest1 : public TestCocosNodeDemo { public: SchedulerTest1(); void doSomething(float 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 update(float 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 ConvertToNode : public TestCocosNodeDemo { public: ConvertToNode(); virtual void ccTouchesEnded(CCSet* touches, CCEvent *event); virtual std::string title(); virtual std::string subtitle(); }; class NodeOpaqueTest : public TestCocosNodeDemo { public: NodeOpaqueTest(); virtual std::string title(); virtual std::string subtitle(); }; class NodeNonOpaqueTest : public TestCocosNodeDemo { public: NodeNonOpaqueTest(); virtual std::string title(); virtual std::string subtitle(); }; class CocosNodeTestScene : public TestScene { public: virtual void runThisTest(); }; //CCLayer* nextAction(); #endif