Example #1
0
        //----------------------------------------------------------------------------------
        // Constructor
        //----------------------------------------------------------------------------------
        public SceneContext()
        {
            // reserve the states
            this.poSceneSelect   = new SceneSelect();
            this.poSceneDemo     = new SceneDemo();
            this.poScenePlay     = new ScenePlay();
            this.poSceneGameOver = new SceneGameOver();

            // initialize to the select state
            this.pSceneState = this.poSceneSelect;
            this.pSceneState.Entering();
        }
Example #2
0
        public SceneContext()
        {
            // reserve the states
            this.poSceneSelect       = new SceneSelect();
            this.poScenePlayerSelect = new ScenePlayerSelect();
            this.poScenePlay         = new ScenePlay();
            this.poScenePlay2        = new ScenePlay2();
            this.poSceneOver         = new SceneOver();

            // initialize to the select state
            this.pSceneState = this.poSceneSelect;
            this.pSceneState.Transition();
        }