예제 #1
0
 public void ResetState(Scene eScene)
 {
     switch (eScene)
     {
     case Scene.Play:
         this.poScenePlay = new ScenePlay();
         break;
     }
 }
예제 #2
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();
        }
예제 #3
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();
        }