Esempio n. 1
0
 public void onReplaceScene(object pSender)
 {
     CCScene pScene = new SceneTestScene();
     CCLayer pLayer = new SceneTestLayer3();
     pScene.AddChild(pLayer, 0);
     CCDirector.SharedDirector.ReplaceScene(pScene);
 }
 public void onPushScene(CCObject pSender)
 {
     CCScene scene = new SceneTestScene();
     CCLayer pLayer = new SceneTestLayer2();
     scene.addChild(pLayer, 0);
     CCDirector.sharedDirector().pushScene(scene);
 }
Esempio n. 3
0
 public void onReplaceSceneTran(object pSender)
 {
     CCScene pScene = new SceneTestScene();
     CCLayer pLayer = new SceneTestLayer3();
     pScene.AddChild(pLayer, 0);
     CCDirector.SharedDirector.ReplaceScene(new CCTransitionFlipX(2, pScene, CCTransitionOrientation.UpOver));
 }
 public void onReplaceScene(CCObject pSender)
 {
     CCScene pScene = new SceneTestScene();
     CCLayer pLayer = new SceneTestLayer3();
     pScene.addChild(pLayer, 0);
     CCDirector.sharedDirector().replaceScene(pScene);
 }
Esempio n. 5
0
 public void onPushScene(object pSender)
 {
     CCScene scene = new SceneTestScene();
     CCLayer pLayer = new SceneTestLayer2();
     scene.AddChild(pLayer, 0);
     CCDirector.SharedDirector.PushScene(scene);
 }
Esempio n. 6
0
        public void onPushSceneTran(object pSender)
        {
            CCScene scene = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer2();
            scene.AddChild(pLayer, 0);

            CCDirector.SharedDirector.PushScene(CCTransitionSlideInT.Create(1f, scene));
        }
Esempio n. 7
0
        public void onReplaceScene(CCObject pSender)
        {
            CCScene pScene = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer3();

            pScene.addChild(pLayer, 0);
            CCDirector.sharedDirector().replaceScene(pScene);
        }
Esempio n. 8
0
        public void onReplaceSceneTran(object pSender)
        {
            CCScene pScene = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer3();

            pScene.AddChild(pLayer, 0);
            Director.ReplaceScene(new CCTransitionFlipX(2, pScene, CCTransitionOrientation.UpOver));
        }
Esempio n. 9
0
        public void onReplaceScene(object pSender)
        {
            CCScene pScene = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer3();

            pScene.AddChild(pLayer, 0);
            Director.ReplaceScene(pScene);
        }
Esempio n. 10
0
        public void onPushScene(object pSender)
        {
            CCScene scene  = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer2();

            scene.AddChild(pLayer, 0);
            Director.PushScene(scene);
        }
Esempio n. 11
0
 public void onReplaceSceneTran(CCObject pSender)
 {
     CCScene pScene = new SceneTestScene();
     CCLayer pLayer = new SceneTestLayer3();
     pScene.addChild(pLayer, 0);
     CCDirector.sharedDirector().replaceScene(pScene);
     //(CCTransitionFlipX.transitionWithDuration(2, pScene));
 }
Esempio n. 12
0
        public void onPushScene(CCObject pSender)
        {
            CCScene scene  = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer2();

            scene.addChild(pLayer, 0);
            CCDirector.sharedDirector().pushScene(scene);
        }
Esempio n. 13
0
        public void onPopSceneTran(object pSender)
        {
            CCScene scene = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer1();
            scene.AddChild(pLayer, 0);

            CCDirector.SharedDirector.PopScene(1f, new CCTransitionSlideInB(1f, scene));
        }
        public void onPushSceneTran(CCObject pSender)
        {
            CCScene scene = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer2();
            scene.addChild(pLayer, 0);

            CCDirector.sharedDirector().pushScene(scene);
            //(CCTransitionSlideInT.transitionWithDuration(1f, scene));
        }
Esempio n. 15
0
        public void onPopSceneTran(object pSender)
        {
            CCScene scene  = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer1();

            scene.AddChild(pLayer, 0);

            Director.PopScene(1f, new CCTransitionSlideInB(1f, scene));
        }
Esempio n. 16
0
        public void onPushSceneTran(object pSender)
        {
            CCScene scene  = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer2();

            scene.AddChild(pLayer, 0);

            CCDirector.SharedDirector.PushScene(new CCTransitionSlideInT(1f, scene));
        }
Esempio n. 17
0
        public void onReplaceSceneTran(CCObject pSender)
        {
            CCScene pScene = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer3();

            pScene.addChild(pLayer, 0);
            CCDirector.sharedDirector().replaceScene(pScene);
            //(CCTransitionFlipX.transitionWithDuration(2, pScene));
        }
