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); }
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++; } }
public StatsScreen(Player player) { this._player = player; }
public GameManager() { this._player = new Player(_map); this._messenger = new Messenger(); }