public void restartCallback(CCObject pSender) { CCScene s = new DirectorTestScene(); s.addChild(restartDirectorTestCase()); CCDirector.sharedDirector().replaceScene(s); }
public static TestScene CreateTestScene(int nIdx) { CCDirector.sharedDirector().purgeCachedData(); TestScene pScene = null; switch (nIdx) { case (int)TestCases.TEST_ACTIONS: pScene = new ActionsTestScene(); break; //case (int)TestCases.TEST_TRANSITIONS: // pScene = new TransitionsTestScene(); break; case (int)TestCases.TEST_PROGRESS_ACTIONS: pScene = new ProgressActionsTestScene(); break; // case TEST_EFFECTS: // pScene = new EffectTestScene(); break; case (int)TestCases.TEST_CLICK_AND_MOVE: pScene = new ClickAndMoveTest(); break; case (int)TestCases.TEST_ROTATE_WORLD: pScene = new RotateWorldTestScene(); break; case (int)TestCases.TEST_PARTICLE: pScene = new ParticleTestScene(); break; case (int)TestCases.TEST_EASE_ACTIONS: pScene = new EaseActionsTestScene(); break; //case (int)TestCases.TEST_MOTION_STREAK: // pScene = new MotionStreakTestScene(); break; case (int)TestCases.TEST_DRAW_PRIMITIVES: pScene = new DrawPrimitivesTestScene(); break; //case (int)TestCases.TEST_COCOSNODE: // pScene = new CocosNodeTestScene(); break; case (int)TestCases.TEST_TOUCHES: pScene = new PongScene(); break; case (int)TestCases.TEST_MENU: pScene = new MenuTestScene(); break; case (int)TestCases.TEST_ACTION_MANAGER: pScene = new ActionManagerTestScene(); break; case (int)TestCases.TEST_LAYER: pScene = new LayerTestScene(); break; case (int)TestCases.TEST_SCENE: pScene = new SceneTestScene(); break; //case (int)TestCases.TEST_PARALLAX: // pScene = new ParallaxTestScene(); break; case (int)TestCases.TEST_TILE_MAP: pScene = new TileMapTestScene(); break; case (int)TestCases.TEST_INTERVAL: pScene = new IntervalTestScene(); break; // case TEST_CHIPMUNK: //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // pScene = new ChipmunkTestScene(); break; //#else //#ifdef AIRPLAYUSECHIPMUNK //#if (AIRPLAYUSECHIPMUNK == 1) // pScene = new ChipmunkTestScene(); break; //#endif //#endif //#endif case (int)TestCases.TEST_LABEL: pScene = new AtlasTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // case TEST_TEXT_INPUT: // pScene = new TextInputTestScene(); break; //#endif case (int)TestCases.TEST_SPRITE: pScene = new SpriteTestScene(); break; case (int)TestCases.TEST_SCHEDULER: pScene = new SchedulerTestScene(); break; //case (int)TestCases.TEST_RENDERTEXTURE: // pScene = new RenderTextureScene(); break; case (int)TestCases.TEST_TEXTURE2D: pScene = new TextureTestScene(); break; // case TEST_BOX2D: // pScene = new Box2DTestScene(); break; // case TEST_BOX2DBED: // pScene = new Box2dTestBedScene(); break; //case TEST_EFFECT_ADVANCE: // pScene = new EffectAdvanceScene(); break; //case (int)TestCases.TEST_HIRES: // pScene = new HiResTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32) // case TEST_ACCELEROMRTER: // pScene = new AccelerometerTestScene(); break; //#endif // case TEST_KEYPAD: // pScene = new KeypadTestScene(); break; case (int)TestCases.TEST_COCOSDENSHION: pScene = new CocosDenshionTestScene(); break; //case TEST_PERFORMANCE: // pScene = new PerformanceTestScene(); break; case (int)TestCases.TEST_ZWOPTEX: pScene = new ZwoptexTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // case TEST_CURL: // pScene = new CurlTestScene(); break; //case (int)TestCases.TEST_USERDEFAULT: // pScene = new UserDefaultTestScene(); break; //#endif case (int)TestCases.TEST_DIRECTOR: pScene = new DirectorTestScene(); break; // case TEST_BUGS: // pScene = new BugsTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // case TEST_FONTS: // pScene = new FontTestScene(); break; // case TEST_CURRENT_LANGUAGE: // pScene = new CurrentLanguageTestScene(); break; // break; //#endif default: break; } return pScene; }
public void nextCallback(CCObject pSender) { CCScene s = new DirectorTestScene(); s.addChild(nextDirectorTestCase()); CCDirector.sharedDirector().replaceScene(s); }
public static TestScene CreateTestScene(int nIdx) { CCDirector.sharedDirector().purgeCachedData(); TestScene pScene = null; switch (nIdx) { case (int)TestCases.TEST_ACTIONS: pScene = new ActionsTestScene(); break; case (int)TestCases.TEST_TRANSITIONS: pScene = new TransitionsTestScene(); break; case (int)TestCases.TEST_PROGRESS_ACTIONS: pScene = new ProgressActionsTestScene(); break; case (int)TestCases.TEST_EFFECTS: pScene = new EffectTestScene(); break; case (int)TestCases.TEST_CLICK_AND_MOVE: pScene = new ClickAndMoveTest(); break; case (int)TestCases.TEST_ROTATE_WORLD: pScene = new RotateWorldTestScene(); break; case (int)TestCases.TEST_PARTICLE: pScene = new ParticleTestScene(); break; case (int)TestCases.TEST_EASE_ACTIONS: pScene = new EaseActionsTestScene(); break; //case (int)TestCases.TEST_MOTION_STREAK: // pScene = new MotionStreakTestScene(); break; case (int)TestCases.TEST_DRAW_PRIMITIVES: pScene = new DrawPrimitivesTestScene(); break; //case (int)TestCases.TEST_COCOSNODE: // pScene = new CocosNodeTestScene(); break; case (int)TestCases.TEST_TOUCHES: pScene = new PongScene(); break; case (int)TestCases.TEST_MENU: pScene = new MenuTestScene(); break; case (int)TestCases.TEST_ACTION_MANAGER: pScene = new ActionManagerTestScene(); break; case (int)TestCases.TEST_LAYER: pScene = new LayerTestScene(); break; case (int)TestCases.TEST_SCENE: pScene = new SceneTestScene(); break; //case (int)TestCases.TEST_PARALLAX: // pScene = new ParallaxTestScene(); break; case (int)TestCases.TEST_TILE_MAP: pScene = new TileMapTestScene(); break; case (int)TestCases.TEST_INTERVAL: pScene = new IntervalTestScene(); break; // case TEST_CHIPMUNK: //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // pScene = new ChipmunkTestScene(); break; //#else //#ifdef AIRPLAYUSECHIPMUNK //#if (AIRPLAYUSECHIPMUNK == 1) // pScene = new ChipmunkTestScene(); break; //#endif //#endif //#endif case (int)TestCases.TEST_LABEL: pScene = new AtlasTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // case TEST_TEXT_INPUT: // pScene = new TextInputTestScene(); break; //#endif case (int)TestCases.TEST_SPRITE: pScene = new SpriteTestScene(); break; case (int)TestCases.TEST_SCHEDULER: pScene = new SchedulerTestScene(); break; //case (int)TestCases.TEST_RENDERTEXTURE: // pScene = new RenderTextureScene(); break; case (int)TestCases.TEST_TEXTURE2D: pScene = new TextureTestScene(); break; // case TEST_BOX2D: // pScene = new Box2DTestScene(); break; // case TEST_BOX2DBED: // pScene = new Box2dTestBedScene(); break; case (int)TestCases.TEST_EFFECT_ADVANCE: pScene = new EffectAdvanceScene(); break; //case (int)TestCases.TEST_HIRES: // pScene = new HiResTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32) // case TEST_ACCELEROMRTER: // pScene = new AccelerometerTestScene(); break; //#endif // case TEST_KEYPAD: // pScene = new KeypadTestScene(); break; case (int)TestCases.TEST_COCOSDENSHION: pScene = new CocosDenshionTestScene(); break; //case TEST_PERFORMANCE: // pScene = new PerformanceTestScene(); break; case (int)TestCases.TEST_ZWOPTEX: pScene = new ZwoptexTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // case TEST_CURL: // pScene = new CurlTestScene(); break; //case (int)TestCases.TEST_USERDEFAULT: // pScene = new UserDefaultTestScene(); break; //#endif case (int)TestCases.TEST_DIRECTOR: pScene = new DirectorTestScene(); break; // case TEST_BUGS: // pScene = new BugsTestScene(); break; //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) // case TEST_FONTS: // pScene = new FontTestScene(); break; // case TEST_CURRENT_LANGUAGE: // pScene = new CurrentLanguageTestScene(); break; // break; //#endif default: break; } return pScene; }