Esempio n. 18
0
        public void onPushSceneTran(CCObject pSender)
        {
            CCScene scene  = new SceneTestScene();
            CCLayer pLayer = new SceneTestLayer2();

            scene.addChild(pLayer, 0);

            CCDirector.sharedDirector().pushScene(scene);
            //(CCTransitionSlideInT.transitionWithDuration(1f, scene));
        }
Esempio n. 19
0
        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;

            case (int)TestCases.TEST_TEXT_INPUT:
                pScene = new TextInputTestScene(); break;

            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 (int)TestCases.TEST_BOX2D:
                pScene = new Box2DTestScene(); break;

            case (int)TestCases.TEST_BOX2DBED:
                pScene = new tests.classes.tests.Box2DTestBet.Box2dTestBedScene(); break;

            case (int)TestCases.TEST_BOX2DBED2:
                pScene = new Box2D.TestBed.Box2dTestBedScene(); break;

            case (int)TestCases.TEST_EFFECT_ADVANCE:
                pScene = new EffectAdvanceScene(); break;

            case (int)TestCases.TEST_ACCELEROMRTER:
                pScene = new AccelerometerTestScene(); break;

            //    case TEST_KEYPAD:
            //        pScene = new KeypadTestScene(); break;
            case (int)TestCases.TEST_COCOSDENSHION:
                pScene = new CocosDenshionTestScene(); break;

            case (int)TestCases.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 TEST_BUGS:
            //        pScene = new BugsTestScene(); break;
            //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)

            case (int)TestCases.TEST_FONTS:
                pScene = new FontTestScene(); break;

#if IPHONE || IOS || MACOS || WINDOWSGL || WINDOWS || (ANDROID && !OUYA) || NETFX_CORE
            case (int)TestCases.TEST_SYSTEM_FONTS:
                pScene = new SystemFontTestScene(); break;
#endif
            //    case TEST_CURRENT_LANGUAGE:
            //        pScene = new CurrentLanguageTestScene(); break;
            //        break;
            //#endif
            case (int)TestCases.TEST_CLIPPINGNODE:
                pScene = new ClippingNodeTestScene();
                break;

            case (int)TestCases.TEST_EXTENSIONS:
                pScene = new ExtensionsTestScene();
                break;

            case (int)TestCases.TEST_ORIENTATION:
                pScene = new OrientationTestScene();
                break;

            case (int)TestCases.TEST_MULTITOUCH:
                pScene = new MultiTouchTestScene();
                break;

            default:
                break;
            }

            return(pScene);
        }
