Example #1
0
        public static SceneState GetState(State state)
        {
            SceneMan pSceneMan = SceneMan.PrivInstance();

            Debug.Assert(pSceneMan != null);

            SceneState pSceneState = null;

            switch (state)
            {
            case SceneMan.State.Tract:
                pSceneState = pSceneMan.pStateTract;
                break;

            case SceneMan.State.Game:
                pSceneState = pSceneMan.pStateGame;
                break;

            case SceneMan.State.Gameover:
                pSceneState = pSceneMan.pStateGameover;
                break;

            default:
                Debug.Assert(false);
                break;
            }

            return(pSceneState);
        }
Example #2
0
        public static Scene GetScene()
        {
            SceneMan pSceneMan = SceneMan.PrivInstance();

            Debug.Assert(pSceneMan != null);
            Debug.Assert(pSceneMan.pScene != null);

            return(pSceneMan.pScene);
        }
Example #3
0
        private static Scene ActivateScene()
        {
            SceneMan pSceneMan = SceneMan.PrivInstance();

            Debug.Assert(pSceneMan != null);

            Scene pScene = new Scene();

            pSceneMan.pScene = pScene;

            return(pSceneMan.pScene);
        }