Screen for displaying the main game.
상속: IScreen
예제 #1
0
        public void PushScreenTest()
        {
            GameScreen screen = new GameScreen();
            manager.PushScreen(screen);

            Assert.AreEqual(screen, manager.Screens.Peek());
        }
예제 #2
0
        public void RestartTest()
        {
            ScreenManager manager = new ScreenManager();
            GameScreen game = new GameScreen();
            MenuScreen menu = new MenuScreen();

            menu.Manager = manager;
            manager.Screens.Push(game);
            manager.Screens.Push(menu);
            menu.Restart();

            Assert.AreNotEqual(game, manager.Screens.Peek());
        }