Esempio n. 20
0
        public static TestScene CreateTestScene(int index)
        {
            //Application.PurgeAllCachedData();

            TestScene scene = null;

            switch(index)
            {
                case (int)TestCases.TEST_ACTIONS:
                    scene = new ActionsTestScene(); break;
                case (int)TestCases.TEST_TRANSITIONS:
                    scene = new TransitionsTestScene(); break;
                case (int)TestCases.TEST_PROGRESS_ACTIONS:
                    scene = new ProgressActionsTestScene(); break;
                case (int)TestCases.TEST_EFFECTS:
                    scene = new EffectTestScene(); break;
                case (int)TestCases.TEST_CLICK_AND_MOVE:
                    scene = new ClickAndMoveTest(); break;
                case (int)TestCases.TEST_ROTATE_WORLD:
                    scene = new RotateWorldTestScene(); break;
                case (int)TestCases.TEST_PARTICLE:
                    scene = new ParticleTestScene(); break;
                case (int)TestCases.TEST_EASE_ACTIONS:
                    scene = new EaseActionsTestScene(); break;
                case (int)TestCases.TEST_MOTION_STREAK:
                    scene = new MotionStreakTestScene(); break;
                case (int)TestCases.TEST_DRAW_PRIMITIVES:
                    scene = new DrawPrimitivesTestScene(); break;
                case (int)TestCases.TEST_COCOSNODE:
                    scene = new CocosNodeTestScene(); break;
                case (int)TestCases.TEST_TOUCHES:
                    scene = new PongScene(); break;
                case (int)TestCases.TEST_MENU:
                    scene = new MenuTestScene(); break;
                case (int)TestCases.TEST_ACTION_MANAGER:
                    scene = new ActionManagerTestScene(); break;
                case (int)TestCases.TEST_LAYER:
                    scene = new LayerTestScene(); break;
                case (int)TestCases.TEST_SCENE:
                    scene = new SceneTestScene(); break;
                case (int)TestCases.TEST_PARALLAX:
                    scene = new ParallaxTestScene(); break;
                case (int)TestCases.TEST_TILE_MAP:
                    scene = new TileMapTestScene(); break;
                case (int)TestCases.TEST_INTERVAL:
                    scene = new IntervalTestScene(); break;
                case (int)TestCases.TEST_LABEL:
                    scene = new AtlasTestScene(); break;
                case (int)TestCases.TEST_TEXT_INPUT:
                    scene = new TextInputTestScene(); break;
                case (int)TestCases.TEST_SPRITE:
                    scene = new SpriteTestScene(); break;
                case (int)TestCases.TEST_SCHEDULER:
                    scene = new SchedulerTestScene(); break;
                case (int)TestCases.TEST_RENDERTEXTURE:
                    scene = new RenderTextureScene(); break;
                case (int)TestCases.TEST_TEXTURE2D:
                    scene = new TextureTestScene(); break;
                case (int)TestCases.TEST_BOX2D:
                    scene = new Box2DTestScene(); break;
                case (int)TestCases.TEST_BOX2DBED2:
                    scene = new Box2D.TestBed.Box2dTestBedScene(); break;
                case (int)TestCases.TEST_EFFECT_ADVANCE:
                    scene = new EffectAdvanceScene(); break;
                case (int)TestCases.TEST_ACCELEROMRTER:
                    scene = new AccelerometerTestScene(); break;
                case (int)TestCases.TEST_COCOSDENSHION:
                    scene = new CocosDenshionTestScene(); break;
                case (int)TestCases.TEST_PERFORMANCE:
                    scene = new PerformanceTestScene(); break;
                case (int)TestCases.TEST_ZWOPTEX:
                    scene = new ZwoptexTestScene(); break;
                case (int)TestCases.TEST_FONTS:
                    scene = new FontTestScene(); break;
                    #if IPHONE || IOS || MACOS || WINDOWSGL || WINDOWS || (ANDROID && !OUYA) || NETFX_CORE
                case (int)TestCases.TEST_SYSTEM_FONTS:
                    scene = new SystemFontTestScene(); break;
                    #endif
                case (int)TestCases.TEST_CLIPPINGNODE:
                    scene = new ClippingNodeTestScene();
                    break;

                case (int)TestCases.TEST_EXTENSIONS:
                    scene = new ExtensionsTestScene();
                    break;
                case (int)TestCases.TEST_ORIENTATION:
                    scene = new OrientationTestScene();
                    break;
                case(int)TestCases.TEST_MULTITOUCH:
                    scene = new MultiTouchTestScene();
                    break;
                case(int)TestCases.TEST_EVENTDISPATCHER:
                    scene = new EventDispatcherTestScene();
                    break;
                    #if USE_PHYSICS
                case(int)TestCases.TEST_PHYSICS:
                    scene = new PhysicsTestScene();
                    break;
                    #endif
                default:
                    break;
            }

            return scene;
        }
