Exemplo n.º 1
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);
        }
Exemplo n.º 2
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++;
            }
        }
Exemplo n.º 3
0
 public StatsScreen(Player player)
 {
     this._player = player;
 }
Exemplo n.º 4
0
 public GameManager()
 {
     this._player = new Player(_map);
     this._messenger = new Messenger();
 }