示例#1
0
文件: Game.cs 项目: 0x539/RogueTest
        public Game()
        {
            this._gm = new GameManager();
            this._sm = new ScreenManager(this._gm);

            Console.CursorVisible = false;
        }
示例#2
0
        public ScreenManager(GameManager gm)
        {
            this._gm = gm;
            this._player = this._gm.Player;

            this._screens = new Screen[4];
            //this._screens[0] = new MainMenu();
            //this._screens[1] = new InputStatsScreen(this._gm);
            //this._screens[2] = new StatsScreen(this._player);
            this._screens[0] = new GameScreen(this._gm);
        }
示例#3
0
        public void Update(GameManager gm)
        {
            //Take in the new game manager.
            this._gm = gm;
            this._player = this._gm.Player;

            if (!this._screens[this._currentMenu].isActive)
            {
                if (this._screens[this._currentMenu].clearScreen)
                    Console.Clear();

                this._currentMenu++;
            }
        }
示例#4
0
文件: Screen.cs 项目: 0x539/RogueTest
 public InputStatsScreen(GameManager gm)
 {
     this._gm = gm;
 }
示例#5
0
文件: Screen.cs 项目: 0x539/RogueTest
 public GameScreen(GameManager gm)
 {
     this.clearScreen = false;
     this._gm = gm;
 }