Esempio n. 21
0
        public static TestScene CreateTestScene(int index)
        {
            //Application.PurgeAllCachedData();

            TestScene scene = null;

            switch (index)
            {
            case (int)TestCases.TEST_ACTIONS:
                scene = new ActionsTestScene(); break;

            case (int)TestCases.TEST_TRANSITIONS:
                scene = new TransitionsTestScene(); break;

            case (int)TestCases.TEST_PROGRESS_ACTIONS:
                scene = new ProgressActionsTestScene(); break;

            case (int)TestCases.TEST_EFFECTS:
                scene = new EffectTestScene(); break;

            case (int)TestCases.TEST_CLICK_AND_MOVE:
                scene = new ClickAndMoveTest(); break;

            case (int)TestCases.TEST_ROTATE_WORLD:
                scene = new RotateWorldTestScene(); break;

            case (int)TestCases.TEST_PARTICLE:
                scene = new ParticleTestScene(); break;

            case (int)TestCases.TEST_EASE_ACTIONS:
                scene = new EaseActionsTestScene(); break;

            case (int)TestCases.TEST_MOTION_STREAK:
                scene = new MotionStreakTestScene(); break;

            case (int)TestCases.TEST_DRAW_PRIMITIVES:
                scene = new DrawPrimitivesTestScene(); break;

            case (int)TestCases.TEST_COCOSNODE:
                scene = new CocosNodeTestScene(); break;

            case (int)TestCases.TEST_TOUCHES:
                scene = new PongScene(); break;

            case (int)TestCases.TEST_MENU:
                scene = new MenuTestScene(); break;

            case (int)TestCases.TEST_ACTION_MANAGER:
                scene = new ActionManagerTestScene(); break;

            case (int)TestCases.TEST_LAYER:
                scene = new LayerTestScene(); break;

            case (int)TestCases.TEST_SCENE:
                scene = new SceneTestScene(); break;

            case (int)TestCases.TEST_PARALLAX:
                scene = new ParallaxTestScene(); break;

            case (int)TestCases.TEST_TILE_MAP:
                scene = new TileMapTestScene(); break;

            case (int)TestCases.TEST_INTERVAL:
                scene = new IntervalTestScene(); break;

            case (int)TestCases.TEST_LABEL:
                scene = new AtlasTestScene(); break;

            case (int)TestCases.TEST_TEXT_INPUT:
                scene = new TextInputTestScene(); break;

            case (int)TestCases.TEST_SPRITE:
                scene = new SpriteTestScene(); break;

            case (int)TestCases.TEST_SCHEDULER:
                scene = new SchedulerTestScene(); break;

            case (int)TestCases.TEST_RENDERTEXTURE:
                scene = new RenderTextureScene(); break;

            case (int)TestCases.TEST_TEXTURE2D:
                scene = new TextureTestScene(); break;

            case (int)TestCases.TEST_BOX2D:
                scene = new Box2DTestScene(); break;

            case (int)TestCases.TEST_BOX2DBED2:
                scene = new Box2D.TestBed.Box2dTestBedScene(); break;

            case (int)TestCases.TEST_EFFECT_ADVANCE:
                scene = new EffectAdvanceScene(); break;

            case (int)TestCases.TEST_ACCELEROMRTER:
                scene = new AccelerometerTestScene(); break;

            case (int)TestCases.TEST_COCOSDENSHION:
                scene = new CocosDenshionTestScene(); break;

            case (int)TestCases.TEST_PERFORMANCE:
                scene = new PerformanceTestScene(); break;

            case (int)TestCases.TEST_ZWOPTEX:
                scene = new ZwoptexTestScene(); break;

            case (int)TestCases.TEST_FONTS:
                scene = new FontTestScene(); break;

                    #if IPHONE || IOS || MACOS || WINDOWSGL || WINDOWS || (ANDROID && !OUYA) || NETFX_CORE
            case (int)TestCases.TEST_SYSTEM_FONTS:
                scene = new SystemFontTestScene(); break;
                    #endif
            case (int)TestCases.TEST_CLIPPINGNODE:
                scene = new ClippingNodeTestScene();
                break;

            case (int)TestCases.TEST_EXTENSIONS:
                scene = new ExtensionsTestScene();
                break;

            case (int)TestCases.TEST_ORIENTATION:
                scene = new OrientationTestScene();
                break;

            case (int)TestCases.TEST_MULTITOUCH:
                scene = new MultiTouchTestScene();
                break;

            case (int)TestCases.TEST_EVENTDISPATCHER:
                scene = new EventDispatcherTestScene();
                break;

                    #if USE_PHYSICS
            case (int)TestCases.TEST_PHYSICS:
                scene = new PhysicsTestScene();
                break;
                    #endif
            default:
                break;
            }

            return(scene);
        }
Esempio n. 22
0
        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;
        }
Esempio n. 23
0
        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 (int)TestCases.TEST_BOX2D:
                    pScene = new Box2DTestScene(); break;
                case (int)TestCases.TEST_BOX2DBED:
                         pScene = new Box2dTestBedScene(); break;
                case (int)TestCases.TEST_EFFECT_ADVANCE:
                    pScene = new EffectAdvanceScene(); break;
                case (int)TestCases.TEST_ACCELEROMRTER:
                    pScene = new AccelerometerTestScene(); break;
                //    case TEST_KEYPAD:
                //        pScene = new KeypadTestScene(); break;
                case (int)TestCases.TEST_COCOSDENSHION:
                    pScene = new CocosDenshionTestScene(); break;
                case (int)TestCases.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 TEST_BUGS:
                //        pScene = new BugsTestScene(); break;
                //#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)

                case (int)TestCases.TEST_FONTS:
                        pScene = new FontTestScene(); break;

                //    case TEST_CURRENT_LANGUAGE:
                //        pScene = new CurrentLanguageTestScene(); break;
                //        break;
                //#endif

                case (int)TestCases.TEST_EXTENSIONS:
                        pScene = new ExtensionsTestScene();
                        break;
                case (int)TestCases.TEST_ORIENTATION:
                        pScene = new OrientationTestScene();
                        break;
                default:
                    break;
            }

            return pScene;
        }