Ejemplo n.º 1
0
        public static void Player1GameOver()
        {
            GameScene pScene = GameScene.PrivGetInstance();

            Debug.Assert(pScene != null);

            if (pScene.pState is Player1Scene)
            {
                Player1Scene pp1s = (Player1Scene)pScene.pState;
                pp1s.GameOver();
            }
        }
Ejemplo n.º 2
0
        private GameSceneManager()
        {
            this.pSelect = new SelectScene();
            Debug.Assert(this.pSelect != null);

            this.p1Scene = new Player1Scene();
            Debug.Assert(this.p1Scene != null);

            this.p2Scene = new Player2Scene();
            Debug.Assert(this.p2Scene != null);

            this.pOver = new GameOverState();
            Debug.Assert(this.pOver != null);
        }