Ejemplo n.º 1
0
        public void startDemo()
        {
            AdvancedMogreFramework amf = new AdvancedMogreFramework();

            if (!AdvancedMogreFramework.Singleton.initOgre("AdvancedMogreFramework"))
            {
                return;
            }

            AdvancedMogreFramework.Singleton.m_pLog.LogMessage("Demo initialized!");

            m_pAppStateManager = new AppStateManager();

            AppState.create <MenuState>(m_pAppStateManager, "MenuState");
            AppState.create <GameState>(m_pAppStateManager, "GameState");
            AppState.create <SinbadState>(m_pAppStateManager, "SinbadState");
            AppState.create <PauseState>(m_pAppStateManager, "PauseState");
            AppState.create <CreditState>(m_pAppStateManager, "CreditState");
            AppState.create <PhysxBasicCubeState>(m_pAppStateManager, "BasicCubeState");
            AppState.create <PhysxCharacterControllerState>(m_pAppStateManager, "CharacterControllerState");
            AppState.create <PhysxClothState>(m_pAppStateManager, "ClothState");
            AppState.create <PhysxNewtonCradleState>(m_pAppStateManager, "NewtonCradleState");

            m_pAppStateManager.start(m_pAppStateManager.findByName("MenuState"));
        }
Ejemplo n.º 2
0
        public void startDemo()
        {
            AdvancedMogreFramework amf = new AdvancedMogreFramework();

            if (!AdvancedMogreFramework.Singleton.initOgre("AdvancedMogreFramework"))
            {
                return;
            }

            AdvancedMogreFramework.Singleton.m_pLog.LogMessage("Demo initialized!");

            m_pAppStateManager = new AppStateManager();

            AppState.create <MenuState>(m_pAppStateManager, "MenuState");
            AppState.create <GameState>(m_pAppStateManager, "GameState");
            AppState.create <SinbadState>(m_pAppStateManager, "SinbadState");
            AppState.create <PauseState>(m_pAppStateManager, "PauseState");
            AppState.create <CreditState>(m_pAppStateManager, "CreditState");

            m_pAppStateManager.start(m_pAppStateManager.findByName("MenuState"));
        }