Exemple #1
0
        public Game()
        {
            this._gm = new GameManager();
            this._sm = new ScreenManager(this._gm);

            Console.CursorVisible = false;
        }
Exemple #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);
        }
Exemple #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++;
            }
        }
Exemple #4
0
 public InputStatsScreen(GameManager gm)
 {
     this._gm = gm;
 }
Exemple #5
0
 public GameScreen(GameManager gm)
 {
     this.clearScreen = false;
     this._gm = gm;